Commit Graph
184 Commits
Author SHA1 Message Date
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 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
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
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 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
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 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
serge-sans-paille 9db08d3f52 Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D278766
2026-01-22 17:49:59 +00:00
pstanciu bc297a68a0 Revert "Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato" for causing build bustages @ CParserContext.h
This reverts commit afd052662d.
2026-01-21 16:23:10 +00:00
serge-sans-paille afd052662d Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato
Also remove security/manager/ssl/nsVerificationJob.h per request of
@keeler instead of changing its guard.

Differential Revision: https://phabricator.services.mozilla.com/D278766
2026-01-21 15:46:08 +00:00
Atila Butkovits f43210f622 Revert "Bug 1986879 - Implement #update-the-navigation-api-entries-for-reactivation. r=smaug" for causing reftest failures.
This reverts commit 28759ec172.
2025-12-03 21:42:35 +00:00
Andreas Farre 28759ec172 Bug 1986879 - Implement #update-the-navigation-api-entries-for-reactivation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D263743
2025-12-03 19:08:59 +00:00
Henri SivonenandVincent Hilla 39a8a4171b Bug 543435 - Make initial about:blank not get overwritten by an async about:blank load. r=sessionstore-reviewers,sfoster,timhuang,credential-management-reviewers,issammani,webidl,extension-reviewers,tabbrowser-reviewers,migration-reviewers,home-newtab-reviewers,hsivonen,cookie-reviewers,fxview-reviewers,firefox-desktop-core-reviewers ,dao,valentin,mossop,smaug,geckoview-reviewers,Jamie,mtigley,thecount,media-playback-reviewers,padenot,dom-worker-reviewers,jesup,jdescottes,asuth,robwu,karlt,profiler-reviewers,kpatenio,devtools-reviewers,tcampbell,nchevobbe
Co-authored-by: Vincent Hilla <[email protected]>
Signed-off-by: Vincent Hilla <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D155376
2025-11-24 05:34:22 +00:00
Valentin Gosu af26e0d427 Bug 1984105 - Disable Public to Private network LNA checks for Captive Portals r=sunil,necko-reviewers,tabbrowser-reviewers,sthompson
This patch adds a isCaptivePortalTab field to the browsingContext.
We still keep setting the LOAD_FLAGS_DISABLE_TRR loadFlags,
though we could probably move that to BrowsingContext eventually.

nsHttpChannel now automatically allows captive portal browsing contexts
to do public -> private loads without prompting.

Differential Revision: https://phabricator.services.mozilla.com/D267943
2025-10-24 13:04:03 +00:00
Jan-Niklas Jaeschke f1839c7ffa Bug 1995598 - Navigation API - Remove upcoming non-traverse API method tracker from the navigation object. r=smaug
Having this tracker as part of the navigation state led to
broken state when reentering a navigation by triggering
a new navigation from a `navigateerror` handler.

This patch removes the upcoming non-traverse API method tracker
from `Navigation` and passes it as argument, hereby following the spec.

Differential Revision: https://phabricator.services.mozilla.com/D269448
2025-10-22 09:14:29 +00:00
Adam Vandolder e1bb90b66f Bug 1966674 - Part 2: Add NavigationAPIState to DocShellLoadStateInit. r=dom-core,jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D268072
2025-10-14 15:15:58 +00:00
Andreas Farre f3e6a0d058 Bug 1991265 - Make push to replace load conversion follow spec. r=smaug,webdriver-reviewers
Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".

Differential Revision: https://phabricator.services.mozilla.com/D266519
2025-10-13 07:25:01 +00:00
Cristina Horotan 2b88ccd9ac Revert "Bug 1991265 - Make push to replace load conversion follow spec. r=smaug,webdriver-reviewers" for causing wpt failures on location-setter-user-mouseup.html
This reverts commit 310a6f3939.
2025-10-08 17:45:53 +00:00
Andreas Farre 310a6f3939 Bug 1991265 - Make push to replace load conversion follow spec. r=smaug,webdriver-reviewers
Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".

