Commit Graph

9654 Commits

Author SHA1 Message Date
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
Andreas Farre
fd007f974f Bug 1949204 - Implement #abort-the-ongoing-navigation. r=dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D242954
2025-04-10 17:01:18 +00:00
Malte Jürgens
70681a65d0 Bug 1943577 - Consolidate IsHttpsOnlyModeEnabled and similar functions r=necko-reviewers,freddyb,simonf
Remove IsHttpsOnlyModeEnabled and IsHttpsFirstModeEnabled, and replace them with
GetUpgradeMode. With that, we are way more explicit about which mode is being
used right now, and have a clearer distinction between HTTPS-First and
schemeless HTTPS-First. We also eliminate the need to call
`loadInfo->GetOriginAttributes().IsPrivateBrowsing()` all the time.

Differential Revision: https://phabricator.services.mozilla.com/D233419
2025-04-09 16:47:50 +00:00
Cristina Horotan
88909b7d2a Backed out 4 changesets (bug 1948249, bug 1949204, bug 1897439, bug 1949499) for causign build bustage at NavigateEvent.h.
Backed out changeset 3d6f77552af3 (bug 1897439)
Backed out changeset a9843b92d309 (bug 1948249)
Backed out changeset cf1e6a0c7365 (bug 1949499)
Backed out changeset bd1a59a1dd98 (bug 1949204)
2025-04-09 18:22:09 +03:00
Joel Maher
b46dfdb253 Bug 1959284 - clean and sanitize caps|chrome|docshell|dom/**/xpcshell.toml. r=aryx,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D244838
2025-04-09 14:36:35 +00:00
Andreas Farre
145bb770c9 Bug 1949204 - Implement #abort-the-ongoing-navigation. r=dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D242954
2025-04-09 14:19:38 +00:00
Julien Wajsberg
a8b98564c8 Bug 1803607 - Move the about:logging code to its own subdirectory r=canaltinova,desktop-theme-reviewers,Itiel
This will make it possible to add some utilitary javascript files
without cluttering the main directory toolkit/content.
This also moves the CSS file to a location that ships to Android.

Differential Revision: https://phabricator.services.mozilla.com/D243363
2025-04-09 10:04:11 +00:00
Goloman Adrian
3c978e38e1 Backed out 2 changesets (bug 1943577) for causing xpc failures @test_trr.js. CLOSED TREE
Backed out changeset 419e96e0f9d4 (bug 1943577)
Backed out changeset 481ecd147fd0 (bug 1943577)
2025-04-08 18:26:30 +03:00
Alexandra Borovova
781ac7a332 Bug 1951962 - Add an API to BrowsingContext to override the geolocation. r=farre,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D242291
2025-04-08 12:58:33 +00:00
Malte Jürgens
e5437e476c Bug 1909681 - Remove mixed content exception button and permission r=freddyb,devtools-reviewers,nchevobbe
Rationale on this can be found in Bug 1909681.

Differential Revision: https://phabricator.services.mozilla.com/D237065
2025-04-08 12:53:40 +00:00
Malte Jürgens
f10f92c37d Bug 1943577 - Consolidate IsHttpsOnlyModeEnabled and similar functions r=necko-reviewers,freddyb,simonf
Remove IsHttpsOnlyModeEnabled and IsHttpsFirstModeEnabled, and replace them with
GetUpgradeMode. With that, we are way more explicit about which mode is being
used right now, and have a clearer distinction between HTTPS-First and
schemeless HTTPS-First. We also eliminate the need to call
`loadInfo->GetOriginAttributes().IsPrivateBrowsing()` all the time.

Differential Revision: https://phabricator.services.mozilla.com/D233419
2025-04-08 12:52:32 +00:00
Joel Maher
34dc8fc793 Bug 1957450 - cleanup chrome.toml files to remove old conditions and standardize remaining conditions. r=aryx,devtools-reviewers,fxview-reviewers,profiler-reviewers,omc-reviewers,migration-reviewers,backup-reviewers,julienw,nchevobbe,mconley,pdahiya,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D243709
2025-04-01 21:16:45 +00:00
kernp25
4d18975ff5 Bug 1945924 - Replace SchemeIsFoo functions with the inlined SchemeIs() call. r=valentin,emilio,necko-reviewers,geckoview-reviewers,anti-tracking-reviewers,core-sessionstore-reviewers,ohall,farre
No behavior change intended.

