Commit Graph

3421 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
dd0a18c9a4 Bug 1625304 - Remove INTERNAL_LOAD_FLAGS_IS_USER_TRIGGERED. r=mattwoodrow
It's unused (modulo assertions that mask it off), and I want to add something
similar for bug 1528305, so this avoids some confusion.

Differential Revision: https://phabricator.services.mozilla.com/D68456
2020-03-26 22:39:16 +00:00
Nika Layzell
1bd6d66011 Bug 1616991 - Rename WindowGlobalChild::WindowGlobal getter to reflect nullability, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64660
2020-03-23 23:03:50 +00:00
Kristen Wright
2209bd50ed Bug 1622111 - Convert security.data_uri.unique_opaque_origin to static pref and remove ClientPrefs. r=njn
Converts security.data_uri.unique_opaque_origin to a static pref. This pref was initialized by the ClientManager in ClientPrefs, so this commit also removes those files. Somehow this pref was getting added in VarCache twice, so it also removes the places where the pref was added in Networking.

Differential Revision: https://phabricator.services.mozilla.com/D67185
2020-03-23 16:08:52 +00:00
Matt Woodrow
768eaa770a Bug 1613002 - Fix process switch channel connection race. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67090
2020-03-19 22:30:07 +00:00
Masatoshi Kimura
7355e130aa Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen
Only 3 callers are using a non-UTF-8 charset as the first parameter.
* MediaDocument.cpp: This does not make sense because the "filename" part of
  URLs will always be encoded with UTF-8.
* nsContextMenu.js: This is wrong because "mailto:" URLs don't care about the
  document charset.
* Finder.jsm: This caused bug 1623222.

Differential Revision: https://phabricator.services.mozilla.com/D67386
2020-03-19 10:45:28 +00:00
Dan Glastonbury
796f836288 Bug 1621192 - P4: Remove documentOpenFlags from DocumentChannelCreationArgs. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D66170
2020-03-19 01:49:24 +00:00
Dan Glastonbury
65f93a52a9 Bug 1621192 - P3: Remove mPluginsAllowed from DocumentChannel. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D66169
2020-03-19 01:49:11 +00:00
Dan Glastonbury
0d44ecd70d Bug 1621192 - P2: Move allowContentRetargeting to BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D66168
2020-03-19 01:49:04 +00:00
Dan Glastonbury
f9e0dcfc5b Bug 1621192 - P1: Move allowPlugins to BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D66167
2020-03-19 01:48:56 +00:00
Stefan Hindli
28db9d8630 Backed out 9 changesets (bug 1622111) for causing mochitest failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE
Backed out changeset c244160797f8 (bug 1622111)
Backed out changeset dd9209f6bd8b (bug 1622111)
Backed out changeset d694c9e7061f (bug 1622111)
Backed out changeset 486aae809f6d (bug 1622111)
Backed out changeset 709266168c41 (bug 1622111)
Backed out changeset ca0d47bb86a8 (bug 1622111)
Backed out changeset caa735c8bb91 (bug 1622111)
Backed out changeset 12397711ab25 (bug 1622111)
Backed out changeset b66002fd1480 (bug 1622111)
2020-03-19 02:47:51 +02:00
Kristen Wright
216d0e4f31 Bug 1622111 - Convert security.data_uri.unique_opaque_origin to static pref and remove ClientPrefs. r=njn
Converts security.data_uri.unique_opaque_origin to a static pref. This pref was initialized by the ClientManager in ClientPrefs, so this commit also removes those files. Somehow this pref was getting added in VarCache twice, so it also removes the places where the pref was added in Networking.

Differential Revision: https://phabricator.services.mozilla.com/D67185
2020-03-18 22:12:20 +00:00
Anny Gakhokidze
75da6b0075 Bug 1621748 - Fix stale pointers when updating history entries consecutively, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D66631
2020-03-16 18:25:45 +00:00
Marco Bonardo
85b4838b84 Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D66269
2020-03-13 12:44:36 +00:00
Agi Sferro
38dbe89b06 Bug 1619796 - Don't fire onLoadRequest for embedder-initiated loads. r=smaug,droeh
Differential Revision: https://phabricator.services.mozilla.com/D66695
2020-03-13 18:22:16 +00:00
Boris Zbarsky
be6b9fe900 Bug 1440212 part 1. Remove the always-true aIsTrusted argument of FireFrameLoadEvent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35599
2020-03-11 22:29:53 +00:00
Anny Gakhokidze
5e4f7622d7 Bug 1546759 - Do not update session history entries in BC when it is discarded, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D66519
2020-03-12 14:14:40 +00:00
Dan Glastonbury
72748e46f9 Bug 1620499 - Cleanup access to BrowsingContext. r=mattwoodrow
Use the local source of truth instead of retrieving the value from nsILoadInfo.

