Commit graph

7094 commits

Author SHA1 Message Date
Luca Greco
1459fc9f1f Bug 1682632 - part3: Restrict Extension API webidl bindings to nightly builds. r=baku,mixedpuppy
Depends on D99887

Differential Revision: https://phabricator.services.mozilla.com/D104707
2021-06-11 18:58:11 +00:00
Luca Greco
b4016efe5d Bug 1682632 - part2.7: ExtensionMockAPI. r=baku
ExtensionMockAPI is a fake WebExtensions API, locked behind a pref and
used in unit tests related to the API requests handling and WebExtensionStub
methods without relying on a specific WebExtension API.

Depends on D84687

Differential Revision: https://phabricator.services.mozilla.com/D99886
2021-06-11 18:58:10 +00:00
Luca Greco
34daf589ca Bug 1682632 - part2.4: ExtensionPort. r=baku
The ExtensionPort represents the webidl definitions of the runtime.Port WebExtensions API object.

A webidl dictionary will represent the serializable definition of the port properties, sent from
the API request handler to provide all the internal properties needed to create an instance
of the ExtensionPort webidl interface on the worker thread (which will be returned to the
extension code as the return value of the runtime.connect/connectNative methods and as a
parameter of the calls to the runtime.onConnect API event listeners).

Depends on D84684

Differential Revision: https://phabricator.services.mozilla.com/D84685
2021-06-11 18:58:09 +00:00
Luca Greco
a4e9a53c5c Bug 1682632 - part2.2: ExtensionEventListener xpcom interface base implementation. r=baku,sfink
Depends on D80609

Differential Revision: https://phabricator.services.mozilla.com/D80610
2021-06-11 18:58:08 +00:00
Luca Greco
624ba4239b Bug 1682632 - part1.3: ExtensionEventManager webidl interface. r=baku,mixedpuppy
WebIDL interface and c++ class to be used by all WebExtension API webidl bindings
to expose the expected WebExtensions API events (e.g. browser.tabs.onUpdated etc.)

Depends on D84682

Differential Revision: https://phabricator.services.mozilla.com/D80604
2021-06-11 18:58:07 +00:00
Luca Greco
ca22ab0254 Bug 1682632 - part1: add ExtensionBrowser webidl API skeleton to Extension Background Service Worker. r=baku,mixedpuppy,asuth
- Extension API WebIDL to be part of a new dom/extensions-webidl directory
  (and all webidl in this directory associated with WebExtensions::General
  bugzilla component)

- Extension API C++ implementation in a new toolkit/components/extensions/webidl-api
  directory

- Lock Extensions API WebIDL bindings provided to extensions workers global on:
  - the preference "extensions.backgroundServiceWorker.enabled" being set to true
  - checking explicitly that the worker is an extension service worker declared
    in the extension manifest.json file.

- Changes to WorkerPrivate, WorkerScope.h/.cpp to expose the WebIDL
  bindings to the extension service workers (if the service worker has been
  detected as the background service worker specified in the manifest),
  plus small changes to RemoteWorkerChild.cpp to detect if the worker
  is the background service worker (and mark it as so in the WorkerPrivate
  instance associated to it)

Differential Revision: https://phabricator.services.mozilla.com/D70372
2021-06-11 18:58:06 +00:00
Alexandru Michis
be06efd457 Backed out 14 changesets (bug 1682632) for causing hazard bustages in ExtensionEventManager.cpp
Backed out changeset c5acc19db606 (bug 1682632)
Backed out changeset 61380029a38b (bug 1682632)
Backed out changeset d3a153070b38 (bug 1682632)
Backed out changeset 8b8bd2385503 (bug 1682632)
Backed out changeset 7fa45afd83a0 (bug 1682632)
Backed out changeset 57652a2152ac (bug 1682632)
Backed out changeset 9195b13525d0 (bug 1682632)
Backed out changeset a647c0cb85e4 (bug 1682632)
Backed out changeset 55553e0dc6ca (bug 1682632)
Backed out changeset c85363089c29 (bug 1682632)
Backed out changeset 6c1f4efb4975 (bug 1682632)
Backed out changeset 9452456d249f (bug 1682632)
Backed out changeset 7b8016e5f3fb (bug 1682632)
Backed out changeset ba742f7e256f (bug 1682632)
2021-06-10 17:28:23 +03:00
Luca Greco
26098c2ce7 Bug 1682632 - part3: Restrict Extension API webidl bindings to nightly builds. r=baku,mixedpuppy
Depends on D99887

Differential Revision: https://phabricator.services.mozilla.com/D104707
2021-06-10 09:34:57 +00:00
Luca Greco
5a901c159a Bug 1682632 - part2.7: ExtensionMockAPI. r=baku
ExtensionMockAPI is a fake WebExtensions API, locked behind a pref and
used in unit tests related to the API requests handling and WebExtensionStub
methods without relying on a specific WebExtension API.

