Граф коммитов

5583 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 67961ba46a Bug 1717279 - Remove JSID_IS_SYMBOL and JSID_TO_SYMBOL. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D118287
2021-06-21 20:56:10 +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 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 2d03a28033 Bug 1682632 - part1.1: WebExtensionStub extended attribute in WebIDL generator. r=peterv,mixedpuppy
Define a new WebExtensionStub extended attribute in the WebIDL generator
to be used in the WebExtensions API WebIDL definitions.

Depends on D70372

Differential Revision: https://phabricator.services.mozilla.com/D84681
2021-06-11 18:58:06 +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 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 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 673f476aef Bug 1682632 - part1.1: WebExtensionStub extended attribute in WebIDL generator. r=peterv,mixedpuppy
Define a new WebExtensionStub extended attribute in the WebIDL generator
to be used in the WebExtensions API WebIDL definitions.

Depends on D70372

Differential Revision: https://phabricator.services.mozilla.com/D84681
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
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 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 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 7edc5e8e99 Bug 1682632 - part1.1: WebExtensionStub extended attribute in WebIDL generator. r=peterv,mixedpuppy
Define a new WebExtensionStub extended attribute in the WebIDL generator
to be used in the WebExtensions API WebIDL definitions.

Depends on D70372

Differential Revision: https://phabricator.services.mozilla.com/D84681
2021-06-09 19:20:40 +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
Andrey Bienkowski 888618300d Bug 1714376 - Replace a number of "exception.message" usages. r=mhentges,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D116723
2021-06-08 15:50:10 +00:00
Dorel Luca f021feb29f Backed out changeset 68f73772f51e (bug 1714376) for Xpcom failures in builds/worker/checkouts/gecko/xpcom/idl-parser/xpidl/runtests.py. CLOSED TREE 2021-06-04 02:19:33 +03:00
Andrey Bienkowski a7a4542e20 Bug 1714376 - Replace a number of "exception.message" usages. r=mhentges,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D116723
2021-06-03 20:08:51 +00:00
Peter Van der Beken f206ae96e4 Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8
There's a pattern of clearing JS things when calling mozilla::DropJSObjects,
but mozilla::DropJSObjects already clears the JS things itself by calling
CycleCollectedJSRuntime::RemoveJSHolder.

Differential Revision: https://phabricator.services.mozilla.com/D115885
2021-05-27 08:35:40 +00:00
Andreas Farre 5b19cea74f Part 4: Bug 1700623 - Add js value conversion for Record. r=peterv
Depends on D111430

Differential Revision: https://phabricator.services.mozilla.com/D111431
2021-05-26 07:14:05 +00:00
Mike Hommey 87c8445c5a Bug 1711821 - Word around GCC bug with nodiscard forwarded nullptr r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D115458
2021-05-25 20:12:07 +00:00
Andi-Bogdan Postelnicu 1cf28e7475 Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio
Updated with clang-format version 12.0.0 (taskcluster-KEgO7qdgQ8uaewA6NkRnRA)

Differential Revision: https://phabricator.services.mozilla.com/D115804
2021-05-24 15:08:47 +00:00
Tom Schuster 134bdb0d1e Bug 1711959 - Remove all uses of PropertyDescriptor attributes. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D115603
2021-05-21 13:13:51 +00:00
Alexandru Michis 84d8f14b41 Backed out 9 changesets (bug 1700623) for causing bc failures in browser_history_menu.js
CLOSED TREE

Backed out changeset 5eae296ad8b5 (bug 1700623)
Backed out changeset 97c3add3b00a (bug 1700623)
Backed out changeset 7ab483627a27 (bug 1700623)
Backed out changeset a4e673640de5 (bug 1700623)
Backed out changeset 513ea16be430 (bug 1700623)
Backed out changeset 88b4add342df (bug 1700623)
Backed out changeset c13bdee1b526 (bug 1700623)
Backed out changeset 26df421dac02 (bug 1700623)
Backed out changeset 6cd0b7a269e5 (bug 1700623)
2021-05-21 11:43:54 +03:00
Andreas Farre 789bd5766b Part 4: Bug 1700623 - Add js value conversion for Record. r=peterv
Depends on D111430

