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

5657 Коммитов

Автор SHA1 Сообщение Дата
Zibi Braniecki f42090a25a Bug 1660392 - [l10nregistry] part2: Add L10nRegistry WebIDL backed by l10nregistry-rs. r=nika,emilio
Depends on D105415

Differential Revision: https://phabricator.services.mozilla.com/D102096
2021-07-30 16:47:47 +00:00
Zibi Braniecki 36a07a5f2a Bug 1660392 - [l10nregistry] part1: Add support for AsyncIterator to Codegen.py. r=edgar
Depends on D105394

Differential Revision: https://phabricator.services.mozilla.com/D105415
2021-07-30 16:47:46 +00:00
Zibi Braniecki f23494c7e7 Bug 1672317 - [l10nfilesource] part3: Introduce L10nFileSource backed by l10nregistry-rs. r=nika,emilio
Depends on D102102

Differential Revision: https://phabricator.services.mozilla.com/D103002
2021-07-29 21:30:25 +00:00
Noemi Erli 9009ea58e0 Backed out 9 changesets (bug 1672317) for causing toolchain bustages
Backed out changeset c7d16d1bbf56 (bug 1672317)
Backed out changeset 8367ff19d3ba (bug 1672317)
Backed out changeset cce54c20ec3c (bug 1672317)
Backed out changeset a5d67460e7bb (bug 1672317)
Backed out changeset b78f3e332d57 (bug 1672317)
Backed out changeset 3e84f9a521f4 (bug 1672317)
Backed out changeset 1aaa22cf7c13 (bug 1672317)
Backed out changeset d850981cf33c (bug 1672317)
Backed out changeset 944805ef4561 (bug 1672317)
2021-07-30 00:19:40 +03:00
Zibi Braniecki 6b765f55cf Bug 1672317 - [l10nfilesource] part3: Introduce L10nFileSource backed by l10nregistry-rs. r=nika,emilio
Depends on D102102

Differential Revision: https://phabricator.services.mozilla.com/D103002
2021-07-29 17:31:52 +00:00
Noemi Erli a523fe1ad1 Backed out changeset 3cb3442efede (bug 1622846) for causing Bug 1722702 CLOSED TREE 2021-07-29 20:14:46 +03:00
Dzmitry Malyshau 9963bd1ee1 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-07-27 22:37:46 +00:00
Andrew McCreight 3726aae8d4 Bug 1719998 - Don't use lookupForAdd in GetOrCreateProxyObject. r=peterv,jonco
Differential Revision: https://phabricator.services.mozilla.com/D119699
2021-07-20 23:42:00 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Tooru Fujisawa 8f6310e25c Bug 1708450 - Move call and construct functions into js/public/CallAndConstruct.h. r=nbp
Depends on D119619

Differential Revision: https://phabricator.services.mozilla.com/D119620
2021-07-13 11:52:43 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Tooru Fujisawa bf37e9d86e Bug 1708432 - Move JS_Get*PropertyDescriptor* to js/public/PropertyDescriptor.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119617
2021-07-13 11:52:41 +00:00
Jan de Mooij 59f8590115 Bug 1719795 part 5 - Change JSCLASS_PRIVATE_IS_NSISUPPORTS JSClasses to use a reserved slot instead. r=mccr8,jonco
This is a step towards removing object private slots.

Classes with JSCLASS_PRIVATE_IS_NSISUPPORTS now use JSCLASS_SLOT0_IS_NSISUPPORTS
instead. For most classes this means we need to add an extra reserved slot and remove
the private slot.

Global objects (SimpleGlobalObject and the XPConnect BackstagePass and Sandbox globals)
however can use the JSCLASS_GLOBAL_APPLICATION_SLOTS already there. These slots were
only used for WebIDL DOM globals until now.

Differential Revision: https://phabricator.services.mozilla.com/D119502
2021-07-13 09:31:34 +00:00
Jan de Mooij bd355121f9 Bug 1719795 part 1 - Add a helper function for getting a SimpleGlobalObject's native global. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D119498
2021-07-13 09:31:32 +00:00
Kagami Sascha Rosylight a54da69bc5 Bug 1717613 - Remove HAVE_SIDEBAR build condition r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118613
2021-06-24 20:55:37 +00:00
Sandor Molnar e6880a9bb9 Backed out changeset 9da3d7718f82 (bug 1717613) for causing BR build bustages. CLOSED TREE 2021-06-24 22:24:55 +03:00
Tom Schuster 5929313fb7 Bug 1705195 - Remove JSID_TO_ATOM. r=mgaudet
Depends on D118589

