Commit Graph

4303 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Sean
dc7916e115 Bug 1937905 - Part 1: Add a neterror page for DOM indicating network errors due to invalid header values r=fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D232846
2025-03-04 22:10:58 +00:00
Nika Layzell
085c732a5c Bug 1665474 - Part 9: Handle calls to browser.createAboutBlankDocumentViewer with http(s) principals, r=farre
It is possible for frontend JS to call this method on a browser element
with an http(s) principal. In this case, treat the new about:blank
document like it was created without a Origin-Agent-Cluster header, and
ensure the map is updated before the message to create the viewer is
sent into the content process.

Differential Revision: https://phabricator.services.mozilla.com/D238115
2025-03-03 22:51:30 +00:00
Edgar Chen
249820655d Bug 1937603 - Do not handle screen orientation on windowless browser; r=smaug
This patch reuses the existing but unused `mWindowless` flag. The flag is now
propagated to the BrowsingContext created under the windowless browser.

Differential Revision: https://phabricator.services.mozilla.com/D238584
2025-02-19 09:42:18 +00:00
Adam Vandolder
23e9c9915a Bug 1890747 - Track Navigation history entries. r=dom-core,farre
Differential Revision: https://phabricator.services.mozilla.com/D219007
2025-02-13 03:11:20 +00:00
Sean
c73aeda52c Bug 1325876 - Add a pref for showing internal error page for HTTP responses with error codes (4xx, 5xx) and Content-Length: 0 instead of blank page r=manuel,necko-reviewers,fluent-reviewers,jesup,bolsson,valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D220193
2025-01-27 21:05:42 +00:00
Sean
11eae78bbe Bug 1763671 - Part 1: Add a preference to disable basic HTTP Auth r=necko-reviewers,fluent-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225797
2025-01-27 16:19:31 +00:00
Florian Quèze
9bb52886b8 Bug 1935420 - Migrate histograms to use Glean APIs for BFCACHE_*, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D234182
2025-01-27 13:47:11 +00:00
Stanca Serban
149deaac25 Backed out 3 changesets (bug 1325876) for causing Linux related puppeteer failures. CLOSED TREE
Backed out changeset 2dcbd388c95f (bug 1325876)
Backed out changeset ba3a433729a6 (bug 1325876)
Backed out changeset 42f5ed6abce5 (bug 1325876)
2025-01-24 03:47:23 +02:00
Sean
5f773583d7 Bug 1325876 - Show internal error page for HTTP responses with error codes (4xx, 5xx) and Content-Length: 0 instead of blank page r=manuel,necko-reviewers,fluent-reviewers,jesup,bolsson,valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D220193
2025-01-23 21:57:37 +00:00
Sean
3cbfca1937 Bug 1927594 - Part 1: Introduce better CORP headers aboutCertError messages r=necko-reviewers,fluent-reviewers,kershaw,valentin,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228072
2025-01-21 19:46:52 +00:00
Florian Quèze
6203c6c238 Bug 1879329 - add the missing includes, r=chutten,necko-reviewers,cookie-reviewers,valentin.
Differential Revision: https://phabricator.services.mozilla.com/D234757
2025-01-21 11:21:45 +00:00
Sandor Molnar
08b7f7de38 Backed out 2 changesets (bug 1927594) for causing wpt failures. CLOSED TREE
Backed out changeset 46a8e41b53dc (bug 1927594)
Backed out changeset bde1ce0e09eb (bug 1927594)
2025-01-18 07:44:42 +02:00
Sean
120797515f Bug 1927594 - Part 1: Introduce better CORP headers aboutCertError messages r=necko-reviewers,fluent-reviewers,kershaw,valentin,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228072
2025-01-17 22:42:29 +00:00
Cristina Horotan
5986f62c76 Backed out 2 changesets (bug 1927594) for causing bc failures at browser_aboutCertError_corp.js on a CLOSED TREE
Backed out changeset 839a0b0afda8 (bug 1927594)
Backed out changeset 69b747cc13d1 (bug 1927594)
2025-01-17 02:03:35 +02:00
Sean
86dd2ce1e1 Bug 1927594 - Part 1: Introduce better CORP headers aboutCertError messages r=necko-reviewers,fluent-reviewers,kershaw,valentin,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228072
2025-01-16 20:24:45 +00:00
Sandor Molnar
dccfdca702 Backed out 2 changesets (bug 1927594) for causing bc failures @ browser_aboutCertError_corp.js CLOSED TREE
Backed out changeset bc1b92ad914c (bug 1927594)
Backed out changeset de234c6a4a0a (bug 1927594)
2025-01-15 03:03:41 +02:00
Sean
52ca4d0dbf Bug 1927594 - Part 1: Introduce better CORP headers aboutCertError messages r=necko-reviewers,fluent-reviewers,kershaw,valentin,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228072
2025-01-14 22:04:20 +00:00
Edgar Chen
b298946c00 Bug 1934807 - Consider file: URIs as the same domain for the purpose of frame navigation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D232451
2025-01-13 00:19:00 +00:00
Butkovits Atila
573c79c8f0 Backed out changeset 7d26eb9ace6e (bug 1927594) for causing failurfes at iframe-coep-disallow.h2.html. CLOSED TREE 2025-01-10 19:05:02 +02:00
Sean
a727d4fc52 Bug 1927594 - Part 1: Introduce better CORP headers aboutCertError messages r=necko-reviewers,fluent-reviewers,kershaw,valentin,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228072
2025-01-10 14:52:06 +00:00
Alexandru Marc
d3a6a84fb2 Backed out 4 changesets (bug 1325876) for causing wd failures @ navigation.spec.js CLOSED TREE
Backed out changeset b29ef3f14bf7 (bug 1325876)
Backed out changeset f8add6e2ef93 (bug 1325876)
Backed out changeset 41cc884f84c1 (bug 1325876)
Backed out changeset 014c9c77393a (bug 1325876)
2024-12-21 04:41:41 +02:00
Sean
b0c2a57e0a Bug 1325876 - Show internal error page for HTTP responses with error codes (4xx, 5xx) and Content-Length: 0 instead of blank page r=manuel,necko-reviewers,fluent-reviewers,jesup,bolsson,valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D220193
2024-12-20 22:12:10 +00:00
Stanca Serban
29fc723e46 Backed out 4 changesets (bug 1325876) for causing wpt failures in 404-with-early-hints.h2.window.html. CLOSED TREE
Backed out changeset 1c2e847c0632 (bug 1325876)
Backed out changeset 8b56e7a25cdd (bug 1325876)
Backed out changeset 55446c955dbd (bug 1325876)
Backed out changeset a4ecb980de87 (bug 1325876)
2024-12-18 21:07:50 +02:00
Sean
b44e64d197 Bug 1325876 - Show internal error page for HTTP responses with error codes (4xx, 5xx) and Content-Length: 0 instead of blank page r=manuel,necko-reviewers,fluent-reviewers,jesup,bolsson,valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D220193
2024-12-18 15:54:19 +00:00
Norisz Fay
31b3da5965 Backed out 3 changesets (bug 1325876) for causing bc failures on browser_subdocument_downgrade.js CLOSED TREE
Backed out changeset aede2883237a (bug 1325876)
Backed out changeset decca0d92c74 (bug 1325876)
Backed out changeset 0bda3da380ac (bug 1325876)
2024-12-18 02:21:37 +02:00
Sean
3ed8e0bcce Bug 1325876 - Show internal error page for HTTP responses with error codes (4xx, 5xx) and Content-Length: 0 instead of blank page r=manuel,necko-reviewers,fluent-reviewers,jesup,bolsson,valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D220193
2024-12-17 21:01:08 +00:00
Goloman Adrian
8d0f046600 Backed out 3 changesets (bug 1325876) for causing multiple bc failures.
Backed out changeset 10448d623bd4 (bug 1325876)
Backed out changeset 1092114b16b5 (bug 1325876)
Backed out changeset c0454be735a8 (bug 1325876)
2024-12-17 00:32:23 +02:00