Depends on D84687

Differential Revision: https://phabricator.services.mozilla.com/D99886
2021-06-10 09:34:56 +00:00
Luca Greco
23d49ee27d Bug 1682632 - part2.4: ExtensionPort. r=baku
The ExtensionPort represents the webidl definitions of the runtime.Port WebExtensions API object.

A webidl dictionary will represent the serializable definition of the port properties, sent from
the API request handler to provide all the internal properties needed to create an instance
of the ExtensionPort webidl interface on the worker thread (which will be returned to the
extension code as the return value of the runtime.connect/connectNative methods and as a
parameter of the calls to the runtime.onConnect API event listeners).

Depends on D84684

Differential Revision: https://phabricator.services.mozilla.com/D84685
2021-06-10 09:34:55 +00:00
Luca Greco
fccce36c31 Bug 1682632 - part2.2: ExtensionEventListener xpcom interface base implementation. r=baku,sfink
Depends on D80609

Differential Revision: https://phabricator.services.mozilla.com/D80610
2021-06-10 09:34:54 +00:00
Luca Greco
1f39edc33a Bug 1682632 - part1.3: ExtensionEventManager webidl interface. r=baku,mixedpuppy
WebIDL interface and c++ class to be used by all WebExtension API webidl bindings
to expose the expected WebExtensions API events (e.g. browser.tabs.onUpdated etc.)

Depends on D84682

Differential Revision: https://phabricator.services.mozilla.com/D80604
2021-06-10 09:34:52 +00:00
Luca Greco
acbf6ce964 Bug 1682632 - part1: add ExtensionBrowser webidl API skeleton to Extension Background Service Worker. r=baku,mixedpuppy,asuth
- Extension API WebIDL to be part of a new dom/extensions-webidl directory
  (and all webidl in this directory associated with WebExtensions::General
  bugzilla component)

- Extension API C++ implementation in a new toolkit/components/extensions/webidl-api
  directory

- Lock Extensions API WebIDL bindings provided to extensions workers global on:
  - the preference "extensions.backgroundServiceWorker.enabled" being set to true
  - checking explicitly that the worker is an extension service worker declared
    in the extension manifest.json file.

- Changes to WorkerPrivate, WorkerScope.h/.cpp to expose the WebIDL
  bindings to the extension service workers (if the service worker has been
  detected as the background service worker specified in the manifest),
  plus small changes to RemoteWorkerChild.cpp to detect if the worker
  is the background service worker (and mark it as so in the WorkerPrivate
  instance associated to it)

Differential Revision: https://phabricator.services.mozilla.com/D70372
2021-06-10 09:34:51 +00:00
Eden Chuang
415ab42b7d Bug 1564235 - P2 Create NavigationPreloadManager.webidl and implement webidl binding. r=dom-worker-reviewers,webidl,asuth
This patch creates NavigationPreloadManager.webidl and implements the webidl binding.

Depends on D116913

Differential Revision: https://phabricator.services.mozilla.com/D116914
2021-06-10 06:01:26 +00:00
Csoregi Natalia
e84ffc5f5c Backed out 6 changesets (bug 1564235) for ServiceWorkerRegistrar failures. CLOSED TREE
Backed out changeset 78d268b961e6 (bug 1564235)
Backed out changeset 198a29232047 (bug 1564235)
Backed out changeset b1503c48e2f6 (bug 1564235)
Backed out changeset 679bed36bc0b (bug 1564235)
Backed out changeset 789ce1a19e9f (bug 1564235)
Backed out changeset a4cd096b0ba7 (bug 1564235)
2021-06-10 05:17:08 +03:00
Eden Chuang
5dd1338210 Bug 1564235 - P2 Create NavigationPreloadManager.webidl and implement webidl binding. r=dom-worker-reviewers,webidl,asuth
This patch creates NavigationPreloadManager.webidl and implements the webidl binding.

Depends on D116913

