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

7976 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup faeae8bbf8 Bug 1790677: Initial WebTransport IPC for creating and closing WebTransport r=webidl,ipc-reviewers,smaug,nika
Differential Revision: https://phabricator.services.mozilla.com/D164124
2022-12-19 17:57:59 +00:00
Tom Schuster 8cb9391ce6 Bug 1805632 - Add a new pref just for Element.setHTML without enabling the Sanitizer interface. r=freddyb,webidl,edgar
The purpose of this is to allow using setHTML(text), without specifiying the sanitizer and thus always getting
the default sanitizer policy.

Differential Revision: https://phabricator.services.mozilla.com/D164677
2022-12-19 15:56:35 +00:00
Adam Vandolder 151aa8e164 Bug 1575154 - Add autofocus attribute to HTMLOrForeignElement. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163753
2022-12-19 15:09:15 +00:00
Martin Robinson 97f351c1d4 Bug 1798485 - Add support for the `contentvisibilityautostatechange` event r=emilio
Add support for the contentvisibilityautostatechange and fire it when
the relevancy of `content-visibility: auto` elements change.

This commit also makes some changes to the
content-visibility-auto-state-changed.html test. Two more subtests are
added which verifies that an event is sent after `content-visibility:
auto` is applied to an element. Finally the `top` element is renamed to
`upper` as `top` can also refer to the top-level Window and it seems
that Gecko has a different precedence when accessing variables in
script.

Differential Revision: https://phabricator.services.mozilla.com/D161140
2022-12-19 11:01:24 +00:00
Csoregi Natalia c382c6a7ca Backed out 16 changesets (bug 1247687) for frequent string bundle related crashes with PDF viewer (bug 1806064). a=backout
Backed out changeset 721f612fd09f (bug 1247687)
Backed out changeset c6c5750cf713 (bug 1247687)
Backed out changeset 5d05ab0c7cde (bug 1247687)
Backed out changeset 2429599729cb (bug 1247687)
Backed out changeset 55f13fb4ee3f (bug 1247687)
Backed out changeset 354711cf113a (bug 1247687)
Backed out changeset 40b8abaf1c0b (bug 1247687)
Backed out changeset 0c9650a1ac48 (bug 1247687)
Backed out changeset e7b103c79b1a (bug 1247687)
Backed out changeset 4dbd510fb042 (bug 1247687)
Backed out changeset 9276c7e1ddd9 (bug 1247687)
Backed out changeset 6ee318df6641 (bug 1247687)
Backed out changeset 6c129bd72b61 (bug 1247687)
Backed out changeset 4b0a4fcc6894 (bug 1247687)
Backed out changeset 34680059b9f0 (bug 1247687)
Backed out changeset 85b827971a48 (bug 1247687)
2022-12-17 11:27:32 +02:00
Narcis Beleuzu 6da804aed4 Backed out changeset 34ec63cced63 (bug 1575154) for causing wpt failures on idlharness.https.html . CLOSED TREE 2022-12-15 23:10:35 +02:00
Adam Vandolder 8a69b66390 Bug 1575154 - Add autofocus attribute to HTMLOrForeignElement. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163753
2022-12-15 18:37:28 +00:00
William Durand 5f3f11820e Bug 1437171 - Add Web MIDI support in `navigator.permissions.query()`. r=webidl,smaug,pbz
Differential Revision: https://phabricator.services.mozilla.com/D164036
2022-12-15 10:24:17 +00:00
Iulian Moraru 747186542b Backed out changeset 51b2a95943c0 (bug 1437171) for causing wpt failures on all-permissions.html related to query "midi" permission. 2022-12-15 06:10:01 +02:00
William Durand 3da94170fc Bug 1437171 - Add Web MIDI support in `navigator.permissions.query()`. r=webidl,smaug,pbz
Differential Revision: https://phabricator.services.mozilla.com/D164036
2022-12-14 22:20:37 +00:00
Yulia Startsev ad075e13e3 Bug 1247687 - Update WebIDL to accept module workers; r=asuth
Depends on D163239

Differential Revision: https://phabricator.services.mozilla.com/D134052
2022-12-14 14:55:34 +00:00
Jan Varga 39e6e07c86 Bug 1805135 - Fix FileSystemWritableFileStream to use the default writer for all IO operations; r=dom-storage-reviewers,webidl,smaug,jari
Differential Revision: https://phabricator.services.mozilla.com/D164444
2022-12-14 13:20:45 +00:00
Noemi Erli 769b7ebb72 Backed out 6 changesets (bug 1774306) for causing leak failures CLOSED TREE
Backed out changeset aebaccb21fac (bug 1774306)
Backed out changeset 718fc08ac6a0 (bug 1774306)
Backed out changeset 3b5616ad1231 (bug 1774306)
Backed out changeset c2bae45b50fb (bug 1774306)
Backed out changeset 836597b2894b (bug 1774306)
Backed out changeset 51ee6beb36f8 (bug 1774306)
2022-12-14 08:27:50 +02:00
Byron Campen cf1dd9ff37 Bug 1401592: Add a config option to imitate the old setParameters behavior. r=jib,chutten,webidl,smaug
When the compat mode is used, we log warnings to the JS console instead of
throwing. We also add a bunch of Glean metrics for tracking how often we
see these warnings (or failures) in the field.

Differential Revision: https://phabricator.services.mozilla.com/D161523
2022-12-13 23:22:04 +00:00
Byron Campen e3ee0cdf72 Bug 1401592: Support sendEncodings in addTransceiver, and bring get/setParameters up to spec. r=mjf,webidl,smaug
Also, fix a pre-existing bug in JsepTrack::operator=

Differential Revision: https://phabricator.services.mozilla.com/D156834
2022-12-13 23:22:00 +00:00
Chun-Min Chang e7ff91d5db Bug 1774306 - Implement [Transferable] for VideoFrame r=smaug
This patch implements `Custom{Read, Write, Free}TransferHandler` for
`VideoFrame` so `VideoFrame` can be *transferred*

Differential Revision: https://phabricator.services.mozilla.com/D154677
2022-12-13 22:58:38 +00:00
Butkovits Atila 74a43f86ea Backed out 18 changesets (bug 1401592, bug 1676855) for causing failures at test_peerConnection_scaleResolution_oldSetParameters.html. CLOSED TREE
Backed out changeset 47c810ec8060 (bug 1676855)
Backed out changeset aba56121e546 (bug 1401592)
Backed out changeset ba525fa85b99 (bug 1401592)
Backed out changeset 00409e6f4685 (bug 1401592)
Backed out changeset bf98bb55e45f (bug 1401592)
Backed out changeset f16c0eb92363 (bug 1401592)
Backed out changeset 3cb1dde9bbbc (bug 1401592)
Backed out changeset a9bfef738d49 (bug 1401592)
Backed out changeset aa6aa10cfd97 (bug 1401592)
Backed out changeset b4752eaae108 (bug 1401592)
Backed out changeset e868d7b3abd8 (bug 1401592)
Backed out changeset ce11d420246c (bug 1401592)
Backed out changeset 01434a8cb2b6 (bug 1401592)
Backed out changeset 154d08dd3bca (bug 1401592)
Backed out changeset fffc015a5dd5 (bug 1401592)
Backed out changeset 9e11ddaf8b3e (bug 1401592)
Backed out changeset 26a812435ddd (bug 1401592)
Backed out changeset 3b064fbc9a61 (bug 1401592)
2022-12-13 22:53:05 +02:00
Andrew McCreight 9edebfc628 Bug 1805269 - Don't allow getting gamepad and VR test services outside of automation. r=smaug,cmartin
These interfaces are already disabled by prefs, but they are ironically
probably not well tested, so just add an extra check.

Differential Revision: https://phabricator.services.mozilla.com/D164496
2022-12-13 18:20:46 +00:00
Byron Campen e1da52d829 Bug 1401592: Add a config option to imitate the old setParameters behavior. r=jib,chutten,webidl,smaug
When the compat mode is used, we log warnings to the JS console instead of
throwing. We also add a bunch of Glean metrics for tracking how often we
see these warnings (or failures) in the field.

Differential Revision: https://phabricator.services.mozilla.com/D161523
2022-12-13 16:32:25 +00:00
Byron Campen 5315caffa5 Bug 1401592: Support sendEncodings in addTransceiver, and bring get/setParameters up to spec. r=mjf,webidl,smaug
Also, fix a pre-existing bug in JsepTrack::operator=

Differential Revision: https://phabricator.services.mozilla.com/D156834
2022-12-13 16:32:21 +00:00
Narcis Beleuzu f213a8e9c1 Backed out changeset 0e5d5b851391 (bug 1805135) for Hazard bustages on FileSystemWritableFileStream.cpp . CLOSED TREE 2022-12-13 15:25:18 +02:00
Jan Varga 857acd9daa Bug 1805135 - Fix FileSystemWritableFileStream to use the default writer for all IO operations; r=dom-storage-reviewers,webidl,smaug,jari
Differential Revision: https://phabricator.services.mozilla.com/D164444
2022-12-13 06:43:55 +00:00
Edgar Chen fa88384e7d Bug 1794268 - Use WindowContext to check if drag source and drop target are in the same tab; r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D163981
2022-12-08 23:37:46 +00:00
John Schanck 94dee3ffcd Bug 1804579 - Deprecate the U2F DOM API. r=dveditz,webidl,smaug,flod
Differential Revision: https://phabricator.services.mozilla.com/D164166
2022-12-08 20:44:34 +00:00
Randell Jesup ec36412f03 Bug 1797579: Make SyncAccessHandle fully sync r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D163396
2022-12-07 13:00:56 +00:00
Butkovits Atila 5286f45204 Backed out changeset 68ca2f48ea95 (bug 1734244) for causing leaks. CLOSED TREE 2022-12-06 18:22:43 +02:00
Robert Longson 5046858f0c Bug 1133174 - Disable SVGGraphicsElement.{nearest,farthest}ViewportElement in early beta r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163907
2022-12-06 14:10:29 +00:00
Tom Schuster a497727c1d Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-12-06 12:46:44 +00:00
Benjamin VanderSloot a0f80c4b32 Bug 1782087, part 1 - Create registration doorhanger for IdentityCredential, r=pbz,fluent-reviewers,webidl,smaug,flod
We need one more panel in the doorhanger- one that is a user information panel per (rp, idp, account) tuple.

This just gives the privacy policy and ToS links to the user. It is implemented similarly to the other panels,
and would similarly be updated by Bug 1800695.

Similar to the original doorhanger patch (Bug 1782088 - Create account chooser doorhanger for IdentityCredential)
tests and fine polish are out of scope for this prototype.

Differential Revision: https://phabricator.services.mozilla.com/D162126
2022-12-03 18:50:31 +00:00
Benjamin VanderSloot 9fe517527e Bug 1782094 - Implement IdentityCredential.logoutRPs, r=timhuang,emilio
Specification is available here: https://fedidcg.github.io/FedCM/#browser-api-idp-sign-out

Implementation is similar to other Fetch* funcitons in this file and makes use of the network helper.

Tests omitted through the same "not exposed to users" justification. This is tracked by Bug 1800687.

Differential Revision: https://phabricator.services.mozilla.com/D162125
2022-12-03 18:50:31 +00:00
Robert Longson 987d74f58e Bug 1803790 - Remove SVGGraphicsElement.getTransformToElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163724
2022-12-03 01:10:45 +00:00
Sandor Molnar b2e8991495 Backed out 5 changesets (bug 1782087, bug 1782094, bug 1782093, bug 1782091) for causing bc failures in toolkit/components/cleardata/tests/browser/browser_quota.js CLOSED TREE
Backed out changeset e810f2f0580f (bug 1782093)
Backed out changeset 955c8cad8112 (bug 1782087)
Backed out changeset 372252b98cd7 (bug 1782087)
Backed out changeset 32e4f376e64f (bug 1782094)
Backed out changeset 1475247d538f (bug 1782091)
2022-12-03 00:53:52 +02:00
Benjamin VanderSloot df891b0b05 Bug 1782087, part 1 - Create registration doorhanger for IdentityCredential, r=pbz,fluent-reviewers,webidl,smaug,flod
We need one more panel in the doorhanger- one that is a user information panel per (rp, idp, account) tuple.

