Commit Graph
8035 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
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
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
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
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
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
Serban Stanca 54e472bafb Revert "Bug 2039238 - Enforce usage of MOZ_EMPTY_BASES r=tsmith" for causing build bustages in MMPolicies.h.
This reverts commit 5efc6c9f8a.
2026-05-14 00:11:38 +00:00
serge-sans-paille 5efc6c9f8a 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-13 22:35:59 +00:00
Andreas Farre 02f9cc8a6f Bug 2037359 - Notify DevTools about missing entry updates. r=dom-core,devtools-reviewers,nchevobbe,smaug
Rename and re-use nsISessionHistoryListener.OnEntryTitleUpdated.

Differential Revision: https://phabricator.services.mozilla.com/D298764
2026-05-08 13:59:24 +00:00
Daniel Holbert 10725540f6 Bug 2037754: Use 'MakeAndAddRef' instead of 'new' when allocating runnable for nsContentUtils::AddScriptRunner. r=dom-core,smaug
MakeAndAddRef ensures that the freshly-allocated object immediately gets a
refcount of 1 (before it's even passed to AddScriptRunner).  This avoids
several potential footguns that otherwise exist with a zero-refcount
freshly-allocated object.

It also makes the ownership-transfer semantics more clear
(via the already_AddRefed type that it produces) - AddScriptRunner is taking
ownership of the object, rather than using it temporarily while the caller
maintains ownership.

Differential Revision: https://phabricator.services.mozilla.com/D299039
2026-05-07 06:35:57 +00:00
Norisz Fay 231994f8e9 Revert "Bug 1610528: apply code formatting via Lando" for causing mochitest failure @ test_docload_root.html
This reverts commit 395dbb6782.

Revert "Bug 1610528 - Remove about:logo. r=dom-core,sthompson,tschuster,smaug,geckoview-reviewers,ohall,firefox-desktop-core-reviewers ,dao"

This reverts commit 7a7e757271.

Revert "Bug 1610528 - Add XPCShellContentUtils.registerAboutPage. r=robwu"

This reverts commit 2ae492c37d.
2026-05-06 21:32:41 +00:00
Vincent Hilla 7a7e757271 Bug 1610528 - Remove about:logo. r=dom-core,sthompson,tschuster,smaug,geckoview-reviewers,ohall,firefox-desktop-core-reviewers ,dao
Differential Revision: https://phabricator.services.mozilla.com/D283655
2026-05-06 20:08:31 +00:00
Vincent Hilla 973d6e2bf6 Bug 2035423 - Revert setting CSP context already on document creation. r=tschuster
StartDocumentLoad calls SetRequestContextWithDocument. Since bug 543435, the
initial about:blank load doesn't go through this code anymore. Therefore, we
added that call also to CreateAboutBlankDocumentViewer. This is advantageous
in general too, because transient documents will have the correct context.
But due to bug 1899512, there are regressions.

This change reverts setting the request context already at document creation.
Instead we match regular loads and set the request context in the corresponding
CompleteInitialAboutBlankLoad.

Differential Revision: https://phabricator.services.mozilla.com/D297337
2026-05-05 14:02:54 +00:00
Alexandra Borovova 4776e412dc Bug 2036774 - Do not assert for top browsing context to avoid causing the crash. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D298285
2026-05-05 14:00:52 +00:00
Sylvestre Ledru f5f29fab27 Bug 2036402 - Apply std::move in caps where values can be moved instead of copied r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D298103
2026-05-04 12:04:13 +00:00
Emilio Cobos Álvarez 1bd0da8bf7 Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-02 22:04:17 +00:00