Differential Revision: https://phabricator.services.mozilla.com/D116914
2021-06-10 00:48:11 +00:00
Csoregi Natalia
d2e0d6f213 Backed out 14 changesets (bug 1682632) for mbu failures. CLOSED TREE
Backed out changeset e14034a66620 (bug 1682632)
Backed out changeset 3e47d00b7822 (bug 1682632)
Backed out changeset bf010d24288c (bug 1682632)
Backed out changeset 9e321d3b964b (bug 1682632)
Backed out changeset 36540900695b (bug 1682632)
Backed out changeset 8660a7bcc4e1 (bug 1682632)
Backed out changeset 89322328bf07 (bug 1682632)
Backed out changeset 1bc53013f8b3 (bug 1682632)
Backed out changeset afcbc61ae254 (bug 1682632)
Backed out changeset 6a9f2fdec9ff (bug 1682632)
Backed out changeset 017891ebb9dd (bug 1682632)
Backed out changeset f78f3e3c8fa4 (bug 1682632)
Backed out changeset 16d334e1548f (bug 1682632)
Backed out changeset 006dfdbfe446 (bug 1682632)
2021-06-09 23:16:13 +03:00
Luca Greco
00d5ea766f Bug 1682632 - part3: Restrict Extension API webidl bindings to nightly builds. r=baku,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D104707
2021-06-09 19:20:45 +00:00
Luca Greco
faadcf8b2b Bug 1682632 - part2.7: ExtensionMockAPI. r=baku
ExtensionMockAPI is a fake WebExtensions API, locked behind a pref and
used in unit tests related to the API requests handling and WebExtensionStub
methods without relying on a specific WebExtension API.

Depends on D84687

Differential Revision: https://phabricator.services.mozilla.com/D99886
2021-06-09 19:20:44 +00:00
Luca Greco
27acdbe87d Bug 1682632 - part2.4: ExtensionPort. r=baku
The ExtensionPort represents the webidl definitions of the runtime.Port WebExtensions API object.

A webidl dictionary will represent the serializable definition of the port properties, sent from
the API request handler to provide all the internal properties needed to create an instance
of the ExtensionPort webidl interface on the worker thread (which will be returned to the
extension code as the return value of the runtime.connect/connectNative methods and as a
parameter of the calls to the runtime.onConnect API event listeners).

Depends on D84684

Differential Revision: https://phabricator.services.mozilla.com/D84685
2021-06-09 19:20:43 +00:00
Luca Greco
5176871f2b Bug 1682632 - part2.2: ExtensionEventListener xpcom interface base implementation. r=baku,sfink
Depends on D80609

Differential Revision: https://phabricator.services.mozilla.com/D80610
2021-06-09 19:20:42 +00:00
Luca Greco
6a6e58ffcf Bug 1682632 - part1.3: ExtensionEventManager webidl interface. r=baku,mixedpuppy
WebIDL interface and c++ class to be used by all WebExtension API webidl bindings
to expose the expected WebExtensions API events (e.g. browser.tabs.onUpdated etc.)

Depends on D84682

Differential Revision: https://phabricator.services.mozilla.com/D80604
2021-06-09 19:20:41 +00:00
Luca Greco
d3a3291a41 Bug 1682632 - part1: add ExtensionBrowser webidl API skeleton to Extension Background Service Worker. r=baku,mixedpuppy,asuth
- Extension API WebIDL to be part of a new dom/extensions-webidl directory
  (and all webidl in this directory associated with WebExtensions::General
  bugzilla component)

- Extension API C++ implementation in a new toolkit/components/extensions/webidl-api
  directory

- Lock Extensions API WebIDL bindings provided to extensions workers global on:
  - the preference "extensions.backgroundServiceWorker.enabled" being set to true
  - checking explicitly that the worker is an extension service worker declared
    in the extension manifest.json file.

- Changes to WorkerPrivate, WorkerScope.h/.cpp to expose the WebIDL
  bindings to the extension service workers (if the service worker has been
  detected as the background service worker specified in the manifest),
  plus small changes to RemoteWorkerChild.cpp to detect if the worker
  is the background service worker (and mark it as so in the WorkerPrivate
  instance associated to it)