This just gives the privacy policy and ToS links to the user. It is implemented similarly to the other panels,
and would similarly be updated by Bug 1800695.

Similar to the original doorhanger patch (Bug 1782088 - Create account chooser doorhanger for IdentityCredential)
tests and fine polish are out of scope for this prototype.

Differential Revision: https://phabricator.services.mozilla.com/D162126
2022-12-02 18:41:46 +00:00
Benjamin VanderSloot 99f3598641 Bug 1782094 - Implement IdentityCredential.logoutRPs, r=timhuang,emilio
Specification is available here: https://fedidcg.github.io/FedCM/#browser-api-idp-sign-out

Implementation is similar to other Fetch* funcitons in this file and makes use of the network helper.

Tests omitted through the same "not exposed to users" justification. This is tracked by Bug 1800687.

Differential Revision: https://phabricator.services.mozilla.com/D162125
2022-12-02 18:41:46 +00:00
Norisz Fay 5313909b4c Backed out 5 changesets (bug 1782093, bug 1782094, bug 1782087, bug 1782091) for causing multiple mozStorageService related failures CLOSED TREE
Backed out changeset 4f57469716d2 (bug 1782093)
Backed out changeset a06b230dc4f2 (bug 1782087)
Backed out changeset 8031bd99e17d (bug 1782087)
Backed out changeset 50141328dfad (bug 1782094)
Backed out changeset a2030d35f960 (bug 1782091)
2022-12-01 16:42:29 +02:00
Benjamin VanderSloot 05c4b2eb59 Bug 1782087, part 1 - Create registration doorhanger for IdentityCredential, r=pbz,fluent-reviewers,webidl,smaug,flod
We need one more panel in the doorhanger- one that is a user information panel per (rp, idp, account) tuple.

This just gives the privacy policy and ToS links to the user. It is implemented similarly to the other panels,
and would similarly be updated by Bug 1800695.

Similar to the original doorhanger patch (Bug 1782088 - Create account chooser doorhanger for IdentityCredential)
tests and fine polish are out of scope for this prototype.

Differential Revision: https://phabricator.services.mozilla.com/D162126
2022-12-01 13:47:16 +00:00
Benjamin VanderSloot 7fc7dcae14 Bug 1782094 - Implement IdentityCredential.logoutRPs, r=timhuang,emilio
Specification is available here: https://fedidcg.github.io/FedCM/#browser-api-idp-sign-out

Implementation is similar to other Fetch* funcitons in this file and makes use of the network helper.

Tests omitted through the same "not exposed to users" justification. This is tracked by Bug 1800687.

Differential Revision: https://phabricator.services.mozilla.com/D162125
2022-12-01 13:47:15 +00:00
Butkovits Atila 886f3d36e7 Backed out changeset 2ce86a76d99d (bug 1734244) for causing wpt failures at RuntimeService.cpp 2022-12-01 15:19:16 +02:00
Tom Schuster 44008b5206 Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-12-01 09:04:34 +00:00
Butkovits Atila 242a7308b4 Backed out changeset fd13db3ea2b3 (bug 1734244) for causing failures at idlharness-shadowrealm.window.html. CLOSED TREE 2022-12-01 08:16:58 +02:00
Tom Schuster 37f5b2a2a7 Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-11-30 22:26:28 +00:00
Iulian Moraru a4a41aafa8 Backed out 5 changesets (bug 1782087, bug 1782093, bug 1782094, bug 1782091) for causing multiple failures. CLOSED TREE
Backed out changeset 11e59dcd517b (bug 1782093)
Backed out changeset 66eeced8dbed (bug 1782087)
Backed out changeset 8c7764e1ff1d (bug 1782087)
Backed out changeset 2c6f41077d9d (bug 1782094)
Backed out changeset 5f38f252060f (bug 1782091)
2022-11-30 06:16:55 +02:00
Benjamin VanderSloot a9daa49513 Bug 1782087, part 1 - Create registration doorhanger for IdentityCredential, r=pbz,fluent-reviewers,webidl,smaug,flod
We need one more panel in the doorhanger- one that is a user information panel per (rp, idp, account) tuple.

This just gives the privacy policy and ToS links to the user. It is implemented similarly to the other panels,
and would similarly be updated by Bug 1800695.

Similar to the original doorhanger patch (Bug 1782088 - Create account chooser doorhanger for IdentityCredential)
tests and fine polish are out of scope for this prototype.

Differential Revision: https://phabricator.services.mozilla.com/D162126
2022-11-30 02:41:00 +00:00
Benjamin VanderSloot 7e45b2b9ee Bug 1782094 - Implement IdentityCredential.logoutRPs, r=timhuang,emilio
Specification is available here: https://fedidcg.github.io/FedCM/#browser-api-idp-sign-out

Implementation is similar to other Fetch* funcitons in this file and makes use of the network helper.

Tests omitted through the same "not exposed to users" justification. This is tracked by Bug 1800687.

Differential Revision: https://phabricator.services.mozilla.com/D162125
2022-11-30 02:40:59 +00:00
Nika Layzell 39cfe43333 Bug 1538028 - Part 4: Pass TriggeringRemoteType through the frontend, r=Gijs,emilio
Propagate the ability to pass triggeringRemoteType through the desktop frontend
in various places, such that it is set when using the context menu or content
click handler.

Differential Revision: https://phabricator.services.mozilla.com/D161834
2022-11-29 20:41:46 +00:00
Zach Hoffman 6978315eec Bug 841942 - Display tick marks for <input type=range> when @list/<datalist> is used r=emilio,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D162882
2022-11-28 22:06:33 +00:00
Chun-Min Chang d367adba8a Bug 1801818 - Make VideoFrame.timestamp non-null r=padenot,emilio
Keep up with https://github.com/w3c/webcodecs/pull/437

Differential Revision: https://phabricator.services.mozilla.com/D162808
2022-11-23 22:03:43 +00:00
Randell Jesup 1b6d10cb7a Bug 1790676: WebTransport DOM API initial framework r=saschanaz,necko-reviewers,emilio,valentin
This includes WebTransport, WebTransportSendStream,
WebTransportReceiveStreams, WebTransportBidirectionalStream and
WebTransportError classes without any actual functionality

Differential Revision: https://phabricator.services.mozilla.com/D162323
2022-11-22 13:43:57 +00:00
Chun-Min Chang 8380323177 Bug 1798975 - Add new values to VideoColorSpace r=webidl,jgilbert,padenot,smaug
Add more color spaces introduced by https://github.com/w3c/webcodecs/pull/566

Differential Revision: https://phabricator.services.mozilla.com/D161224
2022-11-22 11:42:55 +00:00
Brian Birtles fef2d448e2 Bug 1789776: Add indexed getter and length property to CSSKeyframesRule; r=emilio
Implements spec change 354c40d988

Differential Revision: https://phabricator.services.mozilla.com/D162526
2022-11-21 09:41:51 +00:00
Mathew Hodson b7382dce22 Bug 1799319 - Disable mozTextStyle in early beta. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161747
2022-11-18 13:05:23 +00:00
Randell Jesup 2f2e6d51f3 Bug 1769057: WritableFileStream for OPFS implementation r=janv,webidl,dom-storage-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D146203
2022-11-09 17:15:25 +00:00
Butkovits Atila 238d560c4a Backed out 30 changesets (bug 1777361, bug 1798459, bug 1769057) for causing failures at fs/FileSystemBaseHandle-IndexedDB. CLOSED TREE
Backed out changeset 89c3a814819c (bug 1798459)
Backed out changeset 83b1e1b3c168 (bug 1798459)
Backed out changeset 179d6204b3bb (bug 1798459)
Backed out changeset b371599177b6 (bug 1798459)
Backed out changeset b68c63983ae7 (bug 1798459)
Backed out changeset 3b1eaafa31d2 (bug 1798459)
Backed out changeset d9b3c17a5549 (bug 1798459)
Backed out changeset 243631cf4913 (bug 1798459)
Backed out changeset 7d2ffb13d1cc (bug 1798459)
Backed out changeset 1a86d4746c65 (bug 1798459)
Backed out changeset 0f197d402d63 (bug 1798459)
Backed out changeset 5e9ca1b1c95c (bug 1798459)
Backed out changeset 4f07a77a4abd (bug 1798459)
Backed out changeset 985f88adbc8e (bug 1798459)
Backed out changeset 326b8b13aca3 (bug 1798459)
Backed out changeset 9f4f237f33bb (bug 1798459)
Backed out changeset cc31ee7652a8 (bug 1798459)
Backed out changeset 3ed207332879 (bug 1798459)
Backed out changeset 7e8b4f40c31d (bug 1798459)
Backed out changeset e3740924348f (bug 1798459)
Backed out changeset 8c6510e97a9c (bug 1798459)
Backed out changeset 5bfb07498c30 (bug 1798459)
Backed out changeset db0c3d15084b (bug 1798459)
Backed out changeset f92f19dc1a9f (bug 1798459)
Backed out changeset cc82403152c1 (bug 1777361)
Backed out changeset 21d087d3ca5d (bug 1798459)
Backed out changeset da1781f32050 (bug 1798459)
Backed out changeset f768630d046c (bug 1798459)
Backed out changeset 5ad098d5b4b9 (bug 1769057)
Backed out changeset e450859e6f0a (bug 1769057)
2022-11-09 04:16:33 +02:00
stransky 7d2d31927b Bug 1761877 [Linux] Add isWaylandDragSource and isWaylandPopup attributes to XULPopupElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161127
2022-11-08 20:43:17 +00:00
Randell Jesup ecc7fca5f0 Bug 1769057: WritableFileStream for OPFS implementation r=janv,webidl,dom-storage-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D146203
2022-11-08 16:59:13 +00:00
Mathew Hodson 989ac59e8d Bug 1294360 - Remove mozCurrentTransform. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160998
2022-11-08 12:42:23 +00:00
Peter Van der Beken 96f97d1609 Bug 1796832 - Assertion failure: !mMightHaveUnreportedJSException in IterableIterator.cpp. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D161475
2022-11-08 06:09:45 +00:00
Emilio Cobos Álvarez 25e4585462 Bug 1798836 - Improve sizing of the profile manager (again). r=Gijs,webidl,smaug
Instead of imposing the min-width as a max-size, make prefwidth act as
it should (as suggesting a preferred width, but with min-content as a
minimum).

This can be reproduced locally by applying a patch like:

```
diff --git a/toolkit/profile/content/profileSelection.xhtml b/toolkit/profile/content/profileSelection.xhtml
index 3dd1c864f79f1..7e8cbf8ce8c3e 100644
--- a/toolkit/profile/content/profileSelection.xhtml
+++ b/toolkit/profile/content/profileSelection.xhtml
@@ -17,7 +17,7 @@
   data-l10n-id="profile-selection-window"
   orient="vertical"
   prefwidth="min-width"
-  style="min-width: 30em;"
+  style="min-width: 10em;"
   onload="startup();">
 <dialog id="profileWindow"
   buttons="accept,cancel"
```

Before patch, stuff overflowed. This patch guarantees that everything is
on-screen.

Differential Revision: https://phabricator.services.mozilla.com/D161229
2022-11-05 19:24:31 +00:00
Cosmin Sabou d6ab6f4a98 Backed out changeset f456713ddff8 (bug 1798836) for causing build bustages on Window.webidl. CLOSED TREE 2022-11-05 15:15:53 +02:00
Emilio Cobos Álvarez fe3a1ffba6 Bug 1798836 - Improve sizing of the profile manager (again). r=Gijs,webidl,smaug
Instead of imposing the min-width as a max-size, make prefwidth act as
it should (as suggesting a preferred width, but with min-content as a
minimum).

