Commit Graph
10316 Commits
Author SHA1 Message Date
velzie 64edeacd89 singlethreaded 2026-06-18 15:27:14 -04:00
velzie 673a67963e initial commit for wasm work 2026-06-15 19:20:19 -04:00
Calixte Denizet 2bf9cc091a Bug 2034982 part 3: Register about:pdf and wire it up to chrome. r=mossop
Register about:pdf as a privileged-about page pointing at the landing
page, and add the AboutPDF JSWindowActor pair that bridges the sandboxed
content to chrome. The parent validates a dropped/picked file (file
scheme, .pdf extension, existence and %PDF- header) before navigating
the top browsing context to it, and, on Windows, exposes whether Firefox
can be set as the default PDF handler and performs that change.

Allow the page to call the RPM helpers it needs and to read/write the
promo dismissal pref.

Differential Revision: https://phabricator.services.mozilla.com/D303421
2026-06-12 00:34:04 +00:00
Atila Butkovits 08c4c75efd Revert "Bug 2045635 - Validate more fields for nsDocShellLoadState. r=nika" for causing failures at browser_open_docgroup.js.
This reverts commit b03ef05776.
2026-06-11 18:38:53 +00:00
Vincent Hilla b03ef05776 Bug 2045635 - Validate more fields for nsDocShellLoadState. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D305101
2026-06-11 16:11:34 +00:00
Alexandra Borovova 293c4aff41 Bug 2015657 - Override timezone in web and shared workers when "browsingContext.timezoneOverride" is set in related browsing contexts. r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D300754
2026-06-11 13:46:43 +00:00
Vincent Hilla 206f82125f Bug 2045516 - Mark CreateAboutBlankDocumentViewer MOZ_CAN_RUN_SCRIPT. r=dom-core-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D305215
2026-06-09 15:28:58 +00:00
Masayuki Nakano 6388e58841 Bug 2044523 - Make nsPIDOMWindow.h stop including nsPIDOMWindowInlines.h r=dom-core-reviewers,geckoview-reviewers,media-playback-reviewers,webrtc-reviewers,win-reviewers,layout-reviewers,manuel,aosmond,smaug,bwc,gstoll,dholbert,farre,m_kato
This patch does not make some header files stop including the inline
header because fixing them require more changes.

Note that `#include "nsComponentManagerUtils.h"` is fixing a bustage
caused by "use of undeclared identifier 'do_CreateInstance'" error.

Differential Revision: https://phabricator.services.mozilla.com/D304432
2026-06-09 03:49:55 +00:00
Daniel Holbert fbc22c18f3 Bug 2044510: Pass already_AddRefed types by-value instead of by rvalue reference, in docshell/. r=dom-core-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D304357
2026-06-05 21:06:33 +00:00
Emilio Cobos Álvarez 8a2eeff8e8 Bug 2044694 - Move ScrollOffsetUpdateType out of FrameMetrics to avoid unnecessary FrameMetrics.h includes. r=botond,layout-reviewers,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D304480
2026-06-05 01:19:42 +00:00
Emilio Cobos Álvarez cc359d1aa9 Bug 2044618 - Remove SheetParsingMode. r=layout-reviewers,dholbert
It's a 1:1 mapping for the origin that we cache in the
StyleSheetContents, so use that.

PreloadHashKey only cares about author loads, within a document, so
doesn't really need to deal with user / user-agent ones.

Differential Revision: https://phabricator.services.mozilla.com/D304400
2026-06-05 01:03:23 +00:00
Adam Vandolder be38de8f6f Bug 2037998 - Use the bfcache.page_restored telemetry metric when restoring a page from the BFCache. r=dom-core-reviewers,chutten,smaug
Differential Revision: https://phabricator.services.mozilla.com/D299213
2026-06-04 13:42:14 +00:00
Norisz Fay e94ba27860 Revert "Bug 2040037 - Guard against null current entry in NavigationTraverse r=farre,smaug" for causing assertion failure @ Navigation.cpp
This reverts commit 632cac7944.
2026-06-03 14:07:45 +00:00
Simon Farre 632cac7944 Bug 2040037 - Guard against null current entry in NavigationTraverse r=farre,smaug
Step 4 of
https://html.spec.whatwg.org/#performing-a-navigation-api-traversal
retrieves the "current entry", and according to spec it can be null, and
for the bug it is, which leads us to crashing at a later state inside
WalkClosestContiguousEntriesFrom.