Differential Revision: https://phabricator.services.mozilla.com/D236756
2025-03-31 14:25:54 +00:00
Stanca Serban
bd48863fb7 Backed out 7 changesets (bug 1954597) for causing mochitests-plain failures. CLOSED TREE
Backed out changeset 0b09daddf739 (bug 1954597)
Backed out changeset 05d17ea7f2e2 (bug 1954597)
Backed out changeset 1307991fb492 (bug 1954597)
Backed out changeset 151b845bce94 (bug 1954597)
Backed out changeset 9a22e9141e79 (bug 1954597)
Backed out changeset c5dcd2282414 (bug 1954597)
Backed out changeset 7300dcf3e46f (bug 1954597)
2025-03-27 08:51:41 +02:00
Nika Layzell
ceafd2c43b 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-03-26 19:21:15 +00:00
Edgar Chen
c111b0a57c Bug 1934246 - Get rid of dom.popup.experimental; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D242688
2025-03-24 16:15:49 +00:00
Daniel Holbert
d721f3c911 Bug 1955476: Propagate css 'zoom' to iframe subdocuments, as a modifier to full-page-zoom. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242453
2025-03-21 20:57:52 +00:00
Cristian Tuns
92fa13ff53 Backed out changeset 49bf8451f876 (bug 1955476) for causing mochitest failures in test_zoom_restore_bfcache.html CLOSED TREE 2025-03-21 12:42:33 -04:00
Daniel Holbert
9549c54294 Bug 1955476: Propagate css 'zoom' to iframe subdocuments, as a modifier to full-page-zoom. r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242453
2025-03-21 14:26:37 +00:00
William Durand
ce3aefe1a7 Bug 1949695 - Make sure about:config is registered on Android. r=Gijs
In D240984, an attempt was made to re-enable `about:config` on Android
because it was removed by mistake.  That was done by reverting some
changes from D232785.

The intent was to keep `about:config` hidden in `about:about` on Android
but allow it to work unconditionally because GeckoView has a runtime
setting to control the presence/absence of this special page. I thought
not updating `components.conf` was precisely about that but that didn't
work in the end...

It is now clear to me that we should keep `'config'` in `components.conf`
and use a flag to hide the page in `about:about`. That's because this
config file is used at build time, therefore we always want `about:config`
available on Android, and it's up to the embedder to enable/disable it
with the runtime setting (that controls the `general.aboutConfig.enable`
pref under the hood).

Differential Revision: https://phabricator.services.mozilla.com/D242270
2025-03-20 09:49:16 +00:00
Andreas Farre
e6dd45c1ae Bug 1948254 - Part 4: Implement #navigate-event-firing. r=webidl,smaug,jjaschke
This includes:

* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event

which are all implemented in terms of #inner-navigate-event-firing-algorithm.

Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.

Differential Revision: https://phabricator.services.mozilla.com/D238786
2025-03-19 13:23:26 +00:00
Alexandru Marc
63b7a8e91a Backed out 4 changesets (bug 1948254) for causing hazard bustages @ Navigation.cpp CLOSED TREE
Backed out changeset 98ba043125fe (bug 1948254)
Backed out changeset 7061817d6823 (bug 1948254)
Backed out changeset 763b0331c48b (bug 1948254)
Backed out changeset de134481ec47 (bug 1948254)
2025-03-18 23:48:09 +02:00
Andreas Farre
a3594f5aec Bug 1948254 - Part 4: Implement #navigate-event-firing. r=webidl,smaug,jjaschke
This includes:

* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event

which are all implemented in terms of #inner-navigate-event-firing-algorithm.

Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.

Differential Revision: https://phabricator.services.mozilla.com/D238786
2025-03-18 16:24:26 +00:00
Sandor Molnar
bfaffc7de8 Backed out 4 changesets (bug 1948254) for causing wpt & hazard failures @ Navigation.cpp / NavigateEvent CLOSED TREE
Backed out changeset f5ad49e89bc3 (bug 1948254)
Backed out changeset 640382d73264 (bug 1948254)
Backed out changeset a79c8bef5dc3 (bug 1948254)
Backed out changeset 4a26e79ce32e (bug 1948254)
2025-03-18 12:12:29 +02:00
Andreas Farre
f28fb7a59e Bug 1948254 - Part 4: Implement #navigate-event-firing. r=webidl,smaug
This includes:

* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event

which are all implemented in terms of #inner-navigate-event-firing-algorithm.

Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.

Differential Revision: https://phabricator.services.mozilla.com/D238786
2025-03-18 08:17:44 +00:00
William Durand
da48e96f0a Bug 1949695 - Re-enable about:config on Android. r=owlish
GeckoView has a runtime setting (controlled pref) to determine if we
should enable `about:config` or not. This patch reverts a change in
D232785 that caused this controlled pref to no longer be very useful
because the config resource was omitted at build time instead.