This can be reproduced locally by applying a patch like:

```
diff --git a/toolkit/profile/content/profileSelection.xhtml b/toolkit/profile/content/profileSelection.xhtml
index 3dd1c864f79f1..7e8cbf8ce8c3e 100644
--- a/toolkit/profile/content/profileSelection.xhtml
+++ b/toolkit/profile/content/profileSelection.xhtml
@@ -17,7 +17,7 @@
   data-l10n-id="profile-selection-window"
   orient="vertical"
   prefwidth="min-width"
-  style="min-width: 30em;"
+  style="min-width: 10em;"
   onload="startup();">
 <dialog id="profileWindow"
   buttons="accept,cancel"
```

Before patch, stuff overflowed. This patch guarantees that everything is
on-screen.

Differential Revision: https://phabricator.services.mozilla.com/D161229
2022-11-05 13:02:31 +00:00
Narcis Beleuzu a9a07a1d4d Backed out changeset 183400ded7d4 (bug 1294360) for bustages on CanvasRenderingContext2D.cpp. CLOSED TREE 2022-11-03 13:06:15 +02:00
Mathew Hodson d09399daf1 Bug 1294360 - Remove mozCurrentTransform. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160998
2022-11-03 10:26:08 +00:00
Tom Schuster 79871b61c7 Bug 1192684 - Content Security Policy reports should include "effective-directive" and "status-code". r=freddyb,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D160632
2022-11-02 10:08:30 +00:00
Kagami Sascha Rosylight 79c944ca42 Bug 1798369 - Part 1: Esmify dom/bindings/test/TestInterfaceJS.jsm r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D160824
2022-11-01 12:05:23 +00:00
Chun-Min Chang 20c5b5125b Bug 1774302 - Implement [Serializable] for VideoFrame r=padenot,smaug
This patch implements `{Read, Write}StructuredClone` for `VideoFrame` so
`VideoFrame` can be *{de,}serialize*d.

Since VideoFrame serialization requires to serialize a member RefPtr
instance, the standard [Serializable] implementation is not possible.
The serialized data can be deserialized any number of times, including
zero. As a result, that RefPtr instance should be able to share its
reference and increase the ref-count any time it needs. Therefore, this
patch implements the [Serializable] functions in a custom fashion, which
storing the RefPtr instance in StructuredCloneHolder when serializing
the VideoFrame.

Depends on D153685

Differential Revision: https://phabricator.services.mozilla.com/D153686
2022-10-27 23:51:06 +00:00
Chun-Min Chang fd67bc7796 Bug 1774302 - Add [Serializable] to VideoFrame r=padenot,smaug
This patch add `Serializable` attribute to `VideoFrame` and add some
necessary changes to make this buildable.

Some expectations of *video-frame-serialization.any.is*'s wpts are
changed to `PASS` since they are implemented in bug 1774300.

The `Verify posting closed frames throws` is currently passed by luck so
the its expectation stays the same.

Depends on D159545

Differential Revision: https://phabricator.services.mozilla.com/D153685
2022-10-27 23:51:05 +00:00
Daniel Holbert 9d846b8dde Bug 1797840: Replace tab characters with spaces, in IDL and WebIDL files in dom. r=mccr8
DONTBUILD because this is just whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D160572
2022-10-27 21:42:28 +00:00
Dan Robertson 546067b1fa Bug 1797013: Add the onscrollend event handler. r=emilio
Add the onscrollend global event handler. The onscrollend event handler should
only be made available if the apz.scrollend-event.content.enabled preference has
been set.

Differential Revision: https://phabricator.services.mozilla.com/D160067
2022-10-27 13:05:57 +00:00
Marian-Vasile Laza 2d1097c27f Backed out 6 changesets (bug 1774302) for causing bustages on VideoFrame.cpp. CLOSED TREE
Backed out changeset 6ff613ee0977 (bug 1774302)
Backed out changeset b94e43f1e91f (bug 1774302)
Backed out changeset 5a2fc97cac78 (bug 1774302)
Backed out changeset 3db9d390aa0d (bug 1774302)
Backed out changeset 0009cdcc3e11 (bug 1774302)
Backed out changeset 7328aadd86e9 (bug 1774302)
2022-10-26 23:00:01 +03:00
Chun-Min Chang f9bcc8c6af Bug 1774302 - Implement [Serializable] for VideoFrame r=padenot,smaug
This patch implements `{Read, Write}StructuredClone` for `VideoFrame` so
`VideoFrame` can be *{de,}serialize*d.

Since VideoFrame serialization requires to serialize a member RefPtr
instance, the standard [Serializable] implementation is not possible.
The serialized data can be deserialized any number of times, including
zero. As a result, that RefPtr instance should be able to share its
reference and increase the ref-count any time it needs. Therefore, this
patch implements the [Serializable] functions in a custom fashion, which
storing the RefPtr instance in StructuredCloneHolder when serializing
the VideoFrame.

Depends on D153685

Differential Revision: https://phabricator.services.mozilla.com/D153686
2022-10-26 16:41:53 +00:00
Chun-Min Chang 9037731bf6 Bug 1774302 - Add [Serializable] to VideoFrame r=padenot,smaug
This patch add `Serializable` attribute to `VideoFrame` and add some
necessary changes to make this buildable.

Some expectations of *video-frame-serialization.any.is*'s wpts are
changed to `PASS` since they are implemented in bug 1774300.

The `Verify posting closed frames throws` is currently passed by luck so
the its expectation stays the same.

Depends on D159545

Differential Revision: https://phabricator.services.mozilla.com/D153685
2022-10-26 16:41:53 +00:00
Matthew Gaudet f21fa6376c Bug 1797124 - Expose WritableStreamDefaultController signal everywhere r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D160130
2022-10-25 20:47:23 +00:00
Matthew Gaudet fbbc3b5583 Bug 1797124 - Change AbortSignal exposure to * r=smaug
Depends on D160128

Differential Revision: https://phabricator.services.mozilla.com/D160129
2022-10-25 20:47:22 +00:00
Matthew Gaudet b8e335c729 Bug 1797124 - Change EventTarget exposure to * r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D160128
2022-10-25 20:47:22 +00:00
Benjamin VanderSloot 1b93ce03df Bug 1782088, part 3 - Utilize account chooser in FedCM flow, r=timhuang,webidl,smaug
Depends on D158779

Differential Revision: https://phabricator.services.mozilla.com/D158780
2022-10-25 16:31:55 +00:00
Olli Pettay 35083f75e6 Bug 1574487 - Remove loadstart and loadend event from <img>, r=edgar
Depends on D159930

Differential Revision: https://phabricator.services.mozilla.com/D159931
2022-10-25 08:27:02 +00:00
Butkovits Atila 1a4dfaa163 Backed out 4 changesets (bug 1782088)for causing build bustages. CLOSED TREE
Backed out changeset a7423c6d52b7 (bug 1782088)
Backed out changeset 50a3cc77e38b (bug 1782088)
Backed out changeset 7dca17d480bb (bug 1782088)
Backed out changeset f1e6e1226a8c (bug 1782088)
2022-10-25 06:03:22 +03:00
Benjamin VanderSloot b9f217d0bf Bug 1782088, part 3 - Utilize account chooser in FedCM flow, r=timhuang,webidl,smaug
Depends on D158779

Differential Revision: https://phabricator.services.mozilla.com/D158780
2022-10-25 02:00:26 +00:00
Norisz Fay 81c86f9a79 Backed out 3 changesets (bug 1644658, bug 1574487, bug 1644656) for causing mochitest failures on browser_staticPartition_saveAs.js CLOSED TREE
Backed out changeset ccd076f67748 (bug 1574487)
Backed out changeset 2235323f0cf9 (bug 1644656)
Backed out changeset 7fe2c7526246 (bug 1644658)
2022-10-25 02:22:37 +03:00
Olli Pettay 00ec8a85bc Bug 1574487 - Remove loadstart and loadend event from <img>, r=edgar
Depends on D159930

Differential Revision: https://phabricator.services.mozilla.com/D159931
2022-10-24 20:33:04 +00:00
Emilio Cobos Álvarez afcb3962b4 Bug 1796819 - Remove OffscreenCanvas origin trial / domain allowlist. r=aosmond
We've shipped this, a single pref should be enough.

Differential Revision: https://phabricator.services.mozilla.com/D159947
2022-10-21 19:00:57 +00:00
Emilio Cobos Álvarez ed02e6e84e Bug 1796735 - Remove XULPopupElement.autoPosition. r=dao
This was used to prevent reflows due to popuppositioned events during
view transitions.

The previous patch should've prevented the popuppositioned events to
begin with, plus we no longer use arrows that need positioning etc,
which means we shouldn't be triggering the reflows anyways.

Since this is the only consumer of autoPosition = true/false, we can
remove the code supporting it. It's a bit bogus as per the commit
message of the previous patch and, while fixable, it doesn't seem worth
fixing if we can just get rid of it.

Depends on D159936

Differential Revision: https://phabricator.services.mozilla.com/D159937
2022-10-21 13:13:54 +00:00
Emilio Cobos Álvarez f1cb20723d Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs
These don't work on emulated flexbox. We only have a couple of uses.

See D159726 for the diagnostic patch I used to catch these.

Differential Revision: https://phabricator.services.mozilla.com/D159727
2022-10-20 08:36:00 +00:00
Butkovits Atila 7f001fb596 Backed out changeset 39f39360ae48 (bug 1796199) for causing failures at test_panel.xhtml. CLOSED TREE 2022-10-20 00:39:56 +03:00
Emilio Cobos Álvarez db485fd57c Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs
These don't work on emulated flexbox. We only have a couple of uses.

See D159726 for the diagnostic patch I used to catch these.

Differential Revision: https://phabricator.services.mozilla.com/D159727
2022-10-19 19:18:04 +00:00
Peter Van der Beken 03a79b07d0 Bug 1794127 - Wrap errors from AsyncIterableNextImpl::GetNextResult/AsyncIterableReturnImpl::GetReturnPromise in a promise. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D158842
2022-10-17 16:26:23 +00:00
Kelsey Gilbert 61dc37049b Bug 1795193 - Remove unused chrome-only API MozGetIPCContext. r=gfx-reviewers,jrmuizel,emilio
And also remove SetIsIPC.

