DescriptionPlzNavigate: Fix for the http/tests/inspector/resource-har-conversion.html layout test failure.
This test turns off caching for the reload request initiated via the DevTools network agent.
Without PlzNavigate, this goes through the normal resource load path, where in
RenderFrameImpl::decidePolicyForNavigation is invoked after which the cache policy is set in
the WebURLRequest to disabled correctly.
With PlzNavigate, the reload request is sent out to the browser via the BeginNavigate IPC
in RenderFrameImpl::decidePolicyForNavigation() and we indicate to blink that the client
handled the request.
As a result the cache policy does not get set to disabled.
Fix is to add query the dev tools agent if caching is disabled. To achieve this following changes
were needed.
1. Add a virtual function cacheDisabled() to the WebDevToolsAgent class.
2. This function calls to the newly added cacheDisabled() function in the InspectorNetworkAgent class.
which checks the state variable for the same.
BUG=673745
Review-Url: https://codereview.chromium.org/2611183007
Cr-Commit-Position: refs/heads/master@{#442773}
Committed: https://chromium.googlesource.com/chromium/src/+/9c22f660541434f9666391a38895d4d20d487d03
Patch Set 1 #
Total comments: 5
Patch Set 2 : Add a flag isCacheDisabled to the NavigationPolicyInfo structure #Patch Set 3 : Force PlzNavigate to true for try runs #Patch Set 4 : Reverting force PlzNavigate as this patch only affects layout tests #Patch Set 5 : Rebaseline enable-browser-side-navigation #
Total comments: 3
Patch Set 6 : Fix line endings #Depends on Patchset: Messages
Total messages: 35 (24 generated)
|