Differential Revision: https://phabricator.services.mozilla.com/D66515
2020-03-12 02:03:48 +00:00
Sean Feng
4464ac09ae Bug 1620669 - Separate CONTAINS_REMOTE_SUBFRAMES to its own label in BFCACHE_COMBO telemetry r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65792
2020-03-10 15:39:34 +00:00
Anny Gakhokidze
44c5e4d625 Bug 1546759 - Change nsSHistory::WalkHistoryEntries to walk browsing context tree instead of doc shell tree, r=peterv,nika
WalkHistoryEntries function gets called by nsSHistory::CloneAndReplaceChild
and nsSHistory::SetChildHistoryEntry recursively, so those have to be moved
into the parent process. This eliminates many sync IPC calls.

To facilitate transition to a new session history design,
we are mirroring mOSHE and mLSHE SH entries from docshell to browsing context.
Whenever we update those entries in docshell, we will also update those in BC,
and vice versa.

Differential Revision: https://phabricator.services.mozilla.com/D56201
2020-03-10 14:28:22 +00:00
Dan Glastonbury
04d5facbcb Bug 1620119 - Remove isActive from DocumentChannelCreationArgs. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65444
2020-03-10 00:44:01 +00:00
Dan Glastonbury
bf5666cbf6 Bug 1620107 - P3: Remove isTopLevelDoc from DocumentChannelCreationArgs. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65433
2020-03-10 00:43:58 +00:00
Dan Glastonbury
cc7453039d Bug 1620107 - P2: Remove loadType from DocumentChannelCreationArgs. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65432
2020-03-10 00:43:56 +00:00
Dan Glastonbury
adb527dd5a Bug 1620107 - P1: Remove hasNonEmptySandboxingFlags from DocumentChannelCreationArgs. r=mattwoodrow,nika
Differential Revision: https://phabricator.services.mozilla.com/D65431
2020-03-10 00:43:49 +00:00
Sean Feng
39ed83440e Bug 1612128 - Add a new label to BFCACHE_COMBO telemetry probe r=smaug
Add a new label to collect the number of BFCached documents that are not
the only top level documents in their BrowsingContextGroup.

Differential Revision: https://phabricator.services.mozilla.com/D65790
2020-03-06 22:24:08 +00:00
Matt Woodrow
2171fe4c48 Bug 1617434 - Don't recreate ClientSource when we process switch. r=perry
Now that we're guaranteed to not have an existing ClientSource in the old process, we no longer need to allocate a new ClientInfo in the new process.
This lets us just create a ClientSource around the ClientInfo already on the channel (exactly as we do for same-process loads), and we no longer need to reconcile changes with the parent.

Differential Revision: https://phabricator.services.mozilla.com/D63808
2020-03-04 02:47:57 +00:00
Christoph Kerschbaumer
842a4e8e30 Bug 1504968: Remove pref security.strict_security_checks.enabled and enforce strict top-level principal checking on Android. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D65095
2020-03-03 17:03:20 +00:00
Matt Woodrow
655e2686b0 Bug 1617789 - Move loadInfo configuration into CreateAndConfigureRealChannelForLoadState so that it runs in the parent process with DocumentChannel. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63997
2020-03-01 04:15:44 +00:00
Matt Woodrow
c65a836094 Bug 1617789 - Simplify load from external. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63996
2020-03-01 04:15:11 +00:00
Matt Woodrow
750c31f87e Bug 1617789 - Don't require loadInfo for navigate-to. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63995
2020-03-01 04:14:43 +00:00
Matt Woodrow
2d22930f78 Bug 1617434 - Move reserved client creation to parent-side with DocumentChannel. r=perry
Rather than creating a ClientSource in the content process for the initial URL, this changes us to just create the ClientInfo in the parent, as we do for redirects.

Differential Revision: https://phabricator.services.mozilla.com/D63807
2020-03-01 04:14:00 +00:00
Dorel Luca
d74b1ea17d Backed out 7 changesets (bug 1617500, bug 1617789, bug 1617434) for build bustage in dom/clients/manager/ClientChannelHelper.cpp
Backed out changeset 1a62904bfcb7 (bug 1617500)
Backed out changeset 592a5ddf6acf (bug 1617789)
Backed out changeset 995edb2e7f98 (bug 1617789)
Backed out changeset f3518664d654 (bug 1617789)
Backed out changeset 98ea95f7fe87 (bug 1617789)
Backed out changeset c5f1f70efb88 (bug 1617434)
Backed out changeset 1563faa24d15 (bug 1617434)
2020-03-01 05:57:57 +02:00
Matt Woodrow
930c5e217c Bug 1617789 - Move loadInfo configuration into CreateAndConfigureRealChannelForLoadState so that it runs in the parent process with DocumentChannel. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63997
2020-03-01 01:26:56 +00:00
Matt Woodrow
306dede4a7 Bug 1617789 - Simplify load from external. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63996
2020-03-01 01:26:23 +00:00
Matt Woodrow
16542787b0 Bug 1617789 - Don't require loadInfo for navigate-to. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63995
2020-03-01 01:25:50 +00:00
Matt Woodrow
7c5fe4cac4 Bug 1617434 - Move reserved client creation to parent-side with DocumentChannel. r=perry
Rather than creating a ClientSource in the content process for the initial URL, this changes us to just create the ClientInfo in the parent, as we do for redirects.

