Commit Graph

9694 Commits

Author SHA1 Message Date
Nika Layzell
7bfb0e8915 Bug 1971140 - Improve Content-Disposition: attachment handling for object/embed, r=smaug a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D253075
2025-06-12 21:45:19 +00:00
Joel Maher
7e69b821f2 Bug 1967293 - Update mochitest manifest annotations to support Ubuntu 24.04. r=aryx,webcompat-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,profiler-reviewers,dom-storage-reviewers,twisniewski,asuth,accessibility-frontend-reviewers,julienw,dimi,morgan,mconley,ochameau,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D250070
2025-05-23 20:13:29 +00:00
Emilio Cobos Álvarez
3991276944 Bug 1966666 - Remove no longer needed flatpak workaround. r=mak
Newer portals support asking for a protocol.

Differential Revision: https://phabricator.services.mozilla.com/D249574
2025-05-23 10:38:05 +00:00
smayya
7e95e529ce Bug 1948222 - Add IPAddressSpace settings in BrowsingContext. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D238498
2025-05-22 11:13:51 +00:00
Alexandru Marc
2b5b645133 Revert "Bug 1966658 - Populate the partitionedPrincipal to the SessionHistoryEntry in the parent process. r=smaug,sessionstore-reviewers,core-sessionstore-reviewers,farre"
This reverts commit 52c31c4da0.
2025-05-22 07:21:13 +00:00
Mike Hommey
c9818c67e7 Bug 1966547 - Remove unnecessary virtual specifiers. r=nika,necko-reviewers,media-playback-reviewers,permissions-reviewers,timhuang,kershaw,padenot
clang 21 now warns about them.

Differential Revision: https://phabricator.services.mozilla.com/D249517
2025-05-22 05:47:21 +00:00
Tim Huang
52c31c4da0 Bug 1966658 - Populate the partitionedPrincipal to the SessionHistoryEntry in the parent process. r=smaug,sessionstore-reviewers,core-sessionstore-reviewers,farre
In this patch, we populate the partitionedPrincipal when we commit
SessionHistory to the parent process. In addition, we remove the
serialization and deserialization of partitionedPrincipalToInherit in
sessionHistory.

Differential Revision: https://phabricator.services.mozilla.com/D250263
2025-05-22 02:06:53 +00:00
Norisz Fay
e7817cd3fd Revert "Bug 1960582 - Add LNA telemetry. r=necko-reviewers,valentin" for causing xpcshell failures at test_ip_address_space_lna_glean.js
This reverts commit 31781d2656.

Revert "Bug 1944556 - update IpAddressSpace for browsingContexts. r=necko-reviewers,valentin"

This reverts commit 3456e8ce81.

Revert "Bug 1960474 - Add tests for LNA Utilities. r=necko-reviewers,valentin"

This reverts commit 0c32ebb65d.

Revert "Bug 1960474 - Add LNA utility functions. r=necko-reviewers,valentin"

This reverts commit d451da6219.

Revert "Bug 1948222 - Add IpAddressSpace and ParentIpAddressSpace members in LoadInfo. r=necko-reviewers,valentin"

This reverts commit 8bcd4900c4.

Revert "Bug 1948222 - Add IPAddressSpace settings in BrowsingContext. r=necko-reviewers,valentin"

This reverts commit 2079ccb988.

Revert "Bug 1948222 - update nsILoadInfo.idl to add IPAddressSpace attribute. r=necko-reviewers,valentin"