Differential Revision: https://phabricator.services.mozilla.com/D70372
2021-06-09 19:20:40 +00:00
Marcos Cáceres
5c4b5feaa0 Bug 1704005 - Add SecureContext and Permissions Policy to Gamepad API r=johannh,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111360
2021-06-04 15:04:33 +00:00
Butkovits Atila
0c11966e33 Backed out changeset e4e70f6b0108 (bug 1704005) for causing failures in Event-timestamp-high-resolution.html. CLOSED TREE 2021-06-04 10:01:31 +03:00
Marcos Cáceres
c9f80b3c63 Bug 1704005 - Add SecureContext and Permissions Policy to Gamepad API r=johannh,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111360
2021-06-04 04:28:50 +00:00
Csoregi Natalia
cdd2783d2a Backed out changeset 039d90d5ec6b (bug 1704005) for failures on test_hide_gamepad_info.html. CLOSED TREE 2021-06-02 10:45:13 +03:00
Marcos Cáceres
0ede67a3ea Bug 1704005 - Add SecureContext and Permissions Policy to Gamepad API r=johannh,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111360
2021-06-02 01:54:07 +00:00
Dzmitry Malyshau
cee0219fda Bug 1710679 - Implement WebGPU render bundles r=webidl,jgilbert,smaug
Differential Revision: https://phabricator.services.mozilla.com/D114878
2021-05-26 20:30:45 +00:00
Butkovits Atila
95df13ddf8 Backed out changeset f7944c3f9e5b (bug 1711437) for causing mochitest failures. CLOSED TREE 2021-05-25 18:56:00 +03:00
Emilio Cobos Álvarez
4da4bb9699 Bug 1711437 - Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.

Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-05-25 13:23:35 +00:00
Dorel Luca
08f063f4c8 Backed out changeset 2c95330ad7c7 (bug 1711437) for Devtools failures in devtools/client/inspector/markup/test/browser_markup_shadowdom.js. CLOSED TREE 2021-05-24 23:01:46 +03:00
Emilio Cobos Álvarez
510cae01ca Bug 1711437 - Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.

Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-05-24 17:18:44 +00:00
Olli Pettay
7486a6ee43 Bug 1712299 - AddEventListenerOptions.signal shouldn't be nullable, r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D115693
2021-05-21 12:44:28 +00:00
Frederik Braun
527db54989 Bug 1658564 - Sanitizer API parse options - r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D113663
2021-05-20 11:44:39 +00:00
Emilio Cobos Álvarez
36b7e1c765 Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki
The behavior for non-trusted events matches Safari (Chrome does return
deltaX in that case, which seems pretty bogus, because the sign of the
wheelDelta* is the opposite as the delta* props).

Differential Revision: https://phabricator.services.mozilla.com/D114052
2021-05-14 15:17:33 +00:00
Sandor Molnar
7b4d940c00 Backed out 2 changesets (bug 1708829) for causing mochitest plain failures in test_continuous_wheel_events. CLOSED TREE
Backed out changeset 28faebd5fc72 (bug 1708829)
Backed out changeset 044c2060da7d (bug 1708829)
2021-05-14 17:12:03 +03:00
Emilio Cobos Álvarez
cbcedecf48 Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki
The behavior for non-trusted events matches Safari (Chrome does return
deltaX in that case, which seems pretty bogus, because the sign of the
wheelDelta* is the opposite as the delta* props).

Differential Revision: https://phabricator.services.mozilla.com/D114052
2021-05-14 12:41:30 +00:00
Emilio Cobos Álvarez
c8d3546157 Bug 1710756 - Expose FocusOptions.preventsFocusRing to error pages. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D114910
2021-05-12 10:47:50 +00:00
Neil Deakin
525d4000cd Bug 1709439, activateItem should allow any descendant of an open submenu to be used, r=mstange,emilio
This patch also fixes an issue where hidden native items could be activated, and makes the
error message consistent between both implementations in this case.

Differential Revision: https://phabricator.services.mozilla.com/D114503
2021-05-10 18:44:03 +00:00
Edgar Chen
1588933198 Bug 1709959 - Part 1: Remove chrome-only HTMLImageElement.forceImageState; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114575
2021-05-07 10:36:40 +00:00
Karl Tomlinson
9f60769705 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-06 05:16:49 +00:00
Peter Van der Beken
2ec947a685 Bug 1708660 - Remove support for map/setLike in JS-implemented WebIDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113949
2021-05-06 05:12:03 +00:00
Csoregi Natalia
8cad1a2512 Backed out 2 changesets (bug 1709484, bug 1709474) for geckoview fails on testDeviceRecordingEventAudioAndVideo. CLOSED TREE
Backed out changeset 069415280f6d (bug 1709474)
Backed out changeset 3853186911c9 (bug 1709484)
2021-05-06 03:38:52 +03:00
Karl Tomlinson
10fe97e403 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-05 23:04:13 +00:00
Iulian Moraru
e4231baf41 Backed out 2 changesets (bug 1708660, bug 1708657) for causing build bustages. CLOSED TREE
Backed out changeset b0fa991c8314 (bug 1708657)
Backed out changeset ef755a58e62b (bug 1708660)
2021-05-05 11:47:50 +03:00
Peter Van der Beken
1be1c3b5b0 Bug 1708660 - Remove support for map/setLike in JS-implemented WebIDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113949
2021-05-05 08:08:52 +00:00
Karl Tomlinson
a6be19d968 Bug 1708179 throw when attempting to set AudioParam value during setValueCurveAtTime() interval r=padenot,emilio
Depends on D113938

Differential Revision: https://phabricator.services.mozilla.com/D113939
2021-05-04 03:48:32 +00:00
Niklas Goegge
b97cd2430b Bug 1708150 - Add user activation flag to reload, goBack and goForward r=ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D110245
2021-04-28 11:26:49 +00:00
Edgar Chen
abae49f3fc Bug 1706621 - Add UseCounter telemetry for pointer capture; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113411
2021-04-27 19:19:03 +00:00