Bug 1496997 - Remove ServiceWorkerParentInterceptEnabled() and callers r=asuth,dom-workers-and-storage-reviewers,necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D101785
This commit is contained in:
Yaron Tausky
2021-06-08 21:02:55 +00:00
parent 555d9e512d
commit 60cea25b8f
11 changed files with 12 additions and 102 deletions

View File

@@ -523,12 +523,11 @@ already_AddRefed<nsDocShell> nsDocShell::Create(
// Create our ContentListener
ds->mContentListener = new nsDSURIContentListener(ds);
// If parent intercept is not enabled then we must forward to
// the network controller from docshell. We also enable if we're
// in the parent process in order to support non-e10s configurations.
// We enable if we're in the parent process in order to support non-e10s
// configurations.
// Note: This check is duplicated in SharedWorkerInterfaceRequestor's
// constructor.
if (!ServiceWorkerParentInterceptEnabled() || XRE_IsParentProcess()) {
if (XRE_IsParentProcess()) {
ds->mInterceptController = new ServiceWorkerInterceptController();
}