This reverts commit 9126ee396c.
2025-05-21 23:35:37 +00:00
smayya
2079ccb988 Bug 1948222 - Add IPAddressSpace settings in BrowsingContext. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D238498
2025-05-21 21:03:41 +00:00
Tom Schuster
3f48655456 Bug 1967417 - Create a fallible LoadInfo factory. r=smaug,necko-reviewers,places-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D250182
2025-05-21 15:21:52 +00:00
Serban Stanca
071240c3d9 Revert "Bug 1967417 - Create a fallible LoadInfo factory. r=smaug,necko-reviewers,places-reviewers,kershaw" for causing multiple failures.
This reverts commit b9a9491a35.
2025-05-21 13:34:54 +00:00
Tom Schuster
b9a9491a35 Bug 1967417 - Create a fallible LoadInfo factory. r=smaug,necko-reviewers,places-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D250182
2025-05-21 12:24:10 +00:00
Frederik Braun
f871c05210 Bug 1867137 - Only save CSP in SHEntry when required r=tschuster
Differential Revision: https://phabricator.services.mozilla.com/D248730
2025-05-20 09:56:09 +00:00
Norisz Fay
cad5b74511 Revert "Bug 1966666 - Remove no longer needed flatpak workaround. r=mak" for causing xpcshell failure on test_URIFixup.js
This reverts commit e672b371da.
2025-05-19 10:57:31 +00:00
Emilio Cobos Álvarez
e672b371da Bug 1966666 - Remove no longer needed flatpak workaround. r=mak
Newer portals support asking for a protocol.

Differential Revision: https://phabricator.services.mozilla.com/D249574
2025-05-19 10:03:03 +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
Sylvestre Ledru
8ae54ea4f9 Bug 1519636 - Reformat recent changes to the Google coding style r=geckoview-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,nalexander,gstoll,tcampbell,janv,julienw
Updated with clang-format version 19.1.7 (taskcluster-DYvBxDZJRVqTi8E7pTSJAQ)

Differential Revision: https://phabricator.services.mozilla.com/D249880
2025-05-17 19:11:13 +00:00
Mark Banner
8a3c99b9cb Bug 1966662 - Migrate most of toolkit/components/search to moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D249563
2025-05-17 17:38:49 +00:00
Andreas Farre
b81eda9a8a Bug 1966349 - Make sure NavigateEvent is initialized correctly. r=jjaschke
Make sure the  properties downloadRequest and userInitiated get their
correct values.

Differential Revision: https://phabricator.services.mozilla.com/D249243
2025-05-14 15:39:26 +00:00
Keith Cirkel
a023f401f8 Bug 1947188 - Update "Last History Activation" across all documents r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D246234
2025-05-12 17:10:49 +00:00
serge-sans-paille
bf3516e81e Bug 1964489 - Avoid duplication in NS_DECLARE_STATIC_IID_ACCESSOR / NS_DEFINE_STATIC_IID_ACCESSOR r=nika,necko-reviewers,media-playback-reviewers,places-reviewers,win-reviewers,dom-storage-reviewers,xpcom-reviewers,gstoll,janv,emilio,padenot,valentin,asuth
In modern C++, static constexpr member variables are automatically
inline (aka weak) so the template trick is not needed. This also avoid
duplication and reduces the amount of parsed code. No impact on
generated binary (actually: smaller debuginfo, close to identical
binary).

Differential Revision: https://phabricator.services.mozilla.com/D247825
2025-05-08 08:05:51 +00:00
Andreas Farre
ff18eb8060 Bug 1964951 - Implement #inform-the-navigation-api-about-aborting-navigation. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D248259
2025-05-07 15:45:01 +00:00
Andreas Farre
6ab0d18691 Bug 1964955 - Make sure NavigateEvent.intercept can execute. r=smaug
Intercept was prevented by four things:

1) the return value of FirePushReplaceReloadNavigateEvent for
   pushState was used inverted.
2) the event was created untrusted
3) the wrong flag was being checked to see if the event was in the
   process of being dispatched.
4) wrong uri equality method was used.

Differential Revision: https://phabricator.services.mozilla.com/D248222
2025-05-07 15:01:28 +00:00
Andreas Farre
d72145c63c Bug 1964671 - Fire download request navigate event. r=smaug
Download request navigate events are fired from
turn is called e.g from the activation behavior of a and area elements
in the case of a download attribute being present.

Also split nsContentUtils::TriggerLink into separate click and
mouse-over cases.

