Commit Graph
246 Commits
Author SHA1 Message Date
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
Nika Layzell c7233601c6 Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu
This patch is to remove the ClonedMessageData type which is currently
frequently used for sending a StructuredCloneData over IPC manually. Instead,
under the new approach, the StructuredCloneData is transferred directly using
its serializer.

This allows for simplification of various types across the codebase which
previously needed complex handling for this manual {de-}serialization step,
especially around keeping the borrowed-from buffers alive in some cases.

As part of this, the type has also been changed to be a threadsafe refcounted
object. This is in part possible due to earlier parts, which have made it safe
to Read() from the same StructuredCloneData object concurrently from multiple
threads (so long as it does not support transferrables).

The underlying data storage within StructuredCloneData was previously already
reference counted (due to SharedJSAllocatedData).

In addition to StructuredCloneData, other data structures (e.g.
nsStructuredCloneContainer and SharedMessageBody) have also been updated to be
serialized directly, avoiding now-unnecessary intermediate objects.

Differential Revision: https://phabricator.services.mozilla.com/D281115
2026-02-12 02:43:41 +00:00
Cristina Horotan 3e788840d2 Revert "Bug 2013389 - Part 12: Restore eager serialization of InputStream, r=asuth" for causing Hazard failure on StructuredCloneHolder.cpp
This reverts commit 72c32e25bf.

Revert "Bug 2013389 - Part 11: Make attachment arrays more consistent in StructuredCloneHolder, r=asuth"

This reverts commit c0912428c7.

Revert "Bug 2013389 - Part 10: Fix version tracking in nsStructuredCloneContainer, r=asuth,extension-reviewers,spidermonkey-reviewers,sfink,robwu"

This reverts commit f2e9691831.

Revert "Bug 2013389 - Part 9: Remove the now-unused ReadFromBuffer method, r=asuth"

This reverts commit 6eb034458e.

Revert "Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu"

This reverts commit 4dd6f1d6ea.

Revert "Bug 2013389 - Part 7: Only deserialize once in nsFrameMessageManager, r=asuth"

This reverts commit 65d16af619.

Revert "Bug 2013389 - Part 6: Remove weak listener support from MessageManager, r=smaug"

This reverts commit 66f4b308a0.

Revert "Bug 2013389 - Part 5: Broadcasting MessageManagers cannot support transferrables, r=asuth"

This reverts commit e95e1a5a6c.

Revert "Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers"

This reverts commit ae78c69357.

Revert "Bug 2013389 - Part 3: Remove aGlobal argument from StructuredCloneHolder::Read, r=asuth,dom-worker-reviewers"

This reverts commit 066bd37bfd.

Revert "Bug 2013389 - Part 2: Stop tracking mGlobal within StructuredCloneHolder::Read, r=asuth"

This reverts commit 6b4f3a43c0.

Revert "Bug 2013389 - Part 1: Add an Adopt API to StructuredCloneHolder, r=asuth"

This reverts commit 8624db71c2.
2026-02-10 20:11:41 +00:00
Nika Layzell 4dd6f1d6ea Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu
This patch is to remove the ClonedMessageData type which is currently
frequently used for sending a StructuredCloneData over IPC manually. Instead,
under the new approach, the StructuredCloneData is transferred directly using
its serializer.

This allows for simplification of various types across the codebase which
previously needed complex handling for this manual {de-}serialization step,
especially around keeping the borrowed-from buffers alive in some cases.

As part of this, the type has also been changed to be a threadsafe refcounted
object. This is in part possible due to earlier parts, which have made it safe
to Read() from the same StructuredCloneData object concurrently from multiple
threads (so long as it does not support transferrables).

The underlying data storage within StructuredCloneData was previously already
reference counted (due to SharedJSAllocatedData).

In addition to StructuredCloneData, other data structures (e.g.
nsStructuredCloneContainer and SharedMessageBody) have also been updated to be
serialized directly, avoiding now-unnecessary intermediate objects.

Differential Revision: https://phabricator.services.mozilla.com/D281115
2026-02-09 21:23:37 +00:00
Cristina Horotan c262421c6d Revert "Bug 2013389 - Part 11: Make attachment arrays more consistent in StructuredCloneHolder, r=asuth" for causing build bustages at MessageManagerFuzzer.cpp
This reverts commit 5c5cf7465b.