Differential Revision: https://phabricator.services.mozilla.com/D240984
2025-03-17 19:09:32 +00:00
Norisz Fay
24465cfc3a Backed out 4 changesets (bug 1948254) for causing failure on idlharness.https.html CLOSED TREE
Backed out changeset 545c51e30bd9 (bug 1948254)
Backed out changeset 403e2c469af4 (bug 1948254)
Backed out changeset 05bbdc23154a (bug 1948254)
Backed out changeset 1f3acb6cf9cd (bug 1948254)
2025-03-17 22:15:33 +02:00
Andreas Farre
affa2a2beb Bug 1948254 - Part 4: Implement #navigate-event-firing. r=webidl,smaug
This includes:

* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event

which are all implemented in terms of #inner-navigate-event-firing-algorithm.

Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.

Differential Revision: https://phabricator.services.mozilla.com/D238786
2025-03-17 16:28:56 +00:00
Alexandru Marc
e4fca80d91 Backed out 4 changesets (bug 1948254) for causing build bustages @ NavigateEvent.h
Backed out changeset 14269121caf3 (bug 1948254)
Backed out changeset e327d067c6a0 (bug 1948254)
Backed out changeset d13b8e53fb78 (bug 1948254)
Backed out changeset 3c4be02a9115 (bug 1948254)
2025-03-14 21:42:35 +02:00
Andreas Farre
a6acda2ef3 Bug 1948254 - Part 4: Implement #navigate-event-firing. r=webidl,smaug
This includes:

* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event

which are all implemented in terms of #inner-navigate-event-firing-algorithm.

Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.

Differential Revision: https://phabricator.services.mozilla.com/D238786
2025-03-14 16:12:48 +00:00
Benjamin VanderSloot
22a601b55d Bug 1937120, part 3 - Use BroadcastChannel.unpartitionedTestingChannel in docshell/test/navigation tests - r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D240662
2025-03-12 12:42:01 +00:00
Benjamin VanderSloot
c29498b283 Bug 1937120, part 2 - Revert old changes that fully unpartitioned storage in docshell/test/navigation - r=smaug
This reverts commit 0687551d6244133d438df6acb6a39111e7ec3de9.
See the next commit that allows these tests to work with the unpartitioned BroadcastChannel and without the opener heuristic.

Differential Revision: https://phabricator.services.mozilla.com/D240661
2025-03-12 12:42:00 +00:00
Benjamin VanderSloot
821915d06c Bug 1937120, part 1 - Remove full storage unpartitioning from docshell/test/mochitest tests - r=smaug
Instead we get just an unpartitioned BroadcastChannel

Differential Revision: https://phabricator.services.mozilla.com/D240660
2025-03-12 12:42:00 +00:00
Benjamin VanderSloot
b206a231f3 Bug 1928672 - Enable xorigin BroadcastChannel in docshell/test/mochitest/test_form_restoration.html so it doesn't rely on heuristics - r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D227670
2025-03-12 12:41:59 +00:00
Sean
0a22de9dd4 Bug 721336 - Block sync XHR with system principal r=valentin,necko-reviewers,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D239964
2025-03-10 17:22:24 +00:00
Masayuki Nakano
db3f3e752b Bug 1940377 - part 9: Update mochitests to assume the new normalizer's result if it's enabled r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D239474
2025-03-08 22:31:57 +00:00
Goloman Adrian
2973813822 Backed out 9 changesets (bug 1940377) for causing wpt failures @elete-to-join-blocks.tentative.html.
Backed out changeset c08fbe668983 (bug 1940377)
Backed out changeset afe170b7d586 (bug 1940377)
Backed out changeset fbd25039fe81 (bug 1940377)
Backed out changeset 9cec5876c849 (bug 1940377)
Backed out changeset d4eabf000418 (bug 1940377)
Backed out changeset d6b44f519481 (bug 1940377)
Backed out changeset a3fd780478a3 (bug 1940377)
Backed out changeset 80dba0103823 (bug 1940377)
Backed out changeset d06e8bb673e8 (bug 1940377)
2025-03-08 08:25:13 +02:00
Masayuki Nakano
45df3aa844 Bug 1940377 - part 9: Update mochitests to assume the new normalizer's result if it's enabled r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D239474
2025-03-08 00:23:18 +00:00
Olli Pettay
420e8abf0f Bug 1945081 - Window's indexed getter should not expose shadow DOM iframe, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D240390
2025-03-06 12:08:48 +00:00
Sandor Molnar
728924cf93 Backed out changeset 72987cb97c23 (bug 721336) for causing mochitest failures @ test_markup.html CLOSED TREE 2025-03-05 20:53:39 +02:00
Sean
7b1482c9da Bug 721336 - Block sync XHR with system principal r=valentin,necko-reviewers,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D239964
2025-03-05 18:00:52 +00:00