velzie
673a67963e
initial commit for wasm work
2026-06-15 19:20:19 -04: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
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
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
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
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
Andreas Farre and Simon 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
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
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
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
iulian moraru
480fc572da
Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
...
This reverts commit 4f62279d01 .
Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"
This reverts commit 91a4ece356 .
Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"
This reverts commit 5a95a889e1 .
Revert "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"
This reverts commit 7177a68e67 .
Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"
This reverts commit 5263254690 .
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez
7177a68e67
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 15:33:23 +00:00
rperta
d4cc71008d
Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
...
This reverts commit e58e122135 .
This reverts commit 84ca206f3e .
This reverts commit a7945292ed .
This reverts commit 367d83d299 .
2026-05-02 06:20:30 +00:00
Emilio Cobos Álvarez
a7945292ed
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-01 11:58:14 +00:00
agoloman
c814da612d
Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
...
This reverts commit c7246654bc .
Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"
This reverts commit 8873ddf33c .
Revert "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"
This reverts commit 8bf999e03c .
Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"
This reverts commit 7dea1af2e0 .
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez
8bf999e03c
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-04-30 17:47:11 +00:00
Sylvestre Ledru
62b1ca8d05
Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
...
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Randell Jesup
8fd7383628
Bug 1505389: Don't make navigation block XHR and call onerror/abort r=necko-reviewers,valentin,smaug
...
Fires readystatechange and loadend intead of abort
Differential Revision: https://phabricator.services.mozilla.com/D297147
2026-04-29 19:51:21 +00:00
Silaghi
cacbfc1659
Revert "Bug 1505389: Don't make navigation block XHR and call onerror/abort r=necko-reviewers,valentin,smaug" for causing wpt failures at XMLHttpRequest
...
This reverts commit b59d39283f .
2026-04-29 14:05:52 +00:00
Randell Jesup
b59d39283f
Bug 1505389: Don't make navigation block XHR and call onerror/abort r=necko-reviewers,valentin,smaug
...
Fires readystatechange and loadend intead of abort
Differential Revision: https://phabricator.services.mozilla.com/D297147
2026-04-29 12:53:20 +00:00
Eleanor Dicharry
32e673a190
Bug 2018995 - Add new x-moz-graph custom protocol to support Microsoft Graph in Thunderbird. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D292900
2026-04-14 03:33:41 +00:00
Olli Pettay
e6a80f9d05
Bug 2028524, avoid leaking a document, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D291762
2026-04-02 22:01:43 +00:00
Andreas Farre
477bab48ed
Bug 2024044 - Don't run #navigate-event-intercept-commit-handler-steps from document.open r=dom-core,jjaschke
...
Differential Revision: https://phabricator.services.mozilla.com/D291687
2026-04-02 11:45:50 +00:00
Andreas Farre
bdb1e0081a
Bug 2026953 - Block session history loads if we're attempting to navigate. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D290433
2026-03-31 13:20:25 +00:00
Vincent Hilla
3dee5a386c
Bug 1706538 - Don't mark non-initial top about:{blank,newtab} as transient. r=tabbrowser-reviewers,farre,sthompson
...
Other browsers and iframes already keep non-initial about:blank documents in
session history. This change extends that to top-level about:blank loads.
In addition, nsDocShell::ShouldAddToSessionHistory is removed.
When browser.newtabpage.enabled=false, newly opened tabs continue to have their
initial about:newtab session history entry marked as transient. The logic is
moved from nsDocShell to AboutNewTabParent.
Differential Revision: https://phabricator.services.mozilla.com/D284624
2026-03-24 11:35:52 +00:00
Emilio Cobos Álvarez
5016086e1a
Bug 2025089 - Remove some includes from nsINode.h and Element.h. r=dom-core,dom-storage-reviewers,firefox-svg-reviewers,janv,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D289049
2026-03-22 23:45:55 +00:00
Jeff Muizelaar
962f317053
Bug 2024769 - Add marker for nsDocShell:ReloadNavigable. r=smaug
...
This is useful for seeing when reloads happen
and getting the associated stack.
Differential Revision: https://phabricator.services.mozilla.com/D288763
2026-03-20 14:17:53 +00:00
Adam Vandolder
aff5c74581
Bug 1892551 - Part 9: Remove now unused LoadHistoryEntry overload. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D284724
2026-03-18 17:26:32 +00:00
Adam Vandolder
9f7121ab8c
Bug 1892551 - Part 8: Remove now unnecessary nsDocShell::mSavingOldViewer. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D256537
2026-03-18 17:26:30 +00:00
Adam Vandolder
7a33dbf0d9
Bug 1892551 - Part 7: Remove unused parameter from ResumeRedirectedLoad. r=farre,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D213340
2026-03-18 17:26:27 +00:00
Adam Vandolder
18113ecfd2
Bug 1892551 - Part 6: Remove now-unused attributes and methods from nsISHEntry. r=farre,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D212463
2026-03-18 17:26:25 +00:00
Adam Vandolder
387517ad2c
Bug 1892551 - Part 5: Remove now-unnecessary usage of nsISHEntry. r=farre,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D210689
2026-03-18 17:26:22 +00:00
Adam Vandolder
54c55efac8
Bug 1892551 - Part 4: Remove nsSHEntry and nsSHEntryShared. r=farre,dom-core
...
Differential Revision: https://phabricator.services.mozilla.com/D208063
2026-03-18 17:26:20 +00:00
Adam Vandolder
dd7184fd48
Bug 1892551 - Part 2: Remove SessionHistoryInParent conditionals. r=dom-core,farre,core-sessionstore-reviewers,devtools-reviewers,nchevobbe
...
Differential Revision: https://phabricator.services.mozilla.com/D208061
2026-03-18 17:26:15 +00:00
Sylvestre Ledru
fac1dea193
Bug 2023419 - Remove Emacs/Vim modelines from docshell/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287842
2026-03-16 21:02:22 +00:00
Andreas Farre
c31ce474dc
Bug 2020364 - Part 3: Check if ongoing navigation is NavigationID. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D285988
2026-03-13 13:57:24 +00:00
Vincent Hilla
fb6d966ff2
Bug 2021482 - Update nsCSPContext::mSelfURI later for initial about:blank. r=tschuster
...
Differential Revision: https://phabricator.services.mozilla.com/D286934
2026-03-12 13:45:55 +00:00
Andreas Farre
c3ca18d2ae
Bug 1986879 - Implement #update-the-navigation-api-entries-for-reactivation. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D263743
2026-03-05 13:17:51 +00:00
Vincent Hilla
407a6239f5
Bug 2020300 - Force sync about:blank despite Document::mOnloadBlockCount. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D285563
2026-03-04 16:58:20 +00:00
Sandor Molnar
0b3df449de
Revert "Bug 2020364 - Part 4: Check if ongoing navigation is NavigationID. r=dom-core,smaug" for causing wpt failures.
...
This reverts commit 661e1afdb0 .
Revert "Bug 2020364 - Part 3: Fix #commit-a-navigate-event. r=dom-core,smaug"
This reverts commit 545875b149 .
Revert "Bug 2020364 - Part 2: Move NavigationWaitForAllScope. r=dom-core,smaug"
This reverts commit a4116b1cfb .
Revert "Bug 2020364 - Part 1: Rename method tracker to navigation tracker. r=dom-core,jjaschke"
This reverts commit 7e59786d3d .
2026-03-04 16:45:54 +00:00
Andreas Farre
661e1afdb0
Bug 2020364 - Part 4: Check if ongoing navigation is NavigationID. r=dom-core,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D285988
2026-03-04 14:13:31 +00:00
Andreas Farre
7e59786d3d
Bug 2020364 - Part 1: Rename method tracker to navigation tracker. r=dom-core,jjaschke
...
Differential Revision: https://phabricator.services.mozilla.com/D285523
2026-03-04 14:13:22 +00:00
Sandor Molnar
db86d43b9c
Revert "Bug 2020364 - Part 3: Fix #commit-a-navigate-event. r=dom-core,smaug" for causing assertion failures @ Navigation.cpp
...
This reverts commit 0a0404c0db .
Revert "Bug 2020364 - Part 2: Move NavigationWaitForAllScope. r=dom-core,smaug"
This reverts commit 83f1bc2194 .
Revert "Bug 2020364 - Part 1: Rename method tracker to navigation tracker. r=dom-core,jjaschke"
This reverts commit 6e3656e6e2 .
2026-03-04 11:45:02 +00:00
Andreas Farre
6e3656e6e2
Bug 2020364 - Part 1: Rename method tracker to navigation tracker. r=dom-core,jjaschke
...
Differential Revision: https://phabricator.services.mozilla.com/D285523
2026-03-04 10:51:46 +00:00
Adam Vandolder
b44ff9da24
Bug 2015811 - Enqueue hashchange before dispatching popstate for same-document navigations. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D283816
2026-03-03 00:48:57 +00:00