Revert "Bug 2013389 - Part 10: Fix version tracking in nsStructuredCloneContainer, r=asuth,extension-reviewers,spidermonkey-reviewers,sfink,robwu"

This reverts commit c87a327d86.

Revert "Bug 2013389 - Part 9: Remove the now-unused ReadFromBuffer method, r=asuth"

This reverts commit 5adf49e5d8.

Revert "Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu"

This reverts commit f6d12563fe.

Revert "Bug 2013389 - Part 7: Only deserialize once in nsFrameMessageManager, r=asuth"

This reverts commit 44c1325d76.

Revert "Bug 2013389 - Part 6: Remove weak listener support from MessageManager, r=smaug"

This reverts commit 1d1b495c91.

Revert "Bug 2013389 - Part 5: Broadcasting MessageManagers cannot support transferrables, r=asuth"

This reverts commit e2eb75ff8f.

Revert "Bug 2013389 - Part 4: Avoid depending on mErrorMessage when deserializing StructuredCloneHolder, r=asuth,dom-worker-reviewers"

This reverts commit d9a234ad7b.

Revert "Bug 2013389 - Part 3: Remove aGlobal argument from StructuredCloneHolder::Read, r=asuth,dom-worker-reviewers"

This reverts commit 48279cea50.

Revert "Bug 2013389 - Part 2: Stop tracking mGlobal within StructuredCloneHolder::Read, r=asuth"

This reverts commit 27162e5046.

Revert "Bug 2013389 - Part 1: Add an Adopt API to StructuredCloneHolder, r=asuth"

This reverts commit e3a9f32716.
2026-02-05 22:11:47 +00:00
Nika Layzell f6d12563fe Bug 2013389 - Part 8: Avoid the unnecessary ClonedMessageData intermediate, r=asuth,mccr8,extension-reviewers,dom-worker-reviewers,robwu
This patch is to remove the ClonedMessageData type which is currently
frequently used for sending a StructuredCloneData over IPC manually. Instead,
under the new approach, the StructuredCloneData is transferred directly using
its serializer.

This allows for simplification of various types across the codebase which
previously needed complex handling for this manual {de-}serialization step,
especially around keeping the borrowed-from buffers alive in some cases.

As part of this, the type has also been changed to be a threadsafe refcounted
object. This is in part possible due to earlier parts, which have made it safe
to Read() from the same StructuredCloneData object concurrently from multiple
threads (so long as it does not support transferrables).

The underlying data storage within StructuredCloneData was previously already
reference counted (due to SharedJSAllocatedData).

In addition to StructuredCloneData, other data structures (e.g.
nsStructuredCloneContainer and SharedMessageBody) have also been updated to be
serialized directly, avoiding now-unnecessary intermediate objects.

Differential Revision: https://phabricator.services.mozilla.com/D281115
2026-02-05 21:25:52 +00:00
Andreas Farre 851bdfa462 Bug 2005571 - Make sure to always set mTriggeringNavigationType. r=smaug,avandolder
Differential Revision: https://phabricator.services.mozilla.com/D276030
2025-12-18 07:55:11 +00:00
Alexandru Marc 7e5bff128a Revert "Bug 2005571 - Make sure to always set mTriggeringNavigationType. r=smaug,avandolder" for causing mass failures @ CanonicalBrowsingContext.cpp
This reverts commit c0d9d01c32.
2025-12-17 16:30:57 +00:00
Andreas Farre c0d9d01c32 Bug 2005571 - Make sure to always set mTriggeringNavigationType. r=smaug,avandolder
Differential Revision: https://phabricator.services.mozilla.com/D276030
2025-12-17 15:41:19 +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
Andreas Farre 8c62080bf9 Bug 1995693 - Make sure NotifiedBeforeUnloadListeners is sent over IPC. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D269547
2025-10-22 10:53:24 +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
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +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
Andreas Farre 5d26ed1b18 Bug 1990832 - Correctly handle "auto" history behavior. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D266314
2025-09-26 09:27:57 +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
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
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 b13e86d09c Bug 1971308 - Propagate FormData to NavigateEvent. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D253166
2025-06-10 14:40:44 +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
Florian Quèze b4b0d27e43 Bug 1935420 - Migrate histograms to use Glean APIs in toolkit/components/antitracking, r=chutten,anti-tracking-reviewers,firefox-desktop-core-reviewers ,emz,mossop.
Differential Revision: https://phabricator.services.mozilla.com/D234069
2025-01-27 13:42:15 +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