Fix this by also checking mActiveEntry together with sHistory.

Differential Revision: https://phabricator.services.mozilla.com/D301290
2026-06-03 13:40:26 +00:00
Vincent Hilla 54dc16d087 Bug 2040160 - Reject srcdoc data on non-about:srcdoc URI loads. r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D301024
2026-06-03 12:00:09 +00:00
Nika Layzell 4919155043 Bug 2043001 - Simplify speculative load handling, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D303385
2026-06-02 16:14:08 +00:00
Joe Cardoso 68be5ee2db Bug 1895528 - Stop relying on top-level data: URI navigations in tests. r=gregp,extension-reviewers,devtools-reviewers,akulyk,nchevobbe,sthompson,robwu,dom-core,firefox-build-system-reviewers,smaug,ahochheiden,tschuster,firefox-style-system-reviewers,whimboo,emilio
Differential Revision: https://phabricator.services.mozilla.com/D274022
2026-05-31 00:10:06 +00:00
Cristian Tuns 369c6c1cbe Revert "Bug 1895528 - Stop relying on top-level data: URI navigations in tests. r=gregp,extension-reviewers,devtools-reviewers,akulyk,nchevobbe,sthompson,robwu,dom-core,firefox-build-system-reviewers,smaug,ahochheiden,tschuster,firefox-style-system-reviewers,whimboo,emilio" for causing wd failures in execution_order_tentative.py
This reverts commit 98af8586d3.
2026-05-30 13:21:46 +00:00
Joe Cardoso 98af8586d3 Bug 1895528 - Stop relying on top-level data: URI navigations in tests. r=gregp,extension-reviewers,devtools-reviewers,akulyk,nchevobbe,sthompson,robwu,dom-core,firefox-build-system-reviewers,smaug,ahochheiden,tschuster,firefox-style-system-reviewers,whimboo,emilio
Differential Revision: https://phabricator.services.mozilla.com/D274022
2026-05-30 08:55:40 +00:00
Andreas Farre 1147371945 Bug 2042379 - Part 1: Make sure to truncate navigation.entries when sesion history changes length. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D302493
2026-05-29 11:11:05 +00:00
Andreas Farre cb8a714584 Bug 2039866 - FindAdjacentEntryFor should never return its input. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D302724
2026-05-29 11:11:02 +00:00
Daniel Holbert fb91da1c52 Bug 2042995: Use MakeUnique to do allocation for some UniquePtr-typed variables in docshell/. r=dom-core,farre
This bug's other patch is about doing s/new/MakeRefPtr/ for reference-counted
variables; this patch here is just a drive-by to do s/new/MakeUnique/ for some
uniquely-owned variables.

Differential Revision: https://phabricator.services.mozilla.com/D302916
2026-05-28 16:08:21 +00:00
Daniel Holbert 3942e62d83 Bug 2042995: Use MakeRefPtr to do allocation for various RefPtr variables in docshell/. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D302911
2026-05-28 16:08:18 +00:00
Alexandra Borovova 8a76b7d334 Bug 2015655 - Remove unneeded mDefaultLocale from browsingContext.languageOverride setup logic. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D302480
2026-05-28 16:07:39 +00:00
Alexandra Borovova 322f939aef Bug 2015655 - Override locale and navigator.language/s in dedicated and shared workers when browsingContext.languageOverride is set in related browsing contexts. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D302030
2026-05-28 16:07:36 +00:00
Vincent Hilla 54868bcb7f Bug 2042891 - Don't assert manualactiveness without embedder. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D302980
2026-05-28 15:51:40 +00:00
agoloman ace81424e9 Revert "Bug 2042379 - Make sure to truncate navigation.entries when sesion history changes length. r=jjaschke" for causing bc failures @Navigation.cpp.
This reverts commit 36fc8f5360.

