Bug 1607984 - P17. Put ParentProcessDocumentChannel behind a pref. r=necko-reviewers,mattwoodrow

We disable it for now, until some remaining failures are sorted out.

Differential Revision: https://phabricator.services.mozilla.com/D71875
This commit is contained in:
Jean-Yves Avenard 2020-04-24 01:46:25 +00:00
Родитель 119b12fc17
Коммит 55a6e2ac80
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -979,6 +979,11 @@
value: true
mirror: always
- name: browser.tabs.documentchannel.ppdc
type: bool
value: false
mirror: always
- name: browser.tabs.remote.desktopbehavior
type: bool
value: false

Просмотреть файл

@ -153,6 +153,12 @@ static bool URIUsesDocChannel(nsIURI* aURI) {
bool DocumentChannel::CanUseDocumentChannel(nsDocShellLoadState* aLoadState) {
MOZ_ASSERT(aLoadState);
if (XRE_IsParentProcess() &&
!StaticPrefs::browser_tabs_documentchannel_ppdc()) {
return false;
}
// We want to use DocumentChannel if we're using a supported scheme. Sandboxed
// srcdoc loads break due to failing assertions after changing processes, and
// non-sandboxed srcdoc loads need to share the same principal object as their