Backed out changeset 86d1da74131f (bug 1264175) for causing mochitest failures in dom/serviceworkers/test/test_fetch_event.html CLOSED TREE

This commit is contained in:
shindli
2020-01-24 06:18:04 +02:00
parent 348fe0120e
commit a15d7fb755
17 changed files with 82 additions and 27 deletions

View File

@@ -9858,6 +9858,11 @@ nsresult nsDocShell::DoURILoad(nsDocShellLoadState* aLoadState,
return rv;
}
// Document loads should set the reload flag on the channel so that it
// can be exposed on the service worker FetchEvent.
rv = loadInfo->SetIsDocshellReload(mLoadType & LOAD_CMD_RELOAD);
NS_ENSURE_SUCCESS(rv, rv);
if (aLoadState->GetIsFromProcessingFrameAttributes()) {
loadInfo->SetIsFromProcessingFrameAttributes();
}