Commit Graph

9459 Commits

Author SHA1 Message Date
Timothy Nikkel
07fd87a61c Bug 1922983. Avoid useless QI in nsDocShell::Get/SetWindowDraggingAllowed on every paint in content process. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D224671
2024-10-07 10:27:11 +00:00
Iulian Moraru
b546e74055 Backed out changeset 4888b2f651bc (bug 1921972) for causing multiple failures. CLOSED TREE 2024-10-06 23:50:12 +03:00
Emilio Cobos Álvarez
48b17848c6 Bug 1921972 - Don't add external protocol navigations to the loadgroup. r=smaug,necko-reviewers
Much like we do with downloads (bug 1656925), these don't unload the
current document.

This prevents them from having mismatched flags, which asserts, see the
test-case.

Differential Revision: https://phabricator.services.mozilla.com/D224606
2024-10-06 19:33:02 +00:00
Peter Van der Beken
3fe6a7a9b7 Bug 1920960 - Simplify nsDocShellLoadState::CalculateChannelLoadFlags argument. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D223499
2024-10-02 12:26:40 +00:00
Sean Feng
151f98f073 Bug 1889406 - Notify the focus/active BC to content process for subframes when BrowserParent is first created r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D221534
2024-09-19 17:10:51 +00:00
William Wen
be5526492f Bug 1913000 - Add more rate limiting to History interface. r=webidl,smaug,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D221255
2024-09-19 16:09:02 +00:00
Noemi Erli
b0877dbd19 Backed out changeset 1f04fc7b4c57 (bug 1889406) for causing build bustages CLOSED TREE 2024-09-19 18:00:59 +03:00
Sean Feng
e1837680c4 Bug 1889406 - Notify the focus/active BC to content process for subframes when BrowserParent is first created r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D221534
2024-09-19 13:36:42 +00:00
Andreas Farre
c9273c1acb Bug 1919704 - Only test for url hash when checking text directive. r=dom-core,jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D222745
2024-09-19 08:52:24 +00:00
Andreas Farre
10a07d73c7 Bug 1909022 - Allow more recursive load checks. r=smaug,necko-reviewers,valentin
Don't limit recursive checks to only happen for original src
loads. They're very likely to be loads of 'about:blank' and later
followed by the actual load. Make sure to check the following loads as
well.

Differential Revision: https://phabricator.services.mozilla.com/D222485
2024-09-18 09:46:55 +00:00
Andreas Farre
ff63578440 Bug 1909698 - Use URI from session history when coming out from bfcache. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D222118
2024-09-17 12:17:38 +00:00
Nicolas Chevobbe
6cc15139bc Bug 1916589 - Add forcedColorsOverride flag to BrowsingContext. r=emilio.
Depends on D221773

Differential Revision: https://phabricator.services.mozilla.com/D221334
2024-09-17 10:17:57 +00:00
Iulian Moraru
f88a40ddc9 Backed out changeset 05fceb07f800 (bug 1909698) for causing wpt crashes/assertions. CLOSED TREE 2024-09-16 23:28:38 +03:00
Andreas Farre
8e0af05cc0 Bug 1909698 - Use URI from session history when coming out from bfcache. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D222118
2024-09-16 17:38:10 +00:00
keithamus
d1ae47b9d6 Bug 1888729 - Implement CloseWatcher interface r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D206169
2024-09-16 17:08:53 +00:00
Adam Vandolder
fbac3f82fa Bug 1917369 - Track user interaction state in docshell's active entry. r=dom-core,peterv
Differential Revision: https://phabricator.services.mozilla.com/D221389
2024-09-12 13:12:58 +00:00
Andreas Farre
5189f36e6f Bug 1916559 - Only store pending uninvoked directives for same document navigation. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D221637
2024-09-12 06:02:24 +00:00
Emilio Cobos Álvarez
60fad39eb9 Bug 1911977 - Don't abort networking activity on external protocol navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D221029
2024-09-10 15:22:04 +00:00
Emilio Cobos Álvarez
69d03391c0 Bug 1911977 - Minor clean-ups in nsDocShell::InternalLoad. r=smaug
Use const and the same style for download and JS checks.

Differential Revision: https://phabricator.services.mozilla.com/D221028
2024-09-05 17:08:39 +00:00
Butkovits Atila
90dc3743ea Backed out 2 changesets (bug 1911977) for causing failures at browser_thumbnails_bg_bad_url.js. CLOSED TREE
Backed out changeset 564fe3a44acf (bug 1911977)
Backed out changeset d142c4f64ae7 (bug 1911977)
2024-09-05 04:19:21 +03:00
Emilio Cobos Álvarez
7dbf811c63 Bug 1911977 - Don't abort networking activity on external protocol navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D221029
2024-09-04 20:18:55 +00:00
Emilio Cobos Álvarez
a2778c9033 Bug 1911977 - Minor clean-ups in nsDocShell::InternalLoad. r=smaug
Use const and the same style for download and JS checks.