Differential Revision: https://phabricator.services.mozilla.com/D266519
2025-10-08 16:15:45 +00:00
Serban Stanca c8e38a7f68 Revert "Bug 1991265 - Make push to replace load conversion follow spec. r=smaug" for causing wpt failures.
This reverts commit 91a14bd037.
2025-10-03 11:27:03 +00:00
Andreas Farre 91a14bd037 Bug 1991265 - Make push to replace load conversion follow spec. r=smaug
Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".

Differential Revision: https://phabricator.services.mozilla.com/D266519
2025-10-03 07:51:56 +00:00
Alexandru Marc 07a3bf3fb5 Revert "Bug 1991265 - Make push to replace load conversion follow spec. r=smaug" for causing multiple failures
This reverts commit 9dd79a9a56.
2025-10-02 23:54:32 +00:00
Andreas Farre 9dd79a9a56 Bug 1991265 - Make push to replace load conversion follow spec. r=smaug
Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".

Differential Revision: https://phabricator.services.mozilla.com/D266519
2025-10-02 22:36:01 +00:00
kycn 18b95b52bd Bug 1982622 - Propagate the app link launch type to the page load path. r=geckoview-reviewers,android-reviewers,geckoview-api-reviewers,owlish,tcampbell,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D261338
2025-09-17 14:10:11 +00:00
Andreas Farre 719cb70bf9 Bug 1985711 - Force navigation.navigate() to not be a replace load. r=jjaschke
When handling subframe history we will change push loads to be replace
loads while executing an onload handler. This shouldn't happen for
navigation.navigate().

Differential Revision: https://phabricator.services.mozilla.com/D262892
2025-08-28 12:38:00 +00:00
Atila Butkovits db7dd214e0 Revert "Bug 1985711 - Force navigation.navigate() to not be a replace load. r=jjaschke" for causing failures at nsDocShellLoadState.cpp.
This reverts commit fd99e98623.
2025-08-28 08:45:43 +00:00
Andreas Farre fd99e98623 Bug 1985711 - Force navigation.navigate() to not be a replace load. r=jjaschke
When handling subframe history we will change push loads to be replace
loads while executing an onload handler. This shouldn't happen for
navigation.navigate().

Differential Revision: https://phabricator.services.mozilla.com/D262892
2025-08-28 07:27:05 +00:00
Tom Schuster 5279fec432 Bug 1982032 - Add LoadURIOption to force loading as a MediaDocument r=necko-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D260472
2025-08-25 14:00:23 +00:00
serge-sans-paille d7a9e68846 Bug 1973598 - Move from UniquePtr to std::unique_ptr r=glandium
std::unique_ptr and UniquePtr have very similar interfaces, but the
latter is a standard container and it turns out it leads to slightly
denser code:

This saves around 50kB on a stripped libxul, with a very nice diff:

        61 insertions(+), 318 deletions(-)

It currently uses a type alias to avoid major rewrite.

Changes implied by this move:

- some inner types use different naming convention
- some definition are no longer found through ADL (because we switch
  from mozilla to std namespace)
- ContentParentKeepAliveDeleter no longer have a nasty implicit
  dependency on UniquePtr setting the managed pointer to null before
  being called.
- No type guide because we use a template alias
- extra wildcard added for unique_ptr subnamespace in layout/style/ServoBindings.toml

Differential Revision: https://phabricator.services.mozilla.com/D255423
2025-07-11 21:46:10 +00:00
Sandor Molnar 550b744ab5 Revert "Bug 1973598 - Move from UniquePtr to std::unique_ptr r=glandium" for causing linux snap failures
This reverts commit cfc5c721b4.
2025-07-11 16:27:26 +00:00
serge-sans-paille cfc5c721b4 Bug 1973598 - Move from UniquePtr to std::unique_ptr r=glandium
std::unique_ptr and UniquePtr have very similar interfaces, but the
latter is a standard container and it turns out it leads to slightly
denser code:

