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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2611183007: PlzNavigate: Fix for the http/tests/inspector/resource-har-conversion.html layout test failure. (Closed)
Patch Set: Fix line endings Created 3 years, 11 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
Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 5d780754d11f74d3f14ae9294a9a6be4da8d3351..a0f4215c3546c69052934c29d5ac46df55d0b8bf 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -552,6 +552,12 @@ NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(
navigationInfo.isHistoryNavigationInNewChildFrame =
isHistoryNavigationInNewChildFrame;
navigationInfo.isClientRedirect = isClientRedirect;
+ // Caching could be disabled for requests initiated by DevTools.
+ // TODO(ananta)
+ // We should extract the network cache state into a global component which
+ // can be queried here and wherever necessary.
+ navigationInfo.isCacheDisabled =
+ devToolsAgent() ? devToolsAgent()->cacheDisabled() : false;
if (form)
navigationInfo.form = WebFormElement(form);

Powered by Google App Engine
This is Rietveld 408576698