Differential Revision: https://phabricator.services.mozilla.com/D221028
2024-09-04 20:18:55 +00:00
Sean Feng
c1347b2cbe Bug 1882670 - Cancel the loading=lazy iframe when it's load via a different way r=emilio,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218143
2024-09-04 14:06:47 +00:00
Cristina Horotan
219dd93d86 Backed out changeset d232f991af6a (bug 1882670) for causing cdp failures at frame.spec.js CLOSED TREE 2024-09-04 02:35:14 +03:00
Sean Feng
93b336b8f9 Bug 1882670 - Cancel the loading=lazy iframe when it's load via a different way r=emilio,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218143
2024-09-03 19:34:36 +00:00
Nika Layzell
793f001a6e Bug 1914594 - Move docshell.newWindowTarget to be on LoadInfo, r=necko-reviewers,kershaw
Previously, this was passed around using the nsHashPropertyBag base
class on HTTP channels. In bug 1907269, this base was added to
nsExtProtocolChannel to support reading this property for external
protocols.

This unfortunately ended up not working when a HTTP channel redirects to
an external protocol, as the hash property propagation logic in
nsHttpChannel happens after the check that the target channel is a HTTP
channel, so the property was lost when redirecting to an external
protocol.

Rather than refactoring HTTP redirect logic, this patch simplifies by
moving the property onto the LoadInfo where it will be trivially
preserved across redirects, and available in the places which need it.

Because the nsHashPropertyBag base is no longer required for
nsExtProtocolChannel, it is also removed.

Differential Revision: https://phabricator.services.mozilla.com/D220744
2024-09-03 16:00:23 +00:00
Valentin Gosu
458409e041 Bug 1888494 - Make CanonicalBrowsingContext::FixupAndLoadURIString check set the correct TRR mode r=nika
It would seem sometimes in Firefox 77 we regressed the ability to set the TRR
mode for a browsing context when opening a new tab.
I confirmed that this bug didn't happen in Fx 77 when setting the
`browser.tabs.documentchannel.parent-initiated` pref to `false`.

The nsIWebNavigation::LOAD_FLAGS_DISABLE_TRR is correctly passed into
CanonicalBrowsingContext, but it doesn't end up getting used.

This sets the appropriate DefaultLoadFlags for BrowsingContext
when the LOAD_FLAGS_DISABLE_TRR or LOAD_TRR_ONLY_MODE flags are present
in nsDocShellLoadState::LoadFlags()

Differential Revision: https://phabricator.services.mozilla.com/D220550
2024-09-03 13:07:59 +00:00
Olli Pettay
e1fad67026 Bug 1914513 - Add a pref to disable mutation events, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D219934
2024-09-02 13:29:57 +00:00
Emilio Cobos Álvarez
0535faeb06 Bug 1914149 - Propagate zoom to new browsing contexts unconditionally. r=nika
Your patch looks good to me. Not sure if there's a non-racy way of
testing the internal full-zoom value here...

But in general, assuming consistent zoom lacking other sources of
information seems like the right thing to do.

I agree that eventually we want to probably move the site-specific zoom
impl into Gecko (if only because Android is also going to want that, see
bug 1547181, where I added a comment).

Co-authored-by: Nika Layzell <nika@thelayzells.com>

Differential Revision: https://phabricator.services.mozilla.com/D220277
2024-09-02 11:28:05 +00:00
Butkovits Atila
0b9db287ae Backed out changeset 6c62047559a6 (bug 1882670) for causing failures at iframe-loading-lazy-reload-location-reload.html. CLOSED TREE 2024-08-28 19:42:11 +03:00
Sean Feng
f9a30926c7 Bug 1882670 - Cancel the loading=lazy iframe when it's load via a different way r=emilio,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218143
2024-08-28 15:11:55 +00:00
Mark Banner
431635ac9a Bug 1911981 - Replace use of SearchTestUtils.useTestEngines with setRemoteSettingsConfig in non-search test code. r=mbeier,backup-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219894
2024-08-27 16:01:45 +00:00
Adam Vandolder
c65f34a970 Bug 1734181 - Part 4: Add tests for the backbutton intervention behaviour. r=jjaschke,peterv,dom-core,geckoview-reviewers,extension-reviewers,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D216828
2024-08-24 19:43:32 +00:00
Adam Vandolder
d072800d01 Bug 1734181 - Part 1: Carry hasUserInteraction over to newly-created SessionHistoryEntrys. r=jjaschke,peterv,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D209014
2024-08-24 19:43:30 +00:00
Sandor Molnar
a691d08413 Backed out changeset 65b82edb2b88 (bug 1888729) for causing build bustages @ CloseWatcherManager.h CLOSED TREE 2024-08-21 19:01:23 +03:00
keithamus
f456a89f5e Bug 1888729 - Implement CloseWatcher interface r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D206169
2024-08-21 13:49:38 +00:00
Butkovits Atila
cfb1ee47ab Backed out 5 changesets (bug 1734181) for causing failures at test_ext_tabs_goBack_goForward.html. CLOSED TREE
Backed out changeset eb37aa9ac513 (bug 1734181)
Backed out changeset a94eb78e58c2 (bug 1734181)
Backed out changeset aa72b0e38e8b (bug 1734181)
Backed out changeset f4b8c6babb7e (bug 1734181)
Backed out changeset 8ec6704b8022 (bug 1734181)
2024-08-21 05:58:08 +03:00
Adam Vandolder
184bda843d Bug 1734181 - Part 4: Add tests for the backbutton intervention behaviour. r=jjaschke,peterv,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D216828
2024-08-20 14:21:29 +00:00
Adam Vandolder
fc18484aec Bug 1734181 - Part 1: Carry hasUserInteraction over to newly-created SessionHistoryEntrys. r=jjaschke,peterv,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D209014
2024-08-20 14:21:28 +00:00
Florian Quèze
47b1992333 Bug 1913624 - Remove expired telemetry histograms ENCODING_OVERRIDE_SITUATION_TEXT and ENCODING_OVERRIDE_SITUATION_HTML, r=chutten.
Depends on D219442