Differential Revision: https://phabricator.services.mozilla.com/D118590
2021-06-23 21:16:52 +00:00
Tom Schuster 3cc6658a27 Bug 1699268 - Remove JSID_IS_ATOM. r=mgaudet,smaug
Differential Revision: https://phabricator.services.mozilla.com/D118589
2021-06-23 21:16:52 +00:00
Kagami Sascha Rosylight 0976ff66fa Bug 1717613 - Remove HAVE_SIDEBAR build condition r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D118613
2021-06-23 20:36:16 +00:00
Nika Layzell 5731c1747c Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D118430
2021-06-23 01:57:00 +00:00
Alexandru Michis e3d24b013a Backed out changeset 3beb01f5d643 (bug 1717526) for causing gtest failures in SpanTest.from_xpcom_collections
CLOSED TREE
2021-06-23 01:58:49 +03:00
Nika Layzell c14de7eabc Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D118430
2021-06-22 21:18:03 +00:00
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
Dorel Luca 1ed1bb14ee Backed out 3 changesets (bug 1706404) for Linting failures in builds/worker/checkouts/gecko/dom/bindings/Codegen.py. CLOSED TREE
Backed out changeset 5ecbe2eb1d25 (bug 1706404)
Backed out changeset b50507879a6b (bug 1706404)
Backed out changeset b0c0700ce719 (bug 1706404)
2021-04-29 21:31:09 +03:00
Tom Schuster ec41b97a35 Bug 1706404 - BaseDOMProxyHandler::getOwnPropertyDescriptor should return Maybe<PropertyDescriptor>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113660
2021-04-29 17:36:48 +00:00
Edgar Chen 70f3dbe892 Bug 1707721 - Fix the comment for BindingJSObjectCreator; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113414
2021-04-27 09:34:12 +00:00
Tom Schuster 9f76a47f4a Bug 1706404 - Convert some simple cases to the Maybe<PropertyDescriptor> API. r=smaug
I am going to chip away at replacing all callers that don't use the Maybe based API.

Differential Revision: https://phabricator.services.mozilla.com/D113018
2021-04-25 18:46:49 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Alex Lopez d1a82b8092 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-04-22 18:56:15 +00:00
Narcis Beleuzu 058229227c Bug 1704293 - Fix lint on Codegen.py . CLOSED TREE 2021-04-20 01:48:50 +03:00
Tom Schuster b728526ade Bug 1704293 - Use Maybe<PropertyDescriptor> for BaseProxyHandler::getOwnPropertyDescriptor in DOM and XPConnect. r=jandem,smaug
Differential Revision: https://phabricator.services.mozilla.com/D112037
2021-04-19 19:51:59 +00:00
Cosmin Sabou 785f9b8a87 Backed out changeset d4a5d8567977 (bug 1696251) for non-unified build bustages. CLOSED TREE 2021-04-19 19:43:31 +03:00
Alex Lopez 75dfe35468 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-04-19 16:15:11 +00:00
Jan de Mooij e3b0d44b4b Bug 1704851 part 2 - Change CheckRecursionLimitConservative to AutoCheckRecursionLimit::checkConservative. r=tcampbell
Depends on D111868

Differential Revision: https://phabricator.services.mozilla.com/D111869
2021-04-14 09:01:30 +00:00
Tom Schuster af15083e8c Bug 1704293 - Use Maybe<PropertyDescriptor> for SetPropertyIgnoringNamedGetter. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D111538
2021-04-12 15:34:19 +00:00
Kagami Sascha Rosylight af6b24b75f Bug 1631581 - Part 8: Rename TreatNonObjectAsNull to LegacyTreatNonObjectAsNull r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111216
2021-04-11 03:13:33 +00:00
Kagami Sascha Rosylight a0c17c50d9 Bug 1631581 - Part 7: Rename OverrideBuiltIns to LegacyOverrideBuiltIns r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111215
2021-04-11 03:13:33 +00:00
Kagami Sascha Rosylight 074001023e Bug 1631581 - Part 6: Rename LenientSetter to LegacyLenientSetter r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111214
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight 434af579f7 Bug 1631581 - Part 5: Rename TreatNullAs=EmptyString to LegacyNullToEmptyString r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111213
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight 20a3a7aaff Bug 1631581 - Part 4: Rename Unforgeable to LegacyUnforgeable r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111212
2021-04-11 03:13:32 +00:00
Kagami Sascha Rosylight d8adb037f5 Bug 1631581 - Part 3: Rename LenientThis to LegacyLenientThis r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111211
2021-04-11 03:13:31 +00:00
Kagami Sascha Rosylight 76d2e42ae7 Bug 1631581 - Part 2: Rename NamedConstructor to LegacyFactoryFunction r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111210
2021-04-11 03:13:31 +00:00
Kagami Sascha Rosylight 6eb4c94b83 Bug 1631581 - Part 1: Rename NoInterfaceObject to LegacyNoInterfaceObject r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111209
2021-04-11 03:13:30 +00:00
Jan de Mooij 11292be321 Bug 1700052 part 16 - Add tests for accessor properties. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D110263
2021-04-07 07:16:09 +00:00
David Parks cd6fd9bfe5 Bug 1682030 - Remove more dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,emilio
This is the second of two patches in this series that removes a large amount of now dead code from dom/plugins as part of removing all NPAPI plugin support.

Differential Revision: https://phabricator.services.mozilla.com/D107150
2021-04-06 19:28:15 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks 30be5dc789 Bug 1682030 - Remove more dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,emilio
This is the second of two patches in this series that removes a large amount of now dead code from dom/plugins as part of removing all NPAPI plugin support.

Differential Revision: https://phabricator.services.mozilla.com/D107150
2021-04-05 23:48:39 +00:00
Emilio Cobos Álvarez 83883440fc Bug 1700463 - Add headers for union submembers. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D110096
2021-03-30 19:10:25 +00:00
Sean Feng daffde1ac2 Bug 1700391 - Remove the unused UnprivilegedJunkScopeOrWorkerGlobal() method r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D109514
2021-03-24 12:56:45 +00:00