Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 587213003: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/serviceworkers/FetchRequestData.cpp » ('j') | public/platform/WebURLRequest.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index a84e88298f230661b670109fc04f05067b1f18c2..e9a37c70f7fee01e1e10dfcaf2c4fb279ddce01d 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -825,7 +825,8 @@ void FrameLoader::reload(ReloadPolicy reloadPolicy, const KURL& overrideURL, con
request.setURL(overrideURL);
request.clearHTTPReferrer();
}
- request.setSkipServiceWorker(reloadPolicy == EndToEndReload);
+ if (reloadPolicy == EndToEndReload)
+ request.setServiceWorkerRequestMode(WebURLRequest::ServiceWorkerRequestModeSkip);
FrameLoadType type = reloadPolicy == EndToEndReload ? FrameLoadTypeReloadFromOrigin : FrameLoadTypeReload;
loadWithNavigationAction(NavigationAction(request, type), type, nullptr, SubstituteData(), CheckContentSecurityPolicy, clientRedirectPolicy, overrideEncoding);
« no previous file with comments | « no previous file | Source/modules/serviceworkers/FetchRequestData.cpp » ('j') | public/platform/WebURLRequest.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698