Revert "Bug 2039866 - FindAdjacentEntryFor should never return its input. r=dom-core,smaug"

This reverts commit 465532bd55.
2026-05-28 09:40:19 +00:00
Andreas Farre 36fc8f5360 Bug 2042379 - Make sure to truncate navigation.entries when sesion history changes length. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D302493
2026-05-28 07:10:27 +00:00
Andreas Farre 465532bd55 Bug 2039866 - FindAdjacentEntryFor should never return its input. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D302724
2026-05-28 07:10:24 +00:00
Olli Pettay e551acd180 Bug 2042819 - [@ nsSHistory::HasUserInteractionAtIndex], r=avandolder
Differential Revision: https://phabricator.services.mozilla.com/D302773
2026-05-27 15:41:14 +00:00
Sandor Molnar 64b64d987d Revert "Bug 2040037 - Guard against null current entry in NavigationTraverse r=farre,smaug" for causing crashtest failures @ docshell/base/crashtests/2042260.html
This reverts commit 1ad7053c72.
2026-05-27 09:54:44 +00:00
Simon Farre 1ad7053c72 Bug 2040037 - Guard against null current entry in NavigationTraverse r=farre,smaug
Step 4 of
https://html.spec.whatwg.org/#performing-a-navigation-api-traversal
retrieves the "current entry", and according to spec it can be null, and
for the bug it is, which leads us to crashing at a later state inside
WalkClosestContiguousEntriesFrom.

Fix this by also checking mActiveEntry together with sHistory.

Differential Revision: https://phabricator.services.mozilla.com/D301290
2026-05-27 08:42:45 +00:00
Mark Banner 35a52635ae Bug 2040720 - Change nsIURIFixupInfo to pass the search engine id rather than the name. r=farre,search-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,mak,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D301366
2026-05-26 17:26:07 +00:00
Mark Banner e5688e690d Bug 2040720 - Improve test structure and variable naming for docshell uriFixup tests. r=farre
This improves the naming of some of the various (ID -> Name) to reflect what they actually represent.
Additionally, this splits up the one mega run_test in test_URIFixup_info.js into multiple tasks, so that it is easier to see which stage of the test that a test failure occurs in.

Differential Revision: https://phabricator.services.mozilla.com/D301721
2026-05-26 17:26:04 +00:00
Serban Stanca 3f1235a56f Revert "Bug 2042379 - Make sure to truncate navigation.entries when sesion history changes length. r=jjaschke" for causing mochitests failures in browser_purge_shistory.js.
This reverts commit df39d8a096.
2026-05-26 16:21:50 +00:00
Andreas Farre df39d8a096 Bug 2042379 - Make sure to truncate navigation.entries when sesion history changes length. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D302493
2026-05-26 14:29:37 +00:00
Bas Schouten 0688a6c669 Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall
This removes the legacy telemetry mirroring for a large set of glean probes. All of these have their data readily available through glean, this means if there are queries depending on this some small changes maybe needed in order to make those work. This also updates a variety of tests that depended on the legacy telemetry mirrors.

Differential Revision: https://phabricator.services.mozilla.com/D301085
2026-05-25 00:14:48 +00:00
Norisz Fay 2813a3c6d6 Revert "Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall" for causing unknown test url mochitest failure
This reverts commit 07c887df83.
2026-05-24 10:29:09 +00:00
Bas Schouten 07c887df83 Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall
This removes the legacy telemetry mirroring for a large set of glean probes. All of these have their data readily available through glean, this means if there are queries depending on this some small changes maybe needed in order to make those work. This also updates a variety of tests that depended on the legacy telemetry mirrors.