This saves around 50kB on a stripped libxul, with a very nice diff:

        61 insertions(+), 318 deletions(-)

It currently uses a type alias to avoid major rewrite.

Changes implied by this move:

- some inner types use different naming convention
- some definition are no longer found through ADL (because we switch
  from mozilla to std namespace)
- ContentParentKeepAliveDeleter no longer have a nasty implicit
  dependency on UniquePtr setting the managed pointer to null before
  being called.
- No type guide because we use a template alias
- extra wildcard added for unique_ptr subnamespace in layout/style/ServoBindings.toml

Differential Revision: https://phabricator.services.mozilla.com/D255423
2025-07-11 12:48:44 +00:00
Fatih Kilic eed44c4862 Bug 1968607 - Part 1: Replace CSP with PolicyContainer. r=tschuster,webidl,smaug
We are making changes to many files. Very huge chunk of the changes are just renaming CSP -> PolicyContainer. Part 1 and part 2 are solely separated as frontend and backend. The unfortunate thing is, I mistakenly placed IDL changes in part 1, and many of those IDL changes affect frontend code too. I'm sorry for this inconvinience and hard to review patch(es).

(FWIW before this rewrite we had another patch stack. It is 25 patches and I believe isn't as comprehensive as this one. It also didn't replace CSP's inheritance but was copied alongside with CSP, but we decided to change our method and make policy conttainer contain CSP and copy it around after some discussion and reviews)

Differential Revision: https://phabricator.services.mozilla.com/D249248
2025-07-11 05:39:17 +00:00
Serban Stanca aeaf2921f1 Revert "Bug 1973598 - Move from UniquePtr to std::unique_ptr r=glandium" for causing multiple failures.
This reverts commit 1e2cc74d1d.

This reverts commit 2dfdcb108a.
2025-07-10 14:17:13 +00:00
serge-sans-paille 1e2cc74d1d Bug 1973598 - Move from UniquePtr to std::unique_ptr r=glandium
std::unique_ptr and UniquePtr have very similar interfaces, but the
latter is a standard container and it turns out it leads to slightly
denser code:

This saves around 50kB on a stripped libxul, with a very nice diff:

        61 insertions(+), 318 deletions(-)

It currently uses a type alias to avoid major rewrite.

Changes implied by this move:

- some inner types use different naming convention
- some definition are no longer found through ADL (because we switch
  from mozilla to std namespace)
- ContentParentKeepAliveDeleter no longer have a nasty implicit
  dependency on UniquePtr setting the managed pointer to null before
  being called.
- No type guide because we use a template alias

Differential Revision: https://phabricator.services.mozilla.com/D255423
2025-07-10 12:31:39 +00:00
Tim Huang 464ccfa020 Bug 1968644 - Part 4: Populate triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for loads. r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D252445
2025-06-17 20:28:18 +00:00
agoloman a48b34690b Revert "Bug 1968644 - Part 10: Store JSCallingLocation and set the JSCallingLocation fallback for Media loads. r=emilio" for causing valgrid failures.
This reverts commit efd9a5ba48.

Revert "Bug 1968644 - Part 9: Add more tests for loads triggered by tracking scripts. r=valentin,anti-tracking-reviewers,emz"

This reverts commit 7d5c3e1c1c.

Revert "Bug 1968644 - Part 8: Populate the triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for WebSocket requests. r=valentin,necko-reviewers"

This reverts commit 53a783a51e.

Revert "Bug 1968644 - Part 7: Add tests. r=necko-reviewers,anti-tracking-reviewers,emz,valentin"

This reverts commit e52f034955.

Revert "Bug 1968644 - Part 6: Populate triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags during channel creation. r=necko-reviewers,kershaw"

This reverts commit f564c21b37.

Revert "Bug 1968644 - Part 5: Populate triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for CSS loads. r=emilio"

This reverts commit 8a8fd7bacc.

Revert "Bug 1968644 - Part 4: Populate triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for loads. r=smaug,necko-reviewers"

This reverts commit 7b3ba3b668.

Revert "Bug 1968644 - Part 3: Populate the triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for fetch requests. r=valentin,smaug"

This reverts commit 08f090244f.

Revert "Bug 1968644 - Part 2: Intorduce the ClassificationFlags to nsIClassifiedChannel.idl. r=dimi,necko-reviewers,valentin"

This reverts commit b8c01cd77c.

Revert "Bug 1968644 - Part 1: Introduce triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags to LoadInfo. r=necko-reviewers,kershaw"

This reverts commit a7619a72b4.
2025-06-17 14:27:29 +00:00
Tim Huang 7b3ba3b668 Bug 1968644 - Part 4: Populate triggeringFirstPartyClassificationFlags and triggeringThirdPartyClassificationFlags for loads. r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D252445
2025-06-17 09:24:42 +00:00
Andreas Farre e10114d313 Bug 1962710 - Part 3: Fire NavigateEvent for regular navigations. r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249242
2025-05-19 09:03:54 +00:00
Andreas Farre d2e41c93c1 Bug 1962710 - Part 2: Fire NavigateEvent for same document navigation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D249241
2025-05-19 09:03:50 +00:00
Andreas Farre 51b4a22fa0 Bug 1962710 - Part 1: Add source element to load state. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D249240
2025-05-19 09:03:46 +00:00
Jan-Niklas Jaeschke 70a6aebbb9 Bug 1942630, part 2 - Navigation API: Implement user navigation involvement in nsDocShellLoadState and nsILoadInfo. r=farre,necko-reviewers,kershaw
This patch introduces `UserNavigationInvolvement`
as an IPDL type, and adds the user navigation
involvement flag to `nsDocShellLoadState` and
`nsILoadInfo`.

Differential Revision: https://phabricator.services.mozilla.com/D234851
2025-01-21 09:19:56 +00:00
Andreas Farre 1a726db7f6 Bug 1931418 - Reduce the amount of recursion checks. r=dom-core,sefeng
Modify the frame recursion check to only happen when a load is triggered
from a src or data attribute (depending on if it's an iframe, embed or
an object element). This prevents recursion checks from blocking
ordinary navigations and navigations with a target.

Differential Revision: https://phabricator.services.mozilla.com/D229503
2024-11-20 12:11:46 +00:00
Simon Friedberger 4fcd691190 Bug 1919544 - Do not HTTPS-First upgrade URLs with http:// scheme r=mak,necko-reviewers,urlbar-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228588
2024-11-13 17:15:57 +00:00
Sandor Molnar 9e0c14a80e Backed out changeset c4dfee1f9194 (bug 1919544) for causing bc failures @ browser_UrlbarInput_formatValue.js CLOSED TREE 2024-11-13 15:20:39 +02:00
Simon Friedberger 8eafd874fe Bug 1919544 - Do not HTTPS-First upgrade URLs with http:// scheme r=mak,necko-reviewers,urlbar-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228588
2024-11-13 11:44:43 +00:00
Peter Van der Beken 94b09a989c Bug 1920960 - Simplify nsDocShellLoadState::CalculateChannelLoadFlags argument. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D223499
2024-10-02 12:26:40 +00:00
Christoph Kerschbaumer 3063e2ccd1 Bug 1907590: Improve labels for https telemetry, r=freddyb,kershaw,necko-reviewers,maltejur
Differential Revision: https://phabricator.services.mozilla.com/D216675
2024-07-17 15:29:24 +00:00
Jan-Niklas Jaeschke 04c0ffe9aa Bug 1888756, part 1 - Text Fragments: Introduce textDirectiveUserActivation flag. r=edgar,dom-core
This commit is a prerequisite for part 5 of this patch set
and introduces the `text directive user activation` flag
as well as the necessary boilerplate to transport the value
through process boundaries in `nsDocShellLoadState` and `LoadInfo`.

There is no changed behavior in this commit.

Differential Revision: https://phabricator.services.mozilla.com/D212816
2024-06-26 14:24:31 +00:00