diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 7ebae42325b..209c242ae90 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -10897,17 +10897,14 @@ nsDocShell::DoChannelLoad(nsIChannel* aChannel, loadFlags |= nsIChannel::LOAD_CLASSIFY_URI; } - (void)aChannel->SetLoadFlags(loadFlags); - // If the user pressed shift-reload, then do not allow ServiceWorker // interception to occur. See step 12.1 of the SW HandleFetch algorithm. if (IsForceReloadType(mLoadType)) { - nsCOMPtr internal = do_QueryInterface(aChannel); - if (internal) { - internal->ForceNoIntercept(); - } + loadFlags |= nsIChannel::LOAD_BYPASS_SERVICE_WORKER; } + (void)aChannel->SetLoadFlags(loadFlags); + uint32_t openFlags = 0; if (mLoadType == LOAD_LINK) { openFlags |= nsIURILoader::IS_CONTENT_PREFERRED;