Differential Revision: https://phabricator.services.mozilla.com/D247903
2025-05-07 11:14:19 +00:00
Olli Pettay
5314cbddce Bug 1964782 - Restore loadType only when doing a page load, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D248108
2025-05-07 10:43:59 +00:00
Alexandra Borovova
e4fed060be Bug 1964063 - Try to reset a geolocation override only if it was set before. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D247601
2025-05-05 20:25:32 +00:00
Jan-Niklas Jaeschke
219b770510 Bug 1959959 - Navigation API: Implement navigation.reload(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D246587
2025-04-28 16:39:03 +00:00
Goloman Adrian
e16c16647c Backed out changeset f9641a70d2d6 (bug 1959959) for causing build bustages @nsDocShell.cpp. CLOSED TREE 2025-04-28 17:45:09 +03:00
Vincent Hilla
7f27d00f15 Bug 1962976 - Cancel lazy loading already in InternalLoad. r=sefeng,dom-core
According to the spec, canceling lazy loading should happen before
navigating to a fragment. If we cancel lazy loading in DoURILoad,
we won't cancel for same document navigation.

To my knowledge, this hasn't been an issue. But with sync-about-blank,
this would break wpt iframe-loading-lazy-nav-link-click-fragment.html.

Differential Revision: https://phabricator.services.mozilla.com/D234665
2025-04-28 14:25:52 +00:00
Jan-Niklas Jaeschke
d2f7141faf Bug 1959959 - Navigation API: Implement navigation.reload(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D246587
2025-04-28 13:58:38 +00:00
Alexandra Borovova
5374867f8e Bug 1962205 - Move locators insted of running two geolocation services at a time. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D246564
2025-04-28 08:15:10 +00:00
Jonathan Almeida
a41c51ac84 Bug 1962312 - Make about:home load about:blank on GeckoView r=nalexander,gl,mconley
Today, if we try to load `about:home`, we get a load error because it is
not a valid about page.

For an embedder to have `about:home` in the back-forward history, we
need to allow the request to load successfully. That means that we need
to let it, at minimum, do nothing - for this, we just load
`about:blank`.

Should this be behind a pref or GeckoRuntimeSetting?
Our only prior art is `about:config` which controls Gecko functionality.
This is a feature that has valid use cases for controlling behind a
pref, whereas `about:home` does nothing similar to `about:blank` which
does not have a pref.

Differential Revision: https://phabricator.services.mozilla.com/D246543
2025-04-24 22:37:33 +00:00
Joel Maher
397e8ec3f4 Bug 1961608 - Green up macosx 15.30. r=aryx,necko-reviewers,extension-reviewers,media-playback-reviewers,credential-management-reviewers,sync-reviewers,anti-tracking-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,profiles-reviewers,pdahiya,alwu,jhirsch,mtigley,skhamis,timhuang,valentin,robwu,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D246100
2025-04-22 18:12:28 +00:00
Vincent Hilla
e7e22edc70 Bug 1959610 - Align CloseOuter with #script-closable session history check. r=smaug
Since https://github.com/whatwg/html/pull/6315, script-closable checks for a
history length of one, instead of the session history containing only one
document.

This commit also adds a wpt to test that windows opened by links and forms
count as `created by a script`.

Differential Revision: https://phabricator.services.mozilla.com/D245035
2025-04-22 09:34:17 +00:00
Emilio Cobos Álvarez
d5afc090b9 Bug 1960602 - Keep skipping the test in http3 because there's another subtest that still fails.
MANUAL PUSH: Orange fix CLOSED TREE
2025-04-17 19:10:57 +02:00
Emilio Cobos Álvarez
74e1e68e7d Bug 1960602 - Restore condition in test_blockBFCache to fix some android orange.
It's not clear why this wouldn't work with isolatehighvalue now, but I'm
not making things worse...

MANUAL PUSH: Orange fix CLOSED TREE
2025-04-17 15:11:29 +02:00
Emilio Cobos Álvarez
4d8cd3814a Bug 1960602 - More explicitly block bfcache when a subframe is loading. r=smaug
The test now passes with http2/http3 (where it didn't use to because the
frame was not OOP in that case).

Differential Revision: https://phabricator.services.mozilla.com/D245741
2025-04-17 11:37:08 +00:00
Cristina Horotan
88a5aa3f07 Merge autoland to mozilla-central a=merge 2025-04-17 07:10:50 +03:00
Keith Cirkel
f583e68c6e Bug 1960938 - rename mUserGestureStart to mLastActivationTimestamp & add comments r=dom-core,jjaschke
This brings our implementation closer to the verbage in the spec, which
changed user gesture start to last activation timestamp.

This also adds comments to various parts of WindowContext which interact
with mLastActivationTimestamp nee mUserGestureStart, pointing to the
various parts of the spec which describe this functionality, making it
easier to follow (and giving us SpecMonkey references).

Differential Revision: https://phabricator.services.mozilla.com/D245758
2025-04-16 15:45:55 +00:00
Andreas Farre
3c95e7d828 Bug 1948596 - Implement #can-have-its-url-rewritten. r=dom-core,edgar
This extracts common code from nsDocShell::AddState.

Differential Revision: https://phabricator.services.mozilla.com/D243069
2025-04-14 14:07:15 +00:00
Cristina Horotan
f37d6e55d5 Backed out changeset 24d97a7de216 (bug 1948596) for causing wpt failures at /the-history-interface/002.html. CLOSED TREE 2025-04-14 13:28:31 +03:00
Andreas Farre
1fb4036d4b Bug 1948596 - Implement #can-have-its-url-rewritten. r=dom-core,edgar
This extracts common code from nsDocShell::AddState.

Differential Revision: https://phabricator.services.mozilla.com/D243069
2025-04-14 09:12:44 +00:00
Rob Wu
62248a8bcc Bug 1953004 - Run test-manifest-toml --fix on all toml files in the trees r=credential-management-reviewers,places-reviewers,desktop-theme-reviewers,Standard8,devtools-reviewers,hjones,jmaher,jdescottes,dimi,necko-reviewers,sidebar-reviewers,jsudiaman,kershaw
This diff was generated as follows:

List all toml files in the tree:

`find * -name '*.toml' > /tmp/toml`

Manually edited /tmp/toml to drop non-relevant entries (objdir).

Ran the toml linter for all files:

`cat /tmp/toml | xargs ./mach lint -l test-manifest-toml --fix`

Differential Revision: https://phabricator.services.mozilla.com/D240948
2025-04-14 08:30:13 +00:00
Cristina Horotan
1459daa033 Backed out changeset f1c03bf6c308 (bug 1948596) for causing wpt failures at the-history-interface/001.html CLOSED TREE 2025-04-11 23:15:55 +03:00
Nika Layzell
41886eb16a Bug 1954597 - Part 2: Refactor ValidatePrincipal to allow the logic to be used from a content process, r=smaug
This involved moving the logic into ProcessIsolation.cpp, closer to the rest of
the process selection logic. The existing method is preserved, to be used as a
convenience for callers.

As the new logic is closer to the rest of the process selection logic, this
also simplifies the remote type parsing logic to perform direct string compares
against the remoteType's site-origin. If origin keying of processes is added in
the future, this will likely need to be updated to handle that case.

Differential Revision: https://phabricator.services.mozilla.com/D241879
2025-04-11 16:51:11 +00:00
Andreas Farre
18f354fae7 Bug 1948596 - Implement #can-have-its-url-rewritten. r=dom-core,edgar
This extracts common code from nsDocShell::AddState.

Differential Revision: https://phabricator.services.mozilla.com/D243069
2025-04-11 15:59:27 +00:00
Stanca Serban
1e6954ca78 Backed out changeset 7f838c1e8e78 (bug 1948596) for causing multiple mochitests failures. CLOSED TREE 2025-04-11 10:24:03 +03:00
Andreas Farre
1de8bc2025 Bug 1948596 - Implement #can-have-its-url-rewritten. r=dom-core,edgar
This extracts common code from nsDocShell::AddState.

Differential Revision: https://phabricator.services.mozilla.com/D243069
2025-04-11 06:26:26 +00:00