Differential Revision: https://phabricator.services.mozilla.com/D159351
2022-10-14 18:02:28 +00:00
Robert Longson 4f26a11013 Bug 1174097 - remove useCurrentView r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159117
2022-10-12 10:41:15 +00:00
Jonathan Kew 9f5359c7e8 Bug 1791777 - patch 2 - Expose @font-palette-values rules in the OM as CSSFontPaletteValuesRule. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157954
2022-10-07 23:00:43 +00:00
Noemi Erli 5b0216e320 Backed out 9 changesets (bug 1791778, bug 1791782, bug 1791780, bug 1791777) for causing build bustages in TestCOLRv1.cpp CLOSED TREE
Backed out changeset aeb44b79bf31 (bug 1791782)
Backed out changeset 292fd3a1b6dd (bug 1791782)
Backed out changeset 9947218170d0 (bug 1791780)
Backed out changeset 528b4c022a44 (bug 1791778)
Backed out changeset c734ff661a66 (bug 1791778)
Backed out changeset 6585dd386ee3 (bug 1791777)
Backed out changeset af4243189ef1 (bug 1791777)
Backed out changeset a47ae5f76514 (bug 1791777)
Backed out changeset 24ce615e77fd (bug 1791777)
2022-10-08 00:08:57 +03:00
Jonathan Kew d484b6bcb7 Bug 1791777 - patch 2 - Expose @font-palette-values rules in the OM as CSSFontPaletteValuesRule. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157954
2022-10-07 18:58:50 +00:00
Cristian Tuns 18e597b504 Backed out 9 changesets (bug 1791777, bug 1791780, bug 1791778, bug 1791782) for causing build bustages on TestCOLRv1.cpp CLOSED TREE
Backed out changeset f145a34cfbc1 (bug 1791782)
Backed out changeset 2f12216fbeda (bug 1791782)
Backed out changeset 61bd2a4496bf (bug 1791780)
Backed out changeset 4e4eb99a7fd9 (bug 1791778)
Backed out changeset 32d171a28810 (bug 1791778)
Backed out changeset e317795cd27a (bug 1791777)
Backed out changeset 5e32d5a01917 (bug 1791777)
Backed out changeset cf87497dbead (bug 1791777)
Backed out changeset 586c735b005e (bug 1791777)
2022-10-07 13:46:43 -04:00
Jonathan Kew cbd233a4d4 Bug 1791777 - patch 2 - Expose @font-palette-values rules in the OM as CSSFontPaletteValuesRule. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157954
2022-10-07 16:53:33 +00:00
Norisz Fay 30ef428f43 Backed out 9 changesets (bug 1791780, bug 1791782, bug 1791778, bug 1791777) for causing multiple mochitest failures CLOSED TREE
Backed out changeset 6de1ade5a9b6 (bug 1791782)
Backed out changeset ce96452a38a1 (bug 1791782)
Backed out changeset 7cc8e027f5a7 (bug 1791780)
Backed out changeset 8e023280032c (bug 1791778)
Backed out changeset 26d65d76d02a (bug 1791778)
Backed out changeset a98dd552df64 (bug 1791777)
Backed out changeset 766386309ee5 (bug 1791777)
Backed out changeset 7de66a218ba4 (bug 1791777)
Backed out changeset 1d17c257444e (bug 1791777)
2022-10-07 17:36:38 +03:00
Jonathan Kew a22e92125e Bug 1791777 - patch 2 - Expose @font-palette-values rules in the OM as CSSFontPaletteValuesRule. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157954
2022-10-07 12:16:51 +00:00
Chun-Min Chang aa78f11d8d Bug 1774300 - Add a blank VideoFrame interface r=padenot,jgilbert,emilio
This patch creates a blank class for the VideoFrame interface. The files
are generated by running `./mach build-backend && ./mach webidl-example
VideoFrame` with necessary changes to make it buildable.

The VideoFrame interface is the essential interface for W3C WebCodecs
API, used to represent the decoded video data, decoded image, and the
data ready to be encoded.

The implementations are plain blank now. They will be filled out in the
following patches.

Depends on D144771

Differential Revision: https://phabricator.services.mozilla.com/D144772
2022-10-06 00:37:19 +00:00
Chun-Min Chang a0c9d1d355 Bug 1774300 - Add a blank VideoColorSpace interface r=padenot,jgilbert,emilio
This patch creates a blank class for the VideoColorSpace interface. The
files are generated by running `./mach build-backend && ./mach
webidl-example VideoColorSpace` with necessary changes to make it
buildable.

The VideoColorSpace is a sub-interface of the VideoFrame interface,
which is the essential building block for W3C WebCodecs API.

The implementations are plain blank now. They will be filled out in the
following patches.

Additionally, this patch creates a `dom.media.webcodecs.enabled` pref
for W3C Webcodecs API. All the WebCodecs APIs will be hidden without
setting it to `true`.

Differential Revision: https://phabricator.services.mozilla.com/D144771
2022-10-06 00:37:19 +00:00
Butkovits Atila dd8f948670 Backed out 19 changesets (bug 1793497, bug 1774300) for causing lint failure. CLOSED TREE
Backed out changeset f5460317d244 (bug 1793497)
Backed out changeset 5af8771526a1 (bug 1774300)
Backed out changeset 3ab7aead37b5 (bug 1774300)
Backed out changeset 5f837d7e621b (bug 1774300)
Backed out changeset 56bfa6480cb5 (bug 1774300)
Backed out changeset db37fffc8519 (bug 1774300)
Backed out changeset d5d263cedbc9 (bug 1774300)
Backed out changeset 52fdd5a613f4 (bug 1774300)
Backed out changeset 6ce76e0d6fd2 (bug 1774300)
Backed out changeset c5f67f22597e (bug 1774300)
Backed out changeset 4a7dca31703e (bug 1774300)
Backed out changeset e56596b91a86 (bug 1774300)
Backed out changeset 825ae6e7be9b (bug 1774300)
Backed out changeset 19f750d86a73 (bug 1774300)
Backed out changeset 50995e55c546 (bug 1774300)
Backed out changeset 33b150b4c911 (bug 1774300)
Backed out changeset 2bc06d0e8808 (bug 1774300)
Backed out changeset ba9bc5c631b0 (bug 1774300)
Backed out changeset 4a145bdd6b86 (bug 1774300)
2022-10-05 01:05:57 +03:00
Chun-Min Chang e060d0c842 Bug 1774300 - Add a blank VideoFrame interface r=padenot,jgilbert,emilio
This patch creates a blank class for the VideoFrame interface. The files
are generated by running `./mach build-backend && ./mach webidl-example
VideoFrame` with necessary changes to make it buildable.

The VideoFrame interface is the essential interface for W3C WebCodecs
API, used to represent the decoded video data, decoded image, and the
data ready to be encoded.

The implementations are plain blank now. They will be filled out in the
following patches.

Depends on D144771

Differential Revision: https://phabricator.services.mozilla.com/D144772
2022-10-04 21:38:23 +00:00
Chun-Min Chang a765b52ced Bug 1774300 - Add a blank VideoColorSpace interface r=padenot,jgilbert,emilio
This patch creates a blank class for the VideoColorSpace interface. The
files are generated by running `./mach build-backend && ./mach
webidl-example VideoColorSpace` with necessary changes to make it
buildable.

The VideoColorSpace is a sub-interface of the VideoFrame interface,
which is the essential building block for W3C WebCodecs API.

The implementations are plain blank now. They will be filled out in the
following patches.

Additionally, this patch creates a `dom.media.webcodecs.enabled` pref
for W3C Webcodecs API. All the WebCodecs APIs will be hidden without
setting it to `true`.

Differential Revision: https://phabricator.services.mozilla.com/D144771
2022-10-04 21:38:22 +00:00
nchevobbe 5d8ed083ca Bug 1778959 - Don't expose requestMIDIAccess on file scheme. r=bholley.
This is done by adding Navigator::HasMidiSupport that we reference in
the Navigator.webidl `Func` extented attribute for `requestMIDIAccess`.

A test case is added to browser_midi_permission_gated.js to ensure this
works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D157321
2022-09-30 22:07:19 +00:00
Emilio Cobos Álvarez ab8ce397d0 Bug 1792337 - Add a more convenient API to size a window constrained to a default size. r=bytesized,extension-reviewers,robwu,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D158235
2022-09-30 00:45:36 +00:00
Peter Van der Beken 9e85242679 Bug 1792444 - Switch some WebIDL APIs from 'any' to a union with 'undefined'. r=edgar,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D158195
2022-09-28 19:10:51 +00:00
Peter Van der Beken b6baa7702e Bug 1782400 - Implement "return" method for WebIDL async iterable iterator. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156350
2022-09-22 18:28:18 +00:00
Peter Van der Beken 3e507adf99 Bug 1788969 - Align async iterable code more closely with the spec. r=edgar
Implement the common steps for the next method from
https://webidl.spec.whatwg.org/#es-asynchronous-iterator-prototype-object in
a base class, that all async iterable iterator objects inherit from. Natives
that implement an async iterable only need to implement the "getting the
next iteration result" part in their GetNextPromise method. This means they
don't have to create the object according to "CreateIterResultObject"
themselves, but can just create promise and often resolve it with a native
value directly. We've switched to a special JS::Value to signal "end of
iteration", but that's hidden inside the
iterator_utils::ResolvePromiseForFinished helper.
The WebIDL parser now uses the right return type for the generated "next"
method, which means that any exceptions in the binding code itself will
actually be correctly converted to a rejected promise instead of being
rethrown.
This also uses a class for the generated iterable iterator that's not
exposed outside the binding code. No other code should create and/or
wrap these anyway.

Differential Revision: https://phabricator.services.mozilla.com/D156323
2022-09-22 18:28:15 +00:00
Sandor Molnar 141cdeeed6 Backed out 11 changesets (bug 1788969, bug 1782400, bug 1777145) for causing bp-hybri bustages. CLOSED TREE
Backed out changeset 8acabb924ef7 (bug 1782400)
Backed out changeset e3d452e99f77 (bug 1782400)
Backed out changeset 5727bc4895d2 (bug 1777145)
Backed out changeset cf375034e2b8 (bug 1777145)
Backed out changeset a50fd5608d8d (bug 1777145)
Backed out changeset f24853cacd7a (bug 1777145)
Backed out changeset c714f3a35b11 (bug 1777145)
Backed out changeset 56682c253427 (bug 1788969)
Backed out changeset edaf37ffc49d (bug 1788969)
Backed out changeset d19caa9f062b (bug 1788969)
Backed out changeset 18b26912dc03 (bug 1788969)
2022-09-22 19:13:01 +03:00
Peter Van der Beken 2fecef1b02 Bug 1782400 - Implement "return" method for WebIDL async iterable iterator. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156350
2022-09-22 15:02:26 +00:00
Peter Van der Beken aa9940a9b5 Bug 1788969 - Align async iterable code more closely with the spec. r=edgar
Implement the common steps for the next method from
https://webidl.spec.whatwg.org/#es-asynchronous-iterator-prototype-object in
a base class, that all async iterable iterator objects inherit from. Natives
that implement an async iterable only need to implement the "getting the
next iteration result" part in their GetNextPromise method. This means they
don't have to create the object according to "CreateIterResultObject"
themselves, but can just create promise and often resolve it with a native
value directly. We've switched to a special JS::Value to signal "end of
iteration", but that's hidden inside the
iterator_utils::ResolvePromiseForFinished helper.
The WebIDL parser now uses the right return type for the generated "next"
method, which means that any exceptions in the binding code itself will
actually be correctly converted to a rejected promise instead of being
rethrown.
This also uses a class for the generated iterable iterator that's not
exposed outside the binding code. No other code should create and/or
wrap these anyway.

Differential Revision: https://phabricator.services.mozilla.com/D156323
2022-09-22 15:02:23 +00:00
Boris Chiou 8b587cf6c1 Bug 1789447 - Part 2: Drop @scroll-timeline rule entirely. r=emilio,hiro
This rule is not used in tests and should be removed per spec.