Differential Revision: https://phabricator.services.mozilla.com/D111431
2021-05-20 12:48:21 +00:00
Tom Schuster 627f316c95 Bug 1710835 - Remove PropertyDescriptor setAttributes. r=jandem
Depends on D115371

Differential Revision: https://phabricator.services.mozilla.com/D115372
2021-05-18 20:41:12 +00:00
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Tom Schuster 8076edbe6f Bug 1710126 - Make PropertyDescriptor attrs private. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D114636
2021-05-11 11:03:24 +00:00
Tom Schuster 3eec692939 Bug 1710064 - Remove FillPropertyDescriptor. r=peterv
I hope I got all the PropertyAttributes right, it's easy to get them confused.

Differential Revision: https://phabricator.services.mozilla.com/D114595
2021-05-11 09:23:18 +00:00
Peter Van der Beken 2ffa0654be Bug 1709695 - Only init PropertyInfos and sort IDs for resolving Xray properties once needed. r=nika
Most of the time, a lot of the WebIDL interfaces are never used with Xray wrappers.
We still always initialise the necessary PropertyInfo arrays whenever they're used
normally (not through Xray wrappers). I think we should postpone that initialisation
until we're actually going to use them with Xray wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D114402
2021-05-07 13:57:24 +00:00
Tom Schuster e9ca1492d0 Bug 1708698 - Stop using PropertyDescriptor object in browser. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113978
2021-05-07 12:29:06 +00:00
Tom Schuster a2dce1438e Bug 1708698 - Use Maybe<PropertyDescriptor> for Xray resolveOwnProperty and a lot of related code. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113976
2021-05-07 12:29:05 +00:00
Dorel Luca 753e2506cf Backed out changeset d1070cff14c6 (bug 1709695) for Mochitest failures in dom/tests/mochitest/chrome/test_sandbox_bindings.xhtml. CLOSED TREE 2021-05-07 10:47:54 +03:00
Peter Van der Beken ba1380d84b Bug 1709695 - Only init PropertyInfos and sort IDs for resolving Xray properties once needed. r=nika
Most of the time, a lot of the WebIDL interfaces are never used with Xray wrappers.
We still always initialise the necessary PropertyInfo arrays whenever they're used
normally (not through Xray wrappers). I think we should postpone that initialisation
until we're actually going to use them with Xray wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D114402
2021-05-07 06:59:07 +00:00
Peter Van der Beken d3d8dcf5f6 Bug 1688198 - Symbol.toStringTag is incorrectly defined on the global object, rather than on its prototype. r=edgar.
For [Global] WebIDL interfaces, properties from the property array are installed
on the object itself, instead of on the prototype. To fix the bug I changed how
we install the @@toStringTag property, instead of adding it in the property
array of every interface we'll now instead install the property directly in
CreateInterfacePrototypeObject, which is also a codesize win. This does mean
that we need to look up the value dynamically in XrayResolveOwnProperty (we
can't resolve it from the property array anymore), but luckily we can use
NamesOfInterfacesWithProtos for that.

Differential Revision: https://phabricator.services.mozilla.com/D113664
2021-05-07 06:58:31 +00:00
Edgar Chen 9314cde68b Bug 1709099 - Remove unused argment from FakeArgument; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D114106
2021-05-06 22:46:48 +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
Peter Van der Beken 9b5b32ef7e Bug 1708497 - Stop generating identical ResolveOwnProperty/EnumerateOwnProperties implementations. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113827
2021-05-05 13:43:59 +00:00
Peter Van der Beken 47aa5641bc Bug 1708431 - Don't root receiver in DOMProxyHandler::get if we don't need to wrap it. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113794
2021-05-05 13:21:12 +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
Edgar Chen 175367a9cc Bug 1707870 - Stop generating empty namespace block; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113502
2021-05-03 08:58:56 +00:00
Peter Van der Beken 63c52dcfa0 Bug 1708210 - Remove obsolete comment about brace-elision. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113667
2021-04-30 11:20:38 +00:00
Tom Schuster 133196d301 Bug 1706404 - BaseDOMProxyHandler::getOwnPropertyDescriptor should return Maybe<PropertyDescriptor>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113660
2021-04-29 19:16:42 +00:00