Differential Revision: https://phabricator.services.mozilla.com/D301085
2026-05-23 23:07:39 +00:00
Andreas Farre 39de446f7b Bug 2041283 - Don't fire traverse navigate event when resuming an intercepted navigation. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D301735
2026-05-21 12:38:27 +00:00
Cosmin Sabou cc0604f239 Revert "Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall" for causing talos failures.
This reverts commit 67bb8ceb9e.
2026-05-21 03:53:11 +00:00
Bas Schouten 67bb8ceb9e Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall
This removes the legacy telemetry mirroring for a large set of glean probes. All of these have their data readily available through glean, this means if there are queries depending on this some small changes maybe needed in order to make those work. This also updates a variety of tests that depended on the legacy telemetry mirrors.

Differential Revision: https://phabricator.services.mozilla.com/D301085
2026-05-21 00:56:18 +00:00
Cosmin Sabou 935adac6fc Revert "Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall" for causing memory related failures.
This reverts commit b7c2b5722f.
2026-05-20 22:18:17 +00:00
Bas Schouten b7c2b5722f Bug 2040243: Remove legacy mirrors for a large set of probes primarily used for performance monitoring. r=chutten,perftest-reviewers,geckoview-reviewers,home-newtab-reviewers,layout-reviewers,jwatt,sparky,mconley,ohall
This removes the legacy telemetry mirroring for a large set of glean probes. All of these have their data readily available through glean, this means if there are queries depending on this some small changes maybe needed in order to make those work. This also updates a variety of tests that depended on the legacy telemetry mirrors.

Differential Revision: https://phabricator.services.mozilla.com/D301085
2026-05-20 20:29:31 +00:00
Andreas FarreandSimon Farre a78f50cee8 Bug 2031699 - Don't queue new history navigation synchronously when intercepting. r=dom-core,jjaschke,smaug
Make sure to synchronously start a history load when we intercept a history
traversal.

Co-authored-by: Simon Farre <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D294179
2026-05-20 18:15:04 +00:00
Emilio Cobos Álvarez 33c8ba167e Bug 2017786 - Fix some tests which make wrong assumptions about setTimeout scheduling. r=hsivonen
Some document.write() WPTs made the assumption that a setTimeout() in
the parent window will run after the load event in the child frame, and
there's no such guarantee per spec.

The focus fixup rule test similarly relied on the rendering not being
suppressed by the time the test run. Do that by awaiting an animation
frame, not just a timeout.

Differential Revision: https://phabricator.services.mozilla.com/D301259
2026-05-19 11:23:02 +00:00
agoloman 4c2e4f9f4b Revert "Bug 2017786 - Disable timeout deferral during load. r=smaug" for causing multiple failures.
This reverts commit c65aff1625.

Revert "Bug 2017786 - Fix test_bug1773192.html which relied on this behavior."

This reverts commit 2418cab9f3.
2026-05-18 14:00:53 +00:00
Emilio Cobos Álvarez 2418cab9f3 Bug 2017786 - Fix test_bug1773192.html which relied on this behavior. 2026-05-18 13:41:27 +00:00
serge-sans-paille a55c1eb7b8 Bug 2039238 - Enforce usage of MOZ_EMPTY_BASES r=tsmith
Unlike VS, we're not constrained by legacy behavior and should always
turn this attribute on where it's needed. There's no VS flag for it, but
we can use clang-tidy to detect when it's needed.

It's okay to use that attribute when it has no effect, so don't bother
trying to be smart in dom/bindings/Codegen.py and always add it.

Differential Revision: https://phabricator.services.mozilla.com/D300299
2026-05-14 14:09:57 +00:00
Jan de Mooij bf3a79b7fb Bug 2038557 part 3 - Require proxies with two reserved slots for proxy swap/transplant. r=jonco
Since bug 2037186 we already required the same allocation kind, but that can change
when we make object layout or GC changes so isn't ideal.

This change also simplifies later patches.

Differential Revision: https://phabricator.services.mozilla.com/D300252
2026-05-14 11:46:11 +00:00