gecko-dev/docshell
Anny Gakhokidze e903c66d34 Bug 1589102 - Part 1: Enable about:srcdoc loads via DocumentChannel, r=mattwoodrow
This patch enables sandboxed srcdoc loads to take place via DocumentChannel,
and adds mechanisms for enabling unsandboxed ones.

Both unsandboxed srcdoc, and in subsequent patches, about:blank, loads require
that the triggering principal and the principal to inherit point to the same
instance if the load takes place in the same process as where we are inheriting
those principals from. We save those principals on a target browsing context before
we load the URI, and later, when we are deserializing LoadInfoArgs into
LoadInfo in the content process, we retrieve the saved principals if the
current load identifier of the target BC matches the load identifier saved
along with the principals.

We also need to make sure that during a process switch for about:srcdoc load,
we don't use the original URI for about:srcdoc to determine the remote type and
instead we use channel's result principal.

Differential Revision: https://phabricator.services.mozilla.com/D85079
2020-08-05 16:44:01 +00:00
..
base Bug 1589102 - Part 1: Enable about:srcdoc loads via DocumentChannel, r=mattwoodrow 2020-08-05 16:44:01 +00:00
build Bug 1635253 - Add new about:glean to control Glean SDK debugging, logging r=janerik,flod 2020-07-30 16:35:17 +00:00
resources/content Bug 1562642 - add missing license in docshell/resources/content/netError.js r=smaug 2019-11-12 08:26:18 +00:00
shistory Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-02 15:29:15 +00:00
test Bug 1589102 - Part 1: Enable about:srcdoc loads via DocumentChannel, r=mattwoodrow 2020-08-05 16:44:01 +00:00
moz.build Bug 1594981 - update Core::DOM* and Core::Storage* bugzilla product and component meta data in moz.build files after reorganization in bug 1594717. r=annevk 2019-11-08 12:17:57 +00:00