Tom Schuster
00fcd6f011
Bug 1876276 - Remove dead nsIDocShell allowPlugins code. r=emilio,sessionstore-reviewers,dao
...
Differential Revision: https://phabricator.services.mozilla.com/D199491
2024-01-31 09:36:36 +00:00
Emilio Cobos Álvarez
ca8e85e34b
Bug 1877242 - Avoid some unnecessary refcounting churn when accessing parent-cross-chrome-boundary. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D199901
2024-01-30 23:24:43 +00:00
Olli Pettay
fcb8ce6b24
Bug 1876539, drop styleset only if presshell has been disconnected, r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D199674
2024-01-25 23:56:37 +00:00
Cosmin Sabou
8c442450b2
Backed out changeset 88fbb17e3c20 (bug 1865637) for causing animation related mochitest plain failures. CLOSED TREE
2024-01-24 19:04:25 +02:00
Emilio Cobos Álvarez
72df5210e2
Bug 1865637 - Make sure animation ticks are consistent. r=hiro
...
This makes ticking the document timeline happens only when we make
forward progress. It seems otherwise we can end up with an extra no-op
tick which might resolve the ready time unexpectedly.
It's also cleaner.
Differential Revision: https://phabricator.services.mozilla.com/D194406
2024-01-24 16:15:54 +00:00
Emilio Cobos Álvarez
f67c9a08e8
Bug 1875822 - nsObjectLoadingContent doesn't need to inherit from nsImageLoadingContent anymore. r=smaug
...
After bug 1875466, this is no longer needed and simplifies the code
quite a bit.
Differential Revision: https://phabricator.services.mozilla.com/D199252
2024-01-22 23:15:17 +00:00
Christian Holler (:decoder)
6512c73962
Bug 1875498 - Make URI non-nullable in some WindowGlobal methods. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D199108
2024-01-22 18:57:20 +00:00
Tom Schuster
f20ecbedcd
Bug 1875466 - Remove nsContentUtils::ShouldHideObjectOrEmbedImageDocument. r=emilio
...
Depends on D199114
Differential Revision: https://phabricator.services.mozilla.com/D199115
2024-01-22 14:26:10 +00:00
Leander Schwarz
b2d5ab281c
Bug 1870067 - Refactor StorageAccessAPIHelper into Parent and Child functions. r=bvandersloot,anti-tracking-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D197673
2024-01-19 19:18:45 +00:00
Emilio Cobos Álvarez
18a29a0e52
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-18 13:11:53 +00:00
Greg Tatum
290e0906df
Bug 1873772 - Only report XULStore load errors in the parent process; r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D198086
2024-01-17 17:18:47 +00:00
Norisz Fay
96399d6060
Backed out changeset 2e5c6f0706b8 (bug 1870067) for causing assertion failure on StorageAccessAPIHelper.cpp
2024-01-18 01:45:22 +02:00
Leander Schwarz
b94e714b93
Bug 1870067 - Refactor StorageAccessAPIHelper into Parent and Child functions. r=bvandersloot,anti-tracking-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D197673
2024-01-17 16:26:22 +00:00
Nicolas Chevobbe
8385ae28f0
Bug 1857523 - Pass PropertyDefinition in csscustompropertyregistered event. r=emilio.
...
Differential Revision: https://phabricator.services.mozilla.com/D196828
2024-01-16 19:31:05 +00:00
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