Differential Revision: https://phabricator.services.mozilla.com/D63807
2020-03-01 01:23:18 +00:00
Andrea Marchesini
8a516da0e7 Bug 1618864 - Pass cookies/samesite/form-post-blank-reload.https.html WPT test, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D64742
2020-02-28 16:00:24 +00:00
Dan Glastonbury
98cd5d2e09 Bug 1616171 - P3: Move initatorType from DocumentChannelCreationArgs to BC. r=mattwoodrow,nika
Differential Revision: https://phabricator.services.mozilla.com/D63452
2020-02-25 23:17:56 +00:00
Kris Maglione
232ff37e9f Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

Differential Revision: https://phabricator.services.mozilla.com/D63962
2020-02-25 19:44:39 +00:00
Matt Woodrow
d873efea87 Bug 1614847 - Construct nsDocShellLoadState in ContentChild to avoid needing to pass excess parameters into nsDocShell. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63267
2020-02-24 02:16:24 +00:00
Matt Woodrow
08b49cc241 Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63040
2020-02-24 02:15:03 +00:00
Noemi Erli
f5b72c4da0 Backed out 5 changesets (bug 1597154) for causing browser-chrome failures in browser_UITour_showNewTab.js CLOSED TREE
Backed out changeset dc78c6d3d737 (bug 1597154)
Backed out changeset 6e82c600d52f (bug 1597154)
Backed out changeset 9857504c26e6 (bug 1597154)
Backed out changeset e8dccb59bf2a (bug 1597154)
Backed out changeset 3c34ca1e2079 (bug 1597154)
2020-02-21 04:39:43 +02:00
Paul Bone
2f995da009 Bug 1597154 - pt 5. Rename SchemeUsesDocChannel r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D59823
2020-02-20 23:54:32 +00:00
Paul Bone
3ffbf31a2c Bug 1597154 - pt 3. Defer to documentchannel for process switching for all schemes r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D58899
2020-02-20 23:53:52 +00:00
Paul Bone
93ad29a003 Bug 1597154 - pt 1. Avoid redirecting loads between processes more than once r=mattwoodrow,kmag
This doesn't fix the bug, but it is a good idea.

Differential Revision: https://phabricator.services.mozilla.com/D57597
2020-02-20 23:53:07 +00:00
Christoph Kerschbaumer
930ed3e091 Bug 1601887 - XFO: Display error page but still fire onload event in case x-frame-options blocks a load.r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61862
2020-02-11 18:40:54 +00:00
Kris Maglione
d7e4043bb8 Bug 1582832: Part 1 - Make FrameLoader owner rather than DocShell responsible for discarding a BC. r=nika
There are all sorts of lifecycle issues which arise from making DocShell
responsible for discarding BrowsingContexts. In this particular bug, we tend
to run into them in cases where we create a BrowsingContext for a FrameLoader,
and then never create a DocShell for it, leading to it never being destroyed.
But there are myriad other issues as well.

This patch moves the responsibility for BrowsingContext lifecycle management
to the FrameLoader/FrameLoaderOwner, rather than the DocShell, which makes
things more consistent, and more closely aligns with spec-defined behavior.

Differential Revision: https://phabricator.services.mozilla.com/D59008
2020-02-06 19:07:56 +00:00
Boris Zbarsky
ba6aec1f83 Bug 1612529. document.open should clear form state from the SHEntry. r=smaug
Otherwise we're using state from the pre-open document for whatever content is
being written, which is not likely to be right.

Differential Revision: https://phabricator.services.mozilla.com/D61865
2020-02-06 17:49:44 +00:00
Boris Zbarsky
f3d9cda579 Backed out changeset ec4e3e080c1c because it introduces linting failures.
MANUAL PUSH: fast backout
2020-02-06 12:44:12 -05:00
Boris Zbarsky
483b229495 Bug 1612529. document.open should clear form state from the SHEntry. r=smaug
Otherwise we're using state from the pre-open document for whatever content is
being written, which is not likely to be right.

Differential Revision: https://phabricator.services.mozilla.com/D61865
2020-02-06 17:29:20 +00:00
Nihanth Subramanya
fd86f8fa69 Bug 1608713 - Add nsIWebNavigation load flags to force TRR mode and use them to load captive portal tabs with TRR disabled. r=valentin,Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D60860
2020-01-24 17:18:35 +00:00