Differential Revision: https://phabricator.services.mozilla.com/D219443
2024-08-20 10:26:52 +00:00
Peter Van der Beken
2ddc0f8713 Bug 1912083 - Switch url argument to UTF8 string. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D218947
2024-08-20 07:56:25 +00:00
Nika Layzell
0b5dab40c6 Bug 1881037 - Part 2: Add a basic test for loading unknown protocols in a popup window, r=smaug
The console notification is only created when an error page would not
otherwise load, so allows us to detect the situation where the error
page is not going to be loaded.

Differential Revision: https://phabricator.services.mozilla.com/D218984
2024-08-15 10:19:49 +00:00
Nika Layzell
196fd4c78c Bug 1881037 - Part 1: Stop showing unknown protocol error pages for web-triggered loads, r=smaug,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D217495
2024-08-15 10:19:49 +00:00
Sean Feng
1b47ab6415 Bug 1863246 - Make the page that enters BFCache not asking the parent process to update the active browsing context r=peterv,dom-core
Currently, when a page enters BFCache, it updates the parent process
for the active BC; however, the page that is about to show will do the
same. These two operations are triggered in different processes with
different active id, they are racy and problematic.

This patch fixes the above issue by not updating the parent process
when a page enters BFCache.

This only applies to BFCacheInParent is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D215818
2024-08-14 19:48:17 +00:00
Henri Sivonen
4496b3ed9b Bug 1908759 - Don't use UTS 46 ToUnicode from nsDocShell::AttemptURIFixup. r=necko-reviewers,jesup,valentin
Differential Revision: https://phabricator.services.mozilla.com/D217009
2024-08-14 18:30:08 +00:00
Paul Zuehlcke
8fcf41c736 Bug 1894040 - Support for enabling or disabling BounceTrackingProtection during runtime. r=anti-tracking-reviewers,bvandersloot
This patch switches the main logic from a boolean pref to an integer with different feature modes.
See nsIBounceTrackingProtection for the new modes supported. Dry-run mode has been merged into the mode
pref.

A new state is introduced MODE_ENABLED_STANDBY in which BTP still collects user activation signals, but
does not classify or purge bounce trackers. This new mode should be used when it's expected that the
feature may be toggled on/off after rollout. Collecting user activation even in the "disabled" state
ensures that when the feature gets re-enabled the user activation map is already warmed up and sites
important to the user are not classified + purged.

The BounceTrackingProtection singleton listens for changes on the mode pref and inits / tears down accordingly.
However it never shuts down fully. To fully disable the feature a restart is required.

Differential Revision: https://phabricator.services.mozilla.com/D217848
2024-08-13 12:38:26 +00:00
Norisz Fay
d9198adc83 Backed out 3 changesets (bug 1881037) for causing mochitest failure on test_popup_unknown_protocol.html CLOSED TREE
Backed out changeset c948d8669436 (bug 1881037)
Backed out changeset 30866fb1a697 (bug 1881037)
Backed out changeset db0212e2c079 (bug 1881037)
2024-08-10 00:42:47 +03:00
Nika Layzell
7be530a459 Bug 1881037 - Part 2: Add a basic test for loading unknown protocols in a popup window, r=smaug
The console notification is only created when an error page would not
otherwise load, so allows us to detect the situation where the error
page is not going to be loaded.

Depends on D217495

Differential Revision: https://phabricator.services.mozilla.com/D218984
2024-08-09 20:26:12 +00:00
Nika Layzell
a50af179d9 Bug 1881037 - Part 1: Stop showing unknown protocol error pages for web-triggered loads, r=smaug,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D217495
2024-08-09 20:26:11 +00:00
Nika Layzell
01fa25f4bd Bug 1911745 - Unify BrowsingContext flag coherency checks, r=mccr8
Previously these checks were largely diagnostic tools for finding bugs
in other code as it evolves. This unifies the checks a bit more and
makes them stronger for BrowsingContexts created over IPC, providing a
place for more coherency checks to be added in the future.

Differential Revision: https://phabricator.services.mozilla.com/D218860
2024-08-09 16:06:13 +00:00