Narcis Beleuzu
0668c5ab4c
Backed out 6 changesets (bug 1626404) for assertion failures on BrowsingContext.cpp . CLOSED TREE
...
Backed out changeset aed006ab4c20 (bug 1626404)
Backed out changeset ad87dcb98637 (bug 1626404)
Backed out changeset c065bd4594b4 (bug 1626404)
Backed out changeset a248fc78ab0c (bug 1626404)
Backed out changeset 52892d053ff1 (bug 1626404)
Backed out changeset 440b9193338a (bug 1626404)
2020-04-04 05:29:30 +03:00
Kris Maglione
98bd7e4124
Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69421
2020-04-04 00:36:30 +00:00
Kris Maglione
1c110e1fd9
Bug 1626404: Part 3 - Do sandbox flag checks at both ends of cross-process loads. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69420
2020-04-04 00:12:57 +00:00
Kris Maglione
31f94f56a7
Bug 1626404: Part 2a - Store source BrowsingContext rather than DocShell in LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69418
2020-04-04 00:13:01 +00:00
Kris Maglione
99164ee547
Bug 1626404: Part 1 - Move IsSandboxedFrom to BrowsingContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69417
2020-04-04 00:13:04 +00:00
Narcis Beleuzu
518dd9a134
Backed out 6 changesets (bug 1626404) for bustages on LocationBase.cpp . CLOSED TREE
...
Backed out changeset a399dfff2725 (bug 1626404)
Backed out changeset ad3272abd830 (bug 1626404)
Backed out changeset 322c170e8301 (bug 1626404)
Backed out changeset df37f57cfa1d (bug 1626404)
Backed out changeset e255e4c9e665 (bug 1626404)
Backed out changeset 51120d617459 (bug 1626404)
2020-04-04 02:42:18 +03:00
Kris Maglione
6d933b2e13
Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69421
2020-04-03 22:42:25 +00:00
Kris Maglione
e4f39e6caa
Bug 1626404: Part 3 - Do sandbox flag checks at both ends of cross-process loads. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69420
2020-04-03 22:42:17 +00:00
Kris Maglione
f370ac6fdf
Bug 1626404: Part 2a - Store source BrowsingContext rather than DocShell in LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69418
2020-04-03 22:41:29 +00:00
Kris Maglione
a5d565da2f
Bug 1626404: Part 1 - Move IsSandboxedFrom to BrowsingContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69417
2020-04-03 22:41:26 +00:00
Olli Pettay
672db2afe9
Bug 1620818 - Release nsDocShell::mContentViewer properly. r=nika,peterv a=dveditz
...
Differential Revision: https://phabricator.services.mozilla.com/D69383
2020-04-02 14:43:50 +00:00
Matt Woodrow
59af4dafea
Bug 1626417 - Try enabling DocumentChannel for about:privatebrowsing. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69096
2020-04-02 00:47:43 +00:00
Paul Bone
9c3612e76f
Bug 1597154 - pt 4. Rename SchemeUsesDocChannel r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D59823
2020-04-01 00:33:31 +00:00
Paul Bone
df3100255b
Bug 1597154 - pt 3. Flip documentchannel whitelist to blacklist r=mattwoodrow
...
This fixes 1597154 because the lists of URIs here and in nsDocShell now
match.
Note that they don't exactly match, there's an exception for about:newtab
which we'll fix in a follow-up bug.
Differential Revision: https://phabricator.services.mozilla.com/D69136
2020-04-01 01:17:13 +00:00
Paul Bone
152660fe2d
Bug 1597154 - pt 1. Add a comment about checking GetPendingRedirectedChannel r=mattwoodrow,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D57597
2020-04-01 00:32:17 +00:00
sonakshi
3f409eb5d3
Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D67729
2020-03-31 18:47:30 +00:00
Razvan Maries
548846f7f9
Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE
2020-03-31 17:18:38 +03:00
sonakshi
f81266b3a5
Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D67729
2020-03-31 13:38:55 +00:00
Emilio Cobos Álvarez
ed9160f93b
Bug 1625792 - Remove nsIURIContentListener.onStartURIOpen. r=mattwoodrow
...
It's only used to check whether the docshell is gone already, and we need to
deal with that in other places anyway. No other useful implementation.
In comm-central there are a couple, but they're useless too.
Differential Revision: https://phabricator.services.mozilla.com/D68731
2020-03-29 22:10:09 +00:00
Emilio Cobos Álvarez
4f09c5fde0
Bug 1528305 - Don't show an error page for unknown protocols for page-triggered navigations that replace a document. r=mattwoodrow
...
Pages apparently do this to try to open to native apps, and that on Firefox
causes an error page to be shown if the app is not installed, which is pretty
bad.
Differential Revision: https://phabricator.services.mozilla.com/D68471
2020-03-27 17:20:14 +00:00
Csoregi Natalia
89adce6d10
Backed out changeset 8aeb06899b10 (bug 1528305) for failures on test_location_href_unknown_protocol.html. CLOSED TREE
2020-03-27 08:07:32 +02:00
Emilio Cobos Álvarez
9f539611c5
Bug 1528305 - Don't show an error page for unknown protocols for page-triggered navigations that replace a document. r=mattwoodrow
...
Pages apparently do this to try to open to native apps, and that on Firefox
causes an error page to be shown if the app is not installed, which is pretty
bad.
Differential Revision: https://phabricator.services.mozilla.com/D68471
2020-03-27 00:06:25 +00:00
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