Nicolas Chevobbe
aa46055693
Bug 1857523 - Add ChromeOnly csscustompropertyregistered event. r=emilio.
...
The event is emitted when a property is registered via `CSS.registerProperty`.
This will be used by DevTools so we can update the Rules view when a property
is registered.
Differential Revision: https://phabricator.services.mozilla.com/D196204
2024-01-16 19:31:04 +00:00
Cosmin Sabou
45679835e9
Backed out 4 changesets (bug 1874766) for causing frequent crashes @nsBaseWidget::UpdateZoomConstraints. CLOSED TREE
...
Backed out changeset b6caaf7b98e6 (bug 1874766)
Backed out changeset ab8632fd1236 (bug 1874766)
Backed out changeset f2bfe7d3bd10 (bug 1874766)
Backed out changeset 830a664759c7 (bug 1874766)
2024-01-16 21:52:28 +02:00
Emilio Cobos Álvarez
b65538912f
Bug 1874776 - Ignore all extension pages from use counters. r=smaug
...
It seems the discussion in the bug goes in this direction, and I think
it's the right call as described there.
Depends on D198630
Differential Revision: https://phabricator.services.mozilla.com/D198669
2024-01-16 18:41:58 +00:00
Emilio Cobos Álvarez
14118fd8f7
Bug 1874776 - Ignore built-in extension pages from telemetry. r=smaug
...
Just like we ignore chrome pages. This should be uncontroversial, even
though it might be the case that we don't want any of these to show up.
Not sure how to best test this...
Differential Revision: https://phabricator.services.mozilla.com/D198630
2024-01-16 17:03:00 +00:00
Emilio Cobos Álvarez
5f0bf1df23
Bug 1874766 - Add a missing null-check.
...
MANUAL PUSH: Trivial orange fix CLOSED TREE
2024-01-16 17:45:48 +01:00
Emilio Cobos Álvarez
b2c4527b4b
Bug 1874766 - Fix win32 build.
...
MANUAL PUSH: Trivial fix CLOSED TREE
2024-01-16 17:24:51 +01:00
Emilio Cobos Álvarez
21ecde1794
Bug 1874766 - Fix build with -WError.
...
MANUAL PUSH: Trivial fix CLOSED TREE
2024-01-16 17:00:18 +01:00
Emilio Cobos Álvarez
336c3bcf83
Bug 1874766 - Make title change events block onload in chrome docshells. r=smaug
...
See the comment as for why.
Differential Revision: https://phabricator.services.mozilla.com/D198684
2024-01-16 14:30:12 +00:00
Masayuki Nakano
ec47e76714
Bug 1871987 - Make Document::ExecCommand treat first call by addon as a user input r=smaug
...
`beforeinput` event shouldn't be fired if it's caused by JS. However, we
dispatch it when the call is by chrome script or an addon because there is
no user input emulation API for WebExtension and builtin editors make the
change undoable only when JS changes the editor value with
`Document.execCommand`. Therefore, addons may want to use
`Document.execCommand` for making the change undoable.
On the other hand, nested calls of `Document.execCommand` makes the error
handlings in editor classes too complicated. Therefore, we don't allow that.
However, this causes that if web apps intercept `beforeinput` events and
prevents the default and calls `document.execCommand`, the first call of
web apps may be first nested call if the `beforeinput` event is caused by
a call of `Document.execCommand` in addon.
Therefore, this patch makes `Document` stores whether `ExecCommand` is called
by content or chrome/addon. And if the call is improperly nested, keep stopping
handling the command, but allows if and only if the first call is by
chrome/addon.
Differential Revision: https://phabricator.services.mozilla.com/D198357
2024-01-14 03:06:25 +00:00
Tooru Fujisawa
95bdb671e8
Bug 1873330 - Part 4: Add UserActivation::Modifiers getters. r=smaug
...
In order to use the modifiers in nsGlobalWindowOuter::OpenInternal, add accessor
methods to BrowsingContext, Document, and WindowContext.
Those accessors behave in the same way as ConsumeTransientUserGestureActivation
and RevisePopupAbuseLevel, except for checking the PopupBlocker state.
Differential Revision: https://phabricator.services.mozilla.com/D197862
2024-01-11 17:24:02 +00:00
Tooru Fujisawa
293b0ae3cb
Bug 1873330 - Part 3: Store modifiers for user activation with input event. r=smaug
...
Depends on D197860
Differential Revision: https://phabricator.services.mozilla.com/D197861
2024-01-11 17:24:02 +00:00
Gregory Pappas
eb2242368d
Bug 1853547 - Remove dom.importMaps.enabled pref r=allstarschh
...
Differential Revision: https://phabricator.services.mozilla.com/D197751
2024-01-06 01:53:19 +00:00
Oliver Medhurst
9606978d1a
Bug 1793560 - Remove navigate-to CSP directive r=tschuster
...
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564
Now skipping navigate-to WPT tests. Filed issue upstream for their future removal:
https://github.com/w3c/webappsec-csp/issues/608
Consensus seems to agree to remove, will do in follow up bug once landed.
Also removed our own tests.
Added a hack in StartDocumentLoad as just removing the navigate-to check call
breaks some inhertiance, see comment for more info.
Differential Revision: https://phabricator.services.mozilla.com/D181630
2024-01-03 16:43:12 +00:00
Tom Ritter
6fb74fab49
Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-12-18 18:39:33 +00:00
june wilde
df33d54134
Bug 1764343 - Remove steps in Document::Open not derived from spec; r=dveditz
...
Differential Revision: https://phabricator.services.mozilla.com/D190611
2023-12-13 11:06:56 +00:00
Sean Feng
02aed49dba
Bug 1867152 - Fix the assertion in nsPresContext::UserInputEventsAllowed r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D196106
2023-12-12 22:49:38 +00:00
Cosmin Sabou
522da0fe26
Backed out changeset 496886cb30a5 (bug 1867152) for bc failures on browser_user_input_handling_delay.js. CLOSED TREE
2023-12-12 21:48:27 +02:00
Sean Feng
ee1d6bccd1
Bug 1867152 - Fix the assertion in nsPresContext::UserInputEventsAllowed r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D196106
2023-12-12 15:17:53 +00:00
Emilio Cobos Álvarez
71e771518b
Bug 1868552 - Refactor nsIContent::IsFocusable for clarity. r=masayuki
...
Make it be output-only, not having that confusing in-out tab-index
parameter that is special for XUL to become focusable with
-moz-user-focus: normal. Instead, do that explicitly in
nsIFrame::IsFocusable().
Also, call it IsFocusableWithoutStyle(), since that's what it is.
Differential Revision: https://phabricator.services.mozilla.com/D195644
2023-12-08 11:34:06 +00:00
Adam Vandolder
9175984175
Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193676
2023-12-07 21:27:10 +00:00
Adam Vandolder
b9bbd3c2cc
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-07 21:27:10 +00:00
Olli Pettay
e8eceb76ea
Bug 1868746 - Drop styleset from Document sooner, r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D195771
2023-12-07 20:50:14 +00:00
Peter Van der Beken
fd17a13d91
Bug 1867945 - Use WeakPtr<Document> instead of nsWeakPtr. r=dom-core,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D195342
2023-12-07 18:47:44 +00:00
Iulian Moraru
18a0b69f80
Backed out changeset f03b7de13ed6 (bug 1867945) for causing leaks at WeakReference. CLOSED TREE
2023-12-07 16:24:40 +02:00
Peter Van der Beken
6f18106eee
Bug 1867945 - Use WeakPtr<Document> instead of nsWeakPtr. r=dom-core,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D195342
2023-12-07 13:42:07 +00:00
Iulian Moraru
8d186a8450
Backed out 6 changesets (bug 1712140) for causing sanitizer failures on nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset b374469160e9 (bug 1712140)
Backed out changeset dfc44cccff32 (bug 1712140)
Backed out changeset 3a35e1401130 (bug 1712140)
Backed out changeset a93481858c38 (bug 1712140)
Backed out changeset a861fd445f56 (bug 1712140)
Backed out changeset dc1dc389f2dc (bug 1712140)
2023-12-07 08:16:23 +02:00
Adam Vandolder
355580f7c5
Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193676
2023-12-06 22:50:50 +00:00
Adam Vandolder
0956658e5f
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-06 22:50:49 +00:00
Cathie Chen
4b1cd0cb92
Bug 1866566 - If there is change in over-all relevancy, update HiddenByContentVisibility for animations, r=emilio,hiro
...
Differential Revision: https://phabricator.services.mozilla.com/D195009
2023-12-06 13:36:59 +00:00
Vincent Hilla
099fcac0f9
Bug 1589554 - Part 2: Implement Screen Wake Lock API. r=dom-core,edgar
...
Depends on D189508
Differential Revision: https://phabricator.services.mozilla.com/D189509
2023-12-05 23:58:06 +00:00
Vincent Hilla
1b8dcd220c
Bug 1589554 - Part 1: Screen Wake Lock boilerplate. r=dom-core,smaug,emilio,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D189508
2023-12-05 23:58:06 +00:00
Stanca Serban
34d35a19ee
Backed out 6 changesets (bug 1712140) for causing Linux related wpt failures in nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset 3d799b386f3e (bug 1712140)
Backed out changeset 2ed53d545d6d (bug 1712140)
Backed out changeset 6f50077df42a (bug 1712140)
Backed out changeset e7c5449482f9 (bug 1712140)
Backed out changeset 5490dad148ef (bug 1712140)
Backed out changeset 50828058065e (bug 1712140)
2023-12-06 00:18:38 +02:00
Adam Vandolder
22752a3a0a
Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193676
2023-12-05 18:18:17 +00:00
Adam Vandolder
d4c62c3dcb
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-05 18:18:16 +00:00
Cosmin Sabou
3401b2bd41
Backed out 7 changesets (bug 1589554) for causing non-unified bustages on WakeLockJS.cpp.
...
Backed out changeset a0db8be67659 (bug 1589554)
Backed out changeset 76a3c248813f (bug 1589554)
Backed out changeset f1500173aa53 (bug 1589554)
Backed out changeset e02e11c3d977 (bug 1589554)
Backed out changeset 202c4f5c642b (bug 1589554)
Backed out changeset 82e03a404c2f (bug 1589554)
Backed out changeset b55991835aec (bug 1589554)
2023-12-05 19:12:31 +02:00
Cosmin Sabou
424d51a33c
Backed out changeset d9e8e468a2f2 (bug 1866566) for wpt failures on content-visibility-animation-with-scroll-timeline-in-hidden-subtree.html.
2023-12-05 18:59:19 +02:00
Cathie Chen
7ad6cf3016
Bug 1866566 - If there is change in over-all relevancy, update HiddenByContentVisibility for animations, r=emilio,hiro
...
Differential Revision: https://phabricator.services.mozilla.com/D195009
2023-12-05 15:57:51 +00:00
Vincent Hilla
a3b163e90a
Bug 1589554 - Part 2: Implement Screen Wake Lock API. r=dom-core,edgar
...
Depends on D189508
Differential Revision: https://phabricator.services.mozilla.com/D189509
2023-12-05 15:37:05 +00:00
Vincent Hilla
510d3edabb
Bug 1589554 - Part 1: Screen Wake Lock boilerplate. r=dom-core,smaug,emilio,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D189508
2023-12-05 15:37:05 +00:00
Iulian Moraru
80baabd575
Backed out 6 changesets (bug 1712140) for causing wpt failures on declarative-shadow-dom-opt-in.html.
...
Backed out changeset 78e3a33470ae (bug 1712140)
Backed out changeset 8601fce480ef (bug 1712140)
Backed out changeset 4d2749962c5f (bug 1712140)
Backed out changeset b65511d17150 (bug 1712140)
Backed out changeset 8ae1f766f1f9 (bug 1712140)
Backed out changeset 4ffe7a6ad366 (bug 1712140)
2023-12-04 22:30:04 +02:00
Adam Vandolder
1dce51d395
Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193676
2023-12-04 17:35:49 +00:00
Adam Vandolder
773870d396
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-12-04 17:35:49 +00:00
Stanca Serban
3fa8347485
Backed out 6 changesets (bug 1712140) for causing wpt failures in declarative-shadow-dom-opt-in.html.
...
Backed out changeset 554a46ed8046 (bug 1712140)
Backed out changeset 14ebbfca2e84 (bug 1712140)
Backed out changeset 98dd5766dd46 (bug 1712140)
Backed out changeset 4241a7241a9b (bug 1712140)
Backed out changeset 59ee434d503e (bug 1712140)
Backed out changeset ff3bb42f91d1 (bug 1712140)
2023-12-01 03:26:27 +02:00
Adam Vandolder
451614f805
Bug 1712140 - Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193676
2023-11-30 23:17:15 +00:00
Adam Vandolder
f03d7c3ce0
Bug 1712140 - Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193675
2023-11-30 23:17:15 +00:00
Frederic Wang
d696aeae2b
Bug 1867090 - Don't deliver resize loop error notification for internal Last Remembered Size observer. r=emilio
...
This fixes regression from bug 1866894.
Also revert some code used to worked these undesired errors.
Differential Revision: https://phabricator.services.mozilla.com/D194876
2023-11-29 09:06:49 +00:00
Emilio Cobos Álvarez
0d34e41b89
Bug 1867042 - Don't force PresShell initialization from ResizeObserver handling. r=fredw
...
This is unfortunately somewhat hard to test, because paint suppression
is not really quite observable by the page.
This makes sure that we don't report resize observations etc until the
page has been laid out for other reasons.
Differential Revision: https://phabricator.services.mozilla.com/D194910
2023-11-28 22:27:59 +00:00
Frederic Wang
ddfb81b48e
Bug 1807253 - unreliable timing for content-visibility:auto, r=emilio
...
Rewrite implementation of content-visibility: auto as defined in
https://github.com/w3c/csswg-drafts/issues/8542
Differential Revision: https://phabricator.services.mozilla.com/D170394
2023-11-27 08:26:46 +00:00
Robert Longson
32cf4ce6f1
Bug 1866384 - remove unused or obsolete code r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D194582
2023-11-24 14:53:36 +00:00
Peter Van der Beken
e0d7b4edf2
Bug 1866220 - Force UniquePtr<…> return type for functions called from bindings for things marked as NewObject and returning a non-refcounted object. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D194468
2023-11-24 10:38:18 +00:00