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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp

Issue 2274233002: [Devtools] Fix reload behavior when devtools is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Devtools] Fix reload behavior when devtools is open Created 4 years, 4 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/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 9c6aca3117d6cee362021f6b2d0087b8ce3fa668..ed761df49d4f59554a25f68fdb58992f10da436b 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -416,7 +416,7 @@ void InspectorPageAgent::reload(ErrorString*, const Maybe<bool>& optionalBypassC
m_pendingScriptToEvaluateOnLoadOnce = optionalScriptToEvaluateOnLoad.fromMaybe("");
m_v8Session->setSkipAllPauses(true);
m_reloading = true;
- m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, ClientRedirectPolicy::NotClientRedirect);
Takashi Toyoshima 2016/08/25 08:00:34 When is this method called? Now, FrameLoadTypeRel
Takashi Toyoshima 2016/08/25 10:52:39 I checked by myself. This will fix the issue that
allada 2016/08/25 17:30:10 I see that's where I was confused, in my ToT versi
Takashi Toyoshima 2016/08/26 09:39:55 Yes, if the setting is default, 50% of ToT/Canary/
Takashi Toyoshima 2016/08/29 11:55:36 FYI, I will plumb the flag for another purpose. Se
Takashi Toyoshima 2016/09/07 06:48:20 Now the flag is available in Blink. So, this could
allada 2016/09/07 21:15:36 Done.
+ m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReloadMainResource, ClientRedirectPolicy::NotClientRedirect);
}
void InspectorPageAgent::navigate(ErrorString*, const String& url, String* outFrameId)

Powered by Google App Engine
This is Rietveld 408576698