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); |