Differential Revision: https://phabricator.services.mozilla.com/D157249
2022-09-22 03:47:11 +00:00
Peter Van der Beken f0982436f2 Bug 1659158 - Switch WebIDL from void to undefined. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D107108
2022-09-21 07:44:58 +00:00
Nico Grunbaum da1cf2599a Bug 1790508 - Add new RTP and RTCP stats post libwebrtc fast-forward;r=dbaker,mjf,emilio
Differential Revision: https://phabricator.services.mozilla.com/D157167
2022-09-15 22:38:43 +00:00
criss 2260491bf2 Backed out changeset 44c7e645f9c4 (bug 1790508) for causing mochitest failures. CLOSED TREE 2022-09-15 17:44:53 +03:00
Nico Grunbaum d1408f8496 Bug 1790508 - Add new RTP and RTCP stats post libwebrtc fast-forward;r=dbaker,mjf,emilio
Differential Revision: https://phabricator.services.mozilla.com/D157167
2022-09-15 09:23:41 +00:00
Butkovits Atila 8ef8248f4a Backed out changeset 99c66f2c4097 (bug 1790508) for causing wpt failures. CLOSED TREE 2022-09-15 06:20:33 +03:00
Nico Grunbaum c0c6652785 Bug 1790508 - Add new RTP and RTCP stats post libwebrtc fast-forward;r=dbaker,mjf,emilio
Differential Revision: https://phabricator.services.mozilla.com/D157167
2022-09-15 00:50:09 +00:00
Benjamin VanderSloot 2ec2cc3550 Bug 1782085, part 2 - Create API types for Fetch requests, r=timhuang,emilio
- Define types that match the FedCM spec (https://fedidcg.github.io/FedCM/)
- These are not currently given in the spec, so they have to be inferred from the subsections 5.1-5.4
- I also include the GenerateInit annotation to allow deserialization later

Differential Revision: https://phabricator.services.mozilla.com/D155719
2022-09-14 02:02:45 +00:00
Benjamin VanderSloot 98f0fe9c30 Bug 1782083 - Create skeleton IdentityCredential, r=dveditz,emilio
This patch creates a do-nothing IdentityCredential that gives errors when it is used.

The IdentityCredential webidl is defined here:
  https://fedidcg.github.io/FedCM/#browser-api-identity-credential-interface

Accomplished here:
  - IdentityCredential class defined, including isupports and cycle-counting macros
  - Empty test added to hold the place of a mochitest folder
  - webidl of CredentialsContainer updated and IdentityCredential added
  - Logic to parse `identity` key from navigator.credentials.get()
  - Adding all of this to the build, including membership to the new bugzilla component DOM: Credential Management

Differential Revision: https://phabricator.services.mozilla.com/D153588
2022-09-14 02:02:44 +00:00
Benjamin VanderSloot e24d18cd12 Bug 1782080 - Generalize preference gates of the Credential Management API, r=dveditz,emilio
I'm looking to implement the FedCM browser API, which hooks into the Credentail Management API.
Just cleaning up a few preference-gates in webidl and adding new preferences to use as gates.

Differential Revision: https://phabricator.services.mozilla.com/D153586
2022-09-14 02:02:43 +00:00
Sandor Molnar fd4d14e46a Backed out 14 changesets (bug 1782080, bug 1782083, bug 1782085, bug 1782081) for causing bp-hybrid bustage. CLOSED TREE
Backed out changeset 2b4331989f86 (bug 1782085)
Backed out changeset 582f58cd75cc (bug 1782085)
Backed out changeset c1de76ba8d99 (bug 1782085)
Backed out changeset 547eaff150f2 (bug 1782085)
Backed out changeset e56983c42821 (bug 1782085)
Backed out changeset c4682175eeaa (bug 1782085)
Backed out changeset 6b28de5c2f9d (bug 1782085)
Backed out changeset cb6218ad0b48 (bug 1782085)
Backed out changeset 48b8f947094e (bug 1782085)
Backed out changeset 754f27150336 (bug 1782085)
Backed out changeset c733035b2995 (bug 1782085)
Backed out changeset 1006a551ba12 (bug 1782083)
Backed out changeset 099f10b82184 (bug 1782081)
Backed out changeset 1cf5eecc663b (bug 1782080)
2022-09-13 23:51:09 +03:00
Benjamin VanderSloot 0903c8cb36 Bug 1782085, part 2 - Create API types for Fetch requests, r=timhuang,emilio
- Define types that match the FedCM spec (https://fedidcg.github.io/FedCM/)
- These are not currently given in the spec, so they have to be inferred from the subsections 5.1-5.4
- I also include the GenerateInit annotation to allow deserialization later

Differential Revision: https://phabricator.services.mozilla.com/D155719
2022-09-13 19:23:22 +00:00
Benjamin VanderSloot 86537786aa Bug 1782083 - Create skeleton IdentityCredential, r=dveditz,emilio
This patch creates a do-nothing IdentityCredential that gives errors when it is used.

The IdentityCredential webidl is defined here:
  https://fedidcg.github.io/FedCM/#browser-api-identity-credential-interface

Accomplished here:
  - IdentityCredential class defined, including isupports and cycle-counting macros
  - Empty test added to hold the place of a mochitest folder
  - webidl of CredentialsContainer updated and IdentityCredential added
  - Logic to parse `identity` key from navigator.credentials.get()
  - Adding all of this to the build, including membership to the new bugzilla component DOM: Credential Management

Differential Revision: https://phabricator.services.mozilla.com/D153588
2022-09-13 19:23:21 +00:00
Benjamin VanderSloot 7ff0de780c Bug 1782080 - Generalize preference gates of the Credential Management API, r=dveditz,emilio
I'm looking to implement the FedCM browser API, which hooks into the Credentail Management API.
Just cleaning up a few preference-gates in webidl and adding new preferences to use as gates.

Differential Revision: https://phabricator.services.mozilla.com/D153586
2022-09-13 19:23:20 +00:00
Sandor Molnar 9769b513e3 Backed out 14 changesets (bug 1782080, bug 1782083, bug 1782085, bug 1782081) for causing mochitest failures in dom/credentialmanagement/identity/tests/mochitest/test_simple.html CLOSED TREE
Backed out changeset 5dcf789244b4 (bug 1782085)
Backed out changeset 94fd7957e5c6 (bug 1782085)
Backed out changeset c866a927fde9 (bug 1782085)
Backed out changeset f42e5c1d5951 (bug 1782085)
Backed out changeset 18b7c1b4df6e (bug 1782085)
Backed out changeset afaec46db6ad (bug 1782085)
Backed out changeset 0007f87c5071 (bug 1782085)
Backed out changeset 44de7d606696 (bug 1782085)
Backed out changeset fb951a70ab79 (bug 1782085)
Backed out changeset 9fee8927e2f1 (bug 1782085)
Backed out changeset 8172b0757002 (bug 1782085)
Backed out changeset fe15584d654b (bug 1782083)
Backed out changeset 7b26508f5693 (bug 1782081)
Backed out changeset c7e8da431aa6 (bug 1782080)
2022-09-13 20:03:16 +03:00
Benjamin VanderSloot f6519e6ef8 Bug 1782085, part 2 - Create API types for Fetch requests, r=timhuang,emilio
- Define types that match the FedCM spec (https://fedidcg.github.io/FedCM/)
- These are not currently given in the spec, so they have to be inferred from the subsections 5.1-5.4
- I also include the GenerateInit annotation to allow deserialization later

Differential Revision: https://phabricator.services.mozilla.com/D155719
2022-09-13 14:48:00 +00:00
Benjamin VanderSloot af0f6e9507 Bug 1782083 - Create skeleton IdentityCredential, r=dveditz,emilio
This patch creates a do-nothing IdentityCredential that gives errors when it is used.

The IdentityCredential webidl is defined here:
  https://fedidcg.github.io/FedCM/#browser-api-identity-credential-interface

Accomplished here:
  - IdentityCredential class defined, including isupports and cycle-counting macros
  - Empty test added to hold the place of a mochitest folder
  - webidl of CredentialsContainer updated and IdentityCredential added
  - Logic to parse `identity` key from navigator.credentials.get()
  - Adding all of this to the build, including membership to the new bugzilla component DOM: Credential Management

Differential Revision: https://phabricator.services.mozilla.com/D153588
2022-09-13 14:47:59 +00:00
Benjamin VanderSloot 2e88060e73 Bug 1782080 - Generalize preference gates of the Credential Management API, r=dveditz,emilio
I'm looking to implement the FedCM browser API, which hooks into the Credentail Management API.
Just cleaning up a few preference-gates in webidl and adding new preferences to use as gates.

Differential Revision: https://phabricator.services.mozilla.com/D153586
2022-09-13 14:47:58 +00:00
Olli Pettay 459cddc76d Bug 1789745 - Add usecounter for Prioritized Task Scheduling API, r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D156803
2022-09-12 20:25:14 +00:00
Randell Jesup 06614dc8df Bug 1789116: Implement move() for OriginPrivateFileSystems r=dom-storage-reviewers,jari,emilio
Depends on D155352

Differential Revision: https://phabricator.services.mozilla.com/D156371
2022-09-11 12:00:16 +00:00
Jan Varga 3e800c6b30 Bug 1761370 - Add [Throws] annotation for `read` and `write` in FileSystemSyncAccessHandle; r=dom-storage-reviewers,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D156685
2022-09-11 12:00:15 +00:00
Norisz Fay fb95a6dc3d Backed out 12 changesets (bug 1761370, bug 1789116, bug 1784405, bug 1786465, bug 1772540, bug 1789871, bug 1789932, bug 1777365) for causing FileSystem related wpt failures CLOSED TREE
Backed out changeset fdfc118c8655 (bug 1784405)
Backed out changeset f14ea4093d57 (bug 1777365)
Backed out changeset f1c5606ca6e0 (bug 1786465)
Backed out changeset 37390dc34f1e (bug 1789871)
Backed out changeset 249ebf125b3f (bug 1761370)
Backed out changeset 650ff0bfe280 (bug 1789116)
Backed out changeset 36c6c340fe64 (bug 1786465)
Backed out changeset 4058c1a74e18 (bug 1761370)
Backed out changeset 1193594d1bb1 (bug 1761370)
Backed out changeset 8bb8c4b1614e (bug 1761370)
Backed out changeset 260c04c9aa1c (bug 1772540)
Backed out changeset a2df6e3df72a (bug 1789932)
2022-09-11 03:54:30 +03:00
Randell Jesup f1f07aef71 Bug 1789116: Implement move() for OriginPrivateFileSystems r=dom-storage-reviewers,jari,emilio
Depends on D155352

Differential Revision: https://phabricator.services.mozilla.com/D156371
2022-09-10 17:18:40 +00:00
Jan Varga d20ecedd0e Bug 1761370 - Add [Throws] annotation for `read` and `write` in FileSystemSyncAccessHandle; r=dom-storage-reviewers,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D156685
2022-09-10 17:18:39 +00:00
Emilio Cobos Álvarez fa760a8139 Bug 1789191 - Add CSSContainerRule.queryContainerFor(Element). r=nchevobbe,dshin
This actually caught a bug in the existing selection logic.

Differential Revision: https://phabricator.services.mozilla.com/D156414
2022-09-10 12:25:22 +00:00
criss 4139e1db18 Backed out 12 changesets (bug 1772540, bug 1789116, bug 1784405, bug 1777365, bug 1789932, bug 1789871, bug 1786465, bug 1761370) for causing wpt failures . CLOSED TREE
Backed out changeset 4d0b2f46c02d (bug 1784405)
Backed out changeset 152e20bdfc5e (bug 1777365)
Backed out changeset 1f65e7ff82af (bug 1786465)
Backed out changeset b96f6a965872 (bug 1789871)
Backed out changeset 4eedec454db1 (bug 1761370)
Backed out changeset fa021527847b (bug 1789116)
Backed out changeset b52f1a06e743 (bug 1786465)
Backed out changeset c4555c4937a9 (bug 1761370)
Backed out changeset 9b1cb4b7d5e2 (bug 1761370)
Backed out changeset f8b472462d48 (bug 1761370)
Backed out changeset 9590b00c84c3 (bug 1772540)
Backed out changeset 4a66ea817e1f (bug 1789932)
2022-09-10 12:34:12 +03:00
Randell Jesup 6403fed127 Bug 1789116: Implement move() for OriginPrivateFileSystems r=dom-storage-reviewers,jari,emilio
Depends on D155352

Differential Revision: https://phabricator.services.mozilla.com/D156371
2022-09-10 04:35:49 +00:00
Jan Varga 49b2c7aa94 Bug 1761370 - Add [Throws] annotation for `read` and `write` in FileSystemSyncAccessHandle; r=dom-storage-reviewers,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D156685
2022-09-10 04:35:48 +00:00
Sandor Molnar e9d20af17e Backed out changeset 0552fd39333b (bug 1789191) for causing mochitest failures in layout/style/test/test_revert.html CLOSED TREE 2022-09-10 07:11:24 +03:00
Emilio Cobos Álvarez 841481eb39 Bug 1789191 - Add CSSContainerRule.queryContainerFor(Element). r=nchevobbe,dshin
This actually caught a bug in the existing selection logic.

Differential Revision: https://phabricator.services.mozilla.com/D156414
2022-09-10 02:37:44 +00:00
Sandor Molnar 2ac24361ae Backed out 12 changesets (bug 1789116, bug 1789871, bug 1789932, bug 1784405, bug 1761370, bug 1786465, bug 1772540, bug 1777365) for causing multiple lint failures. CLOSED TREE
Backed out changeset 289c09c956a2 (bug 1784405)
Backed out changeset 5816d39c37b2 (bug 1777365)
Backed out changeset 91baa63fd25c (bug 1786465)
Backed out changeset fc3caa9e2a6d (bug 1789871)
Backed out changeset 7c1a069706de (bug 1761370)
Backed out changeset 010312d77781 (bug 1789116)
Backed out changeset 14998637bb01 (bug 1786465)
Backed out changeset aa682026c2d5 (bug 1761370)
Backed out changeset a1923876b4df (bug 1761370)
Backed out changeset e2071b21f532 (bug 1761370)
Backed out changeset dd6ec058e3ee (bug 1772540)
Backed out changeset ed0bcf685676 (bug 1789932)
2022-09-10 05:33:12 +03:00
Randell Jesup 5eedaaf373 Bug 1789116: Implement move() for OriginPrivateFileSystems r=dom-storage-reviewers,jari,emilio
Depends on D155352

Differential Revision: https://phabricator.services.mozilla.com/D156371
2022-09-10 02:15:03 +00:00
Jan Varga 6d001baca1 Bug 1761370 - Add [Throws] annotation for `read` and `write` in FileSystemSyncAccessHandle; r=dom-storage-reviewers,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D156685
2022-09-10 02:15:02 +00:00
Sandor Molnar 371ce48f03 Backed out changeset 56c223bba6d6 (bug 1789191) for causing mochitest failures in layout/style/test/test_transitions_per_property.html CLOSED TREE 2022-09-09 23:42:13 +03:00
Emilio Cobos Álvarez 1ddadd5577 Bug 1789191 - Add CSSContainerRule.queryContainerFor(Element). r=nchevobbe,dshin
This actually caught a bug in the existing selection logic.

Differential Revision: https://phabricator.services.mozilla.com/D156414
2022-09-09 19:34:55 +00:00
Adam Vandolder 52f8452117 Bug 1665151 - Part 1: Add Aria reflection attributes to ElementInternals. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156178
2022-09-08 19:02:23 +00:00
Brad Werth 51de674b99 Bug 1787561 Part 2: Expose HDR telemetry to HTMLMediaElement as a Chrome property. r=alwu,emilio
This is necessary scaffolding for testing of the HDR telemetry in a way
that involves the RDD process. This is important for matching real-world
conditions.

Depends on D155902

Differential Revision: https://phabricator.services.mozilla.com/D156245
2022-09-08 18:02:04 +00:00
Emilio Cobos Álvarez ff3c28c8b1 Bug 1706179 - Add HTMLMetaElement.media. r=smaug
We don't use it because we don't use theme-color, but some sites are
starting to rely on it (comment 4) and it is trivial to support.

Differential Revision: https://phabricator.services.mozilla.com/D156667
2022-09-07 23:32:19 +00:00
criss b973155436 Backed out changeset ba320f40c889 (bug 1706179) for causing wpt failures on reflection-metadata.html . CLOSED TREE 2022-09-08 00:12:50 +03:00
criss d87f2984cd Backed out 3 changesets (bug 1787561) for causing mochitest failures on browser_tab_visibility_and_play_time.js
Backed out changeset a41ab0c5f32f (bug 1787561)
Backed out changeset c1375f03dc75 (bug 1787561)
Backed out changeset afef5857aea6 (bug 1787561)
2022-09-07 23:49:05 +03:00
Brad Werth 99ed6acbb7 Bug 1787561 Part 2: Expose HDR telemetry to HTMLMediaElement as a Chrome property. r=alwu,emilio
This is necessary scaffolding for testing of the HDR telemetry in a way
that involves the RDD process. This is important for matching real-world
conditions.

Depends on D155902

Differential Revision: https://phabricator.services.mozilla.com/D156245
2022-09-07 18:31:46 +00:00
Emilio Cobos Álvarez 54e3830cb2 Bug 1706179 - Add HTMLMetaElement.media. r=smaug
We don't use it because we don't use theme-color, but some sites are
starting to rely on it (comment 4) and it is trivial to support.

Differential Revision: https://phabricator.services.mozilla.com/D156667
2022-09-07 12:24:18 +00:00
Randell Jesup 6a2da364c4 Bug 1751681 - Add Serializable to OPFS interfaces. r=dom-storage-reviewers,janv,jari,asuth
Differential Revision: https://phabricator.services.mozilla.com/D137648
2022-09-07 01:14:53 +00:00
Marian-Vasile Laza eee7b9ca54 Backed out 5 changesets (bug 1751681, bug 1789270, bug 1772540) for causing GTest failures. CLOSED TREE
Backed out changeset d16a5292dd95 (bug 1772540)
Backed out changeset 2c584478532a (bug 1789270)
Backed out changeset 8bfc85c67ae3 (bug 1789270)
Backed out changeset 6f566d4c3d71 (bug 1789270)
Backed out changeset 94ae55217008 (bug 1751681)
2022-09-07 01:47:29 +03:00
Randell Jesup 4cfe3f5d9a Bug 1751681 - Add Serializable to OPFS interfaces. r=dom-storage-reviewers,jari,asuth
Differential Revision: https://phabricator.services.mozilla.com/D137648
2022-09-06 21:37:30 +00:00
Joshua Marshall ac5a503928 Bug 1714533 - Remove onerror event handler from ServiceWorkerContainer r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D156499
2022-09-06 19:36:28 +00:00
Jan Varga b86969bec7 Bug 1758324 - Implement file system directory iterator; r=dom-storage-reviewers,jesup,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D140300
2022-09-06 11:59:00 +00:00
Peter Van der Beken d81d165c25 Bug 1781730 - Support optional arguments in async iterable declarations. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D155422
2022-09-05 15:27:11 +00:00
nchevobbe 96c3cea2ea Bug 1483662 - Add microSecondTimeStamp to nsConsoleMessage, nsScriptError and ConsoleEvent. r=edgar.
Those will be consumed by DevTools webconsole so we can order messages
emitted within the same millisecond more precisely (see next patch in queue)

Differential Revision: https://phabricator.services.mozilla.com/D155545
2022-09-02 04:58:28 +00:00
Imanol Fernandez 06712ca497 Bug 1788188 - Implement missing framerate methods in the WebXR spec. r=emilio
In particular this adds an initial implementation for the
updateTargetFrameRate method and adds the supportedFrameRates
and frameRate attributes to the XRSession.

Differential Revision: https://phabricator.services.mozilla.com/D156063
2022-08-31 16:13:13 +00:00
Jan Varga 34b9324920 Bug 1786501 - Expose StorageManager::Shutdown to chrome; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D155792
2022-08-31 09:34:51 +00:00
Peter Van der Beken c778194602 Bug 1782399 - InitAsyncIterator needs to have an ErrorResult parameter. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D155418
2022-08-29 10:57:20 +00:00
Dana Keeler 56e7ae8648 Bug 1781104 - replace error type booleans with error category in nsITransportSecurityInfo r=necko-reviewers,mixedpuppy,jschanck,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D154561
2022-08-26 18:48:38 +00:00
Emilio Cobos Álvarez 44438f746a Bug 1787173 - Improve CSS OM for CSSContainerRule. r=nchevobbe
This implements https://github.com/w3c/csswg-drafts/pull/7293, pending a
spec resolution, so landing test as tentative for now, but the change
makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D155602
2022-08-26 10:31:38 +00:00
Kagami Sascha Rosylight e60f5b3f5d Bug 1784590 - Part 2: Add use counters for unsupported APIs in PBM r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D154579
2022-08-24 10:58:47 +00:00
Kagami Sascha Rosylight 32a02a7021 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-24 10:58:46 +00:00
Marian-Vasile Laza e32b8c70e9 Backed out 2 changesets (bug 1784590) for causing mochitest failures on test_privateBrowsing.html. CLOSED TREE
Backed out changeset cd284ba05fbb (bug 1784590)
Backed out changeset 2f714355a8c8 (bug 1784590)
2022-08-23 01:26:37 +03:00
Kagami Sascha Rosylight ee9aec5cb9 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-22 20:48:33 +00:00
Boris Chiou b0e1f7a8ac Bug 1694741 - Part 1: Support width and height attributes in HTMLSourceElement's webidl. r=emilio
This also introduce a pref which protect these two attributes:
dom.picture_source_dimension_attributes.enabled.

These two dimension attributes will be mapped to the style of <img> elements
if the <source> element's parent is <picture>. This will be implemented
in the later patch. For now, we just implement the DOM interface.

Differential Revision: https://phabricator.services.mozilla.com/D152585
2022-08-22 20:18:37 +00:00
Marian-Vasile Laza b92a6b8396 Backed out 2 changesets (bug 1784590) for causing mochitest failures on test_privateBrowsing.html.
Backed out changeset 36d36e75930f (bug 1784590)
Backed out changeset 35dbbd6dbb70 (bug 1784590)
2022-08-22 22:50:41 +03:00
Kagami Sascha Rosylight bfc04ec1a4 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-22 18:48:12 +00:00
Emilio Cobos Álvarez dd9f38a043 Bug 1777293 - Implement Element.checkVisibility(). r=jwatt
Implement it with a "no-flush" ChromeOnly option so that things like
bug 1783045 can use it without causing flashes of unstyled content, etc.

Differential Revision: https://phabricator.services.mozilla.com/D155206
2022-08-22 17:28:04 +00:00
Tom Ritter 84ac1b408c Bug 1785824: Fix Telemetry for XSLTProcessor r=janerik,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D154984
2022-08-22 13:59:41 +00:00
Andrew Osmond 581c22e956 Bug 1677183 - Implement WebGPU's Queue.copyExternalImageToTexture. r=jgilbert,jimb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D145269
2022-08-18 16:11:46 +00:00
Rob Wu a4f8ce604c Bug 1782816 - Introduce test.assertDeepEq r=rpl,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D153531
2022-08-16 20:06:37 +00:00
Emilio Cobos Álvarez d73fb963b0 Bug 1784265 - Remove XULElement.flex WebIDL API. r=mconley
It's basically an alias of setAttribute("flex", value), and it has no
remaining usage in the tree.

Since it's less useful now, let's remove the WebIDL API in favor of CSS.

Do this as a separate patch so that thunderbird / pine / etc can revert
this patch for diagnostics / to find UI with behavior changes.

Differential Revision: https://phabricator.services.mozilla.com/D154498
2022-08-12 23:13:41 +00:00
Andrew McCreight ce22b38b5f Bug 1784397 - Remove Core:: Plug-ins from BUG_COMPONENT. r=handyman DONTBUILD
dom/ and dom/webidl/ : Default these files back to DOM: Core & HTML
PluginChild.jsm: Apparently this is only still used for GMP things.
browser/base/content/ : The remaining tests are mostly EME related, so I switched it over to that.
widget/tests/ : No plugin files remain, so I removed the rule.

Differential Revision: https://phabricator.services.mozilla.com/D154537
2022-08-12 22:39:41 +00:00
Marian-Vasile Laza 7f5e2711c6 Backed out 3 changesets (bug 1784265) for causing reftest failures on flex-emulation-1.xhtml. CLOSED TREE
Backed out changeset 415da4b53bdd (bug 1784265)
Backed out changeset e27b21c54b1f (bug 1784265)
Backed out changeset fcb1a053fbe2 (bug 1784265)
2022-08-13 01:14:13 +03:00
Emilio Cobos Álvarez 8994fcf5fc Bug 1784265 - Remove XULElement.flex WebIDL API. r=mconley
It's basically an alias of setAttribute("flex", value), and it has no
remaining usage in the tree.

Since it's less useful now, let's remove the WebIDL API in favor of CSS.

Do this as a separate patch so that thunderbird / pine / etc can revert
this patch for diagnostics / to find UI with behavior changes.

Differential Revision: https://phabricator.services.mozilla.com/D154498
2022-08-12 19:34:35 +00:00
Byron Campen 5af4144f3e Bug 1783765: Make sure we clear out mUncommittedJsepSession when sRD/sLD fails in JS. r=jib,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D154168
2022-08-12 16:29:07 +00:00
Kagami Sascha Rosylight 0c2f2d038f Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-12 15:59:05 +00:00
Csoregi Natalia 3f2ae76b30 Backed out 6 changesets (bug 1486949) for causing hazard bustage on TextDecoderStream.cpp. CLOSED TREE
Backed out changeset e3dc48b94eef (bug 1486949)
Backed out changeset 57edeeebac29 (bug 1486949)
Backed out changeset f86c3b21e21c (bug 1486949)
Backed out changeset 862135f6c27f (bug 1486949)
Backed out changeset 8dd9f5b9e042 (bug 1486949)
Backed out changeset 7cb29e4feb27 (bug 1486949)
2022-08-12 06:36:41 +03:00
Kagami Sascha Rosylight e228d52761 Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-11 21:16:18 +00:00
Noemi Erli a73776af50 Backed out 6 changesets (bug 1486949) for causing failures in test_serviceworker_interfaces.html CLOSED TREE
Backed out changeset 73cb8cf7a3f0 (bug 1486949)
Backed out changeset 91adc5cca2e6 (bug 1486949)
Backed out changeset 89137ad4e5c6 (bug 1486949)
Backed out changeset 74ca8f06eb06 (bug 1486949)
Backed out changeset 00f43009d419 (bug 1486949)
Backed out changeset 9c38a30397bd (bug 1486949)
2022-08-11 18:00:55 +03:00
Kagami Sascha Rosylight 63a033cb7b Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-11 13:54:16 +00:00
Nicolas Silva 92f2f9d376 Bug 1777535 - Unmap the buffer in Destroy. r=jimb,emilio
Per spec, if a buffer is mapped in destory(), unmap() must be called.

Depends on D151620

Differential Revision: https://phabricator.services.mozilla.com/D151621
2022-08-10 15:55:06 +00:00
Marian-Vasile Laza 1c166e5dae Backed out 22 changesets (bug 1780792, bug 1778713, bug 1771254, bug 1777535) for causing bustages on WebGPUParent.h. CLOSED TREE
Backed out changeset 84974dbb4d3f (bug 1780792)
Backed out changeset 5bef755ea09b (bug 1777535)
Backed out changeset 6de84921e7d0 (bug 1780792)
Backed out changeset 89450745f60b (bug 1777535)
Backed out changeset de8da0f89c50 (bug 1777535)
Backed out changeset 24707519fe7b (bug 1771254)
Backed out changeset fe75bdc54a31 (bug 1777535)
Backed out changeset aa8e1c7f727f (bug 1777535)
Backed out changeset f674057a477f (bug 1777535)
Backed out changeset b4210142bf82 (bug 1780792)
Backed out changeset 326511661875 (bug 1780792)
Backed out changeset 6178c6dd5c31 (bug 1780792)
Backed out changeset 219760e8c20e (bug 1777535)
Backed out changeset e312cdad1fee (bug 1777535)
Backed out changeset 446e62674d9d (bug 1777535)
Backed out changeset d2f4d878d51f (bug 1777535)
Backed out changeset 85ac57add037 (bug 1777535)
Backed out changeset 4c512a0c05a9 (bug 1780792)
Backed out changeset 6f732421a0b4 (bug 1777535)
Backed out changeset 0da5289fe5a9 (bug 1777535)
Backed out changeset c19a35a62ed4 (bug 1778713)
Backed out changeset 61e4e8e63a3e (bug 1771254)
2022-08-10 15:04:12 +03:00
Nicolas Silva c87019923a Bug 1777535 - Unmap the buffer in Destroy. r=jimb,emilio
Per spec, if a buffer is mapped in destory(), unmap() must be called.

Depends on D151620

Differential Revision: https://phabricator.services.mozilla.com/D151621
2022-08-10 11:38:54 +00:00
Norisz Fay 53ca28e903 Backed out changeset 4e76508f9136 (bug 1677183) for causing mochitest failures on test_queue_copyExternalImageToTexture.html CLOSED TREE 2022-08-08 14:03:15 +03:00
Andrew Osmond 2b1c7294dc Bug 1677183 - Implement WebGPU's Queue.copyExternalImageToTexture. r=jgilbert,jimb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D145269
2022-08-08 09:54:25 +00:00
Tom Schuster d5669a37b3 Bug 1779184 - Implement probably wrong element kind handling. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153332
2022-08-08 09:23:55 +00:00
Byron Campen 390d075796 Bug 1769802: Call the success callback for sRD/sLD after the JS work is done. r=jib,webidl,smaug
This fixes a class of bugs where modifications to the RTCRtpTransceivers were
applied before sRD/sLD were completely done (while all of the JSEP and transport
stuff was finished, JS could still be working on identity-related stuff).

Differential Revision: https://phabricator.services.mozilla.com/D150173
2022-08-05 14:03:45 +00:00
William Durand d1b8a8c1d5 Bug 1748315 - Part 3 - Generate WebIDL bindings for the scripting namespace. r=rpl,webidl,smaug
This patch adds WebIDL bindings for the `scripting` namespace.
Note that `scripting.executeScript()` is excluded for now.

Differential Revision: https://phabricator.services.mozilla.com/D141463
2022-08-02 14:22:39 +00:00
Tom Schuster 0610723e31 Bug 1529337 - Implement CSP 'script-src-elem' and 'script-src-attr' directives. r=freddyb,webidl,smaug,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D150965
2022-08-01 12:32:58 +00:00
Shelly Lin 303dfb188c Bug 1577383 - Implement async iterable declaration in WebIDL. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D142527
2022-07-29 14:06:31 +00:00
Edgar Chen cdad5df9d3 Bug 1776790 - Stop exposing the length of argument list of ChromeOnly constructor to non-chrome context; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D152467
2022-07-27 19:28:55 +00:00
Emilio Cobos Álvarez d3bd8e444d Bug 1781268 - Clean up ResizeObserver error handling. r=Oriol
unobserve() never throws. observe() only threw on a case which should
never be reached (an already unlinked observer). We can assert and
return instead.

Differential Revision: https://phabricator.services.mozilla.com/D152769
2022-07-26 15:30:19 +00:00
Jeff Muizelaar 2a6bb59540 Bug 1780282 - Implement some more inbound rtp stats. r=ng,emilio
These are the inbound rtp stats that are P2 for MS Teams.

Differential Revision: https://phabricator.services.mozilla.com/D152213
2022-07-22 00:47:31 +00:00
Emilio Cobos Álvarez 92c9ff22dc Bug 1780385 - Remove canvas hit region api. r=jrmuizel
Add a pref for MouseEvent.region since that wasn't un-exposed. No other
browser supports it so we can probably safely remove it, but just in
case.

Differential Revision: https://phabricator.services.mozilla.com/D152274
2022-07-20 16:52:47 +00:00
Frederik Braun 4ae8b867d8 Bug 1777164 - require SecureContext for setHTML r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D150531
2022-07-20 06:54:36 +00:00
criss 6079dcdb34 Backed out changeset de437faa8094 (bug 1777164) for causing failures on sanitizer-insecure-context.html. CLOSED TREE 2022-07-19 21:52:28 +03:00
Frederik Braun 9d7a862dab Bug 1777164 - require SecureContext for setHTML r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D150531
2022-07-19 18:13:06 +00:00
smolnar bd8c576702 Backed out 2 changesets (bug 1529337) for awaiting decision on implementing other CSP 3 features
Backed out changeset 12cd014c46e8 (bug 1529337)
Backed out changeset f1489d7cf1a1 (bug 1529337)
2022-07-18 11:09:25 +03:00
Olli Pettay 676de90efc Bug 1779808 - Add a JS helper to check if a document is the current active document of a browsing context, r=emilio
This should get tested as part of bug 1692468 and others.

This is exposing https://searchfox.org/mozilla-central/rev/99c3ccc2f02c5fff7c9850f7a0770ee92cc693f6/dom/base/Document.cpp#12730 to privileged JS.

If one wants to check if an element in a data document (document.implementation.createHTMLDocument().body for example) is in a window which is active,
something like element.ownerGlobal?.document.isActive() should work.

Differential Revision: https://phabricator.services.mozilla.com/D151951
2022-07-15 21:30:04 +00:00
Kagami Sascha Rosylight f61c528d6c Bug 1779000 - Part 3: Remove helper functions for prefs r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D151505
2022-07-15 04:25:23 +00:00
criss 512ac8c6d0 Backed out 3 changesets (bug 1779000) for causing build bustages on ActorsParentCommon.cpp. CLOSED TREE
Backed out changeset f33bbb0568fa (bug 1779000)
Backed out changeset 31ba65d120ff (bug 1779000)
Backed out changeset f3a44c2ade2c (bug 1779000)
2022-07-15 06:52:44 +03:00
Kagami Sascha Rosylight 7d7b7cb561 Bug 979586 - Part 2: Add Pure/Constant extattrs to IDB interfaces when applicable r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D134555
2022-07-15 03:43:34 +00:00
Kagami Sascha Rosylight 91dd83f2a6 Bug 979586 - Part 1: Add missing SameObject/NewObject extattrs to IDB interfaces r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D134554
2022-07-15 03:43:33 +00:00
Kagami Sascha Rosylight c28df77d9b Bug 1779000 - Part 3: Remove helper functions for prefs r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D151505
2022-07-15 03:22:32 +00:00
Kagami Sascha Rosylight cdb7d00f1e Bug 1354500 - Part 2: Remove IDBDatabase#storage r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151417
2022-07-15 01:55:26 +00:00
Jonathan Kew fd32caa7cb Bug 1778908 - Implement the fontKerning attribute for Canvas2d text. r=gfx-reviewers,aosmond,emilio
Per spec, the value of fontKerning should be an enum, not a string, but currently we handle
all the keyword-valued canvas attributes in this way. We may want to convert them to enums
(which will mean that unrecognized values throw an error instead of being ignored), but I
think that should be done for all the attributes together as a separate bug. For now, using
a string here provides consistency with the rest of the canvas APIs.

Note that Blink's current implementation and the existing WPT tests have some problems:
they treat the values of fontKerning as case-insensitive, which is wrong. I have filed
https://bugs.chromium.org/p/chromium/issues/detail?id=1343333 about this.

Differential Revision: https://phabricator.services.mozilla.com/D151755
2022-07-13 18:55:37 +00:00
Tom Schuster e8d99d0ef6 Bug 1529337 - Implement CSP 'script-src-elem' and 'script-src-attr' directives. r=freddyb,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D150965
2022-07-13 10:21:48 +00:00
Sebastian Hengst 07c1520097 Bug 1774376 - update further metadata mapping files to Graphics Bugzilla components. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151558
2022-07-11 22:38:30 +00:00
Emilio Cobos Álvarez c84f2d6726 Bug 1765083 - Introduce FocusOptions.focusVisible. r=smaug,pip-reviewers
As per:

 * https://github.com/whatwg/html/issues/7830
 * https://github.com/whatwg/html/pull/8087

Replace the internal preventFocusRing with the new flag.

Differential Revision: https://phabricator.services.mozilla.com/D151326
2022-07-11 22:04:34 +00:00
Benjamin VanderSloot 6b4c4bc2dd Bug 1774854, part 1 - Create new preferences and document member functions for the forward-declared SAAPI, r=timhuang,emilio
Differential Revision: https://phabricator.services.mozilla.com/D149660
2022-07-08 18:16:37 +00:00
Andrew Osmond 2104bee398 Bug 1777287 - Integrate FontFaceSet with OffscreenCanvas on workers. r=emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D150640
2022-07-08 17:34:47 +00:00
Kagami Sascha Rosylight f4fcfcd045 Bug 1778489 - Define window.indexedDB as null in Private Browsing Mode r=twisniewski,asuth
https://www.msn.com/ja-jp/feed accesses `indexedDB` as a global variable and thus it throws undefined identifier error when it's not defined. Returning null fixes the regression.

Differential Revision: https://phabricator.services.mozilla.com/D151373
2022-07-08 16:05:25 +00:00
smolnar 5141a24432 Backed out 5 changesets (bug 1777287, bug 1778610, bug 1778681, bug 1778608, bug 1778694) for causing assertion failures in mozilla/ServoUtils.h CLOSED TREE
Backed out changeset 0aef1644a90e (bug 1777287)
Backed out changeset 53145a539af3 (bug 1778694)
Backed out changeset d2ec7b6792ec (bug 1778681)
Backed out changeset 921a5cd15b42 (bug 1778608)
Backed out changeset d1b85405ea07 (bug 1778610)
2022-07-08 17:17:00 +03:00
smolnar 1547adcf3d Backed out 4 changesets (bug 1774854) for causing browser-chrome failures in antitracking/test/browser/browser_subResources.js
Backed out changeset 46884d2a4eb4 (bug 1774854)
Backed out changeset ee02080a80cc (bug 1774854)
Backed out changeset 5e01fd1a1423 (bug 1774854)
Backed out changeset 98244d30acff (bug 1774854)
2022-07-08 17:08:49 +03:00
Andrew Osmond 9e32b36f8f Bug 1777287 - Integrate FontFaceSet with OffscreenCanvas on workers. r=emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D150640
2022-07-08 13:24:36 +00:00
Benjamin VanderSloot 5b9e145ce3 Bug 1774854, part 1 - Create new preferences and document member functions for the forward-declared SAAPI, r=timhuang,emilio
Differential Revision: https://phabricator.services.mozilla.com/D149660
2022-07-08 12:36:42 +00:00
Nicolas Silva 1d6db74e44 Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio
This patch is a lot of plumbing for not that much functionality. The goal is to align CreateShaderModule's error reporting with the spec.
Creating a shader module is now a dedicated async IPDL message returning the compilation info so that it can be exposed as a promise by the WebGPU API.

Differential Revision: https://phabricator.services.mozilla.com/D146817
2022-07-08 08:11:39 +00:00
Andrew Osmond c5989fee52 Bug 1072107 - Part 9. Expose FontFaceSet on workers. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D149254
2022-07-07 21:24:11 +00:00
Kagami Sascha Rosylight da08d29db4 Bug 1777661 - Always expose "proxable" IDB interfaces r=twisniewski,asuth
This fixes websites using jakearchibald/idb@v3 which has been downloaded 1 million times in NPM (https://www.npmjs.com/package/idb).

The library creates proxies for those interfaces while assuming those are always globally available, and we get an `undefined identifier` error if those don't exist.

Only the version 3 is affected and v4+ is okay per my testing, but v3 is downloaded too many times to ignore.

Differential Revision: https://phabricator.services.mozilla.com/D151086
2022-07-07 19:45:29 +00:00
Cristian Tuns d4e4ae35a5 Backed out 2 changesets (bug 1750576) for causing lint failures and build bustages. CLOSED TREE
Backed out changeset 21ede22c4113 (bug 1750576)
Backed out changeset be7493c6f3cb (bug 1750576)
2022-07-07 10:51:38 -04:00
Nicolas Silva 8b76f3e498 Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio
This patch is a lot of plumbing for not that much functionality. The goal is to align CreateShaderModule's error reporting with the spec.
Creating a shader module is now a dedicated async IPDL message returning the compilation info so that it can be exposed as a promise by the WebGPU API.

Differential Revision: https://phabricator.services.mozilla.com/D146817
2022-07-07 14:35:28 +00:00
Narcis Beleuzu bacee02794 Backed out changeset 0a2e3c4ca14f (bug 1750576) for bustages on RefPtr . CLOSED TREE 2022-07-06 19:18:20 +03:00
Nicolas Silva cce57e2aa3 Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio
This patch is a lot of plumbing for not that much functionality. The goal is to align CreateShaderModule's error reporting with the spec.
Creating a shader module is now a dedicated async IPDL message returning the compilation info so that it can be exposed as a promise by the WebGPU API.

Differential Revision: https://phabricator.services.mozilla.com/D146817
2022-07-06 15:22:59 +00:00
Sebastian Hengst 304227d5c2 Bug 1774376 - update file-to-Bugzilla-component mappings for Graphics team r=perftest-reviewers,gfx-reviewers,sparky,aosmond,nical
Components got reorganized in bug 1774288.

Differential Revision: https://phabricator.services.mozilla.com/D149375
2022-06-30 18:07:29 +00:00
R. Martinho Fernandes b688465bb0 Bug 1718228 - Make CollectedClientData follow the spec r=dveditz,baku
Differential Revision: https://phabricator.services.mozilla.com/D136881
2022-06-30 12:28:45 +00:00
Kagami Sascha Rosylight 48adbee64d Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-30 11:33:56 +00:00
Kagami Sascha Rosylight 6786c826fa Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D150441
2022-06-30 11:33:56 +00:00
Iulian Moraru 23c0c3baed Backed out 3 changesets (bug 1776109) for causing hazzard build bustages on ServiceWorker.cpp.
Backed out changeset b6222b68a403 (bug 1776109)
Backed out changeset 80fb3c3a5a40 (bug 1776109)
Backed out changeset 021a94a72d0c (bug 1776109)
2022-06-30 09:53:28 +03:00
Kagami Sascha Rosylight 30b8df0dc0 Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-30 01:35:13 +00:00
Kagami Sascha Rosylight e772d23751 Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D150441
2022-06-30 01:35:13 +00:00
criss a78fdd3dc0 Backed out 3 changesets (bug 1776109) for causing multiple failures. CLOSED TREE
Backed out changeset 8e76401f7c43 (bug 1776109)
Backed out changeset 1cdbbad1d996 (bug 1776109)
Backed out changeset 66bb4c49d615 (bug 1776109)
2022-06-30 03:23:01 +03:00
Kagami Sascha Rosylight 4c9ef0bb36 Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-29 22:52:39 +00:00
Kagami Sascha Rosylight 5b064cfafd Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D150441
2022-06-29 22:52:39 +00:00
Matthew Gaudet 13db76bd1b Bug 1747059 - Ensure ShadowRealmsGlobalScope has an ordinary object prototype. r=edgar
(Patch largely written by peterv; I just made some compilation tweaks)

Differential Revision: https://phabricator.services.mozilla.com/D146350
2022-06-28 22:04:19 +00:00
Matthew Gaudet 580a35d01e Bug 1747059 - Gecko support for ShadowRealms r=peterv,smaug
This connects [Exposed=*] in WebIDL to ShadowRealms

Differential Revision: https://phabricator.services.mozilla.com/D146349
2022-06-28 22:04:18 +00:00
Robert Longson e2d6a866f3 Bug 1712623 - add disabled property to SVGStyleElement r=emilio
consistent with Chrome, the desires of the specification

Differential Revision: https://phabricator.services.mozilla.com/D115838
2022-06-28 18:36:26 +00:00
Emilio Cobos Álvarez 569a522d01 Bug 1771806 - Record last interactive value in TextControlState. r=masayuki
One unfortunate-ish thing of storing it in TextControlState is that we
can't preserve it across type changes, but that seems ok for now
according to my conversations with Serg.

In the future we might want to move the value to HTMLInputElement itself
or something, we'll see, but this should help folks fix some
long-standing quality issues in the password manager / autofill
implementation.

Differential Revision: https://phabricator.services.mozilla.com/D150148
2022-06-28 08:49:12 +00:00
Jon Coppeard d204c06e4e Bug 1352532 - Part 2: Allocate more DOM nodes in the nursery r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144697
2022-06-28 08:43:47 +00:00
Csoregi Natalia a6c7516d80 Backed out 9 changesets (bug 1747059, bug 1767525)for causing hazard failures on ShadowRealmGlobalScope.cpp. CLOSED TREE
Backed out changeset ed7aad37f2cf (bug 1747059)
Backed out changeset 40a257fb4788 (bug 1747059)
Backed out changeset f7b049ef3b8c (bug 1747059)
Backed out changeset aad38abc7139 (bug 1747059)
Backed out changeset 8115813e77a5 (bug 1747059)
Backed out changeset e06192e664fd (bug 1747059)
Backed out changeset a198b0893220 (bug 1767525)
Backed out changeset c083f0824619 (bug 1767525)
Backed out changeset 9a3bf794ec6d (bug 1767525)
2022-06-28 02:39:08 +03:00
Matthew Gaudet 5b8254b63e Bug 1747059 - Ensure ShadowRealmsGlobalScope has an ordinary object prototype. r=edgar
(Patch largely written by peterv; I just made some compilation tweaks)

Differential Revision: https://phabricator.services.mozilla.com/D146350
2022-06-27 21:17:37 +00:00
Matthew Gaudet f8b7719e44 Bug 1747059 - Gecko support for ShadowRealms r=peterv,smaug
This connects [Exposed=*] in WebIDL to ShadowRealms

Differential Revision: https://phabricator.services.mozilla.com/D146349
2022-06-27 21:17:36 +00:00
Kagami Sascha Rosylight 4398c93e79 Bug 1764771 - Disable IDBMutableHandle support by default r=janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D143728
2022-06-23 01:57:56 +00:00
Emilio Cobos Álvarez bd09497378 Bug 1372276 - Remove HTML menuitem. r=smaug,mconley,agi
This removes HTMLMenuItemElement and all the code and tests preffed off
by dom.menuitem.enabled.

The HTML parser changes are the result of applying the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D149979
2022-06-22 22:31:42 +00:00
Kris Maglione 360a2f6d5c Bug 1770237: Part 8 - Remove legacy component registration for TestInterfaceJS. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D148188
2022-06-22 20:31:34 +00:00
Mirko Brodesser 0389d40d57 Bug 1744524: part 3) On the C++ side: dispatch a custom event when `clipboard.readText()` is called and allow the JS side to propagate whether the user clicked or dismissed the "Paste" button. r=edgar
This implements dispatching a custom "MozClipboardReadTextPaste" event
to the JS side, allowing the latter to show a "Paste" button. The JS
side may then report back to the C++ side, whether the user clicked or
dismissed the "Paste" button.
Combining these features is implemented in a following part and
`clipboard.readText()` is gated behind a pref in another following part.

The implementation bundles subsequent requests of `clipboard.readText()`
belonging to the same transient user activation timestamp.
For the first request of `clipboard.readText()`, a
"MozClipboardReadTextPaste" event is dispatched. As long as no response
for the event was received, further `readText()` requests are queued.
When the response is received, the calls are either resolved or rejected.
New calls following those, within the same transient user activation
period, are resolved/rejected too.

Differential Revision: https://phabricator.services.mozilla.com/D135335
2022-06-16 14:43:41 +00:00
Dimi b86284ee81 Bug 1773043 - Remove flashblock from dom r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D149128
2022-06-15 12:55:25 +00:00
Olli Pettay cc020c4969 Bug 1772494 - Remove ErrorEventInit's error default, r=peterv
Tests will be added in https://github.com/web-platform-tests/wpt/pull/34297/files

Differential Revision: https://phabricator.services.mozilla.com/D148243
2022-06-13 09:33:24 +00:00