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

Issue 2274233002: [Devtools] Fix reload behavior when devtools is open (Closed)

Created:
4 years, 3 months ago by allada
Modified:
4 years, 3 months ago
CC:
Nate Chapin, chromium-reviews, extensions-reviews_chromium.org, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Devtools] Fix reload behavior when devtools is open Fixed a bug where devtools was changing the reload behavior of chrome while it was open. This patch makes devtools follow the same behavior chrome does when refreshing. The memory cache was being ignored in the case when devtools was open devtools consumes the reload events and dispatches them to devtools front-end for directives on what to do. Front end was then dispatching a reload event back to browser but the directive that devtools was instructing was to ignore memory cache (same behavior that window.location.reload() would use), however if the user was to reload with devtools closed it would try and use the items in memory cache if available. Patch worth noting: https://codereview.chromium.org/1975753006 R=dgozman BUG=640687 Committed: https://crrev.com/ce98e6c4a756a41f57ff444a40267a66f52e91e8 Cr-Commit-Position: refs/heads/master@{#417669}

Patch Set 1 : [Devtools] Fix reload behavior when devtools is open #

Total comments: 15

Patch Set 2 : new methods #

Messages

Total messages: 42 (26 generated)
allada
PTAL and tell me what you think.
4 years, 3 months ago (2016-08-24 21:49:31 UTC) #10
allada
toyoshim@ could you also give me a lgtm on this too?
4 years, 3 months ago (2016-08-24 21:51:56 UTC) #12
dgozman
+caseq for extension test - could you please take a look? https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt (right): ...
4 years, 3 months ago (2016-08-24 23:09:42 UTC) #14
Takashi Toyoshima
https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp#oldcode419 third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp:419: m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, ClientRedirectPolicy::NotClientRedirect); When is this ...
4 years, 3 months ago (2016-08-25 08:00:34 UTC) #17
Takashi Toyoshima
https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp#oldcode419 third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp:419: m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, ClientRedirectPolicy::NotClientRedirect); I checked by ...
4 years, 3 months ago (2016-08-25 10:52:39 UTC) #18
caseq
> +caseq for extension test - could you please take a look? extensions tests lgtm
4 years, 3 months ago (2016-08-25 16:15:52 UTC) #19
allada
https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt (right): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt#newcode32 third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt:32: compression : <number> On 2016/08/24 23:09:42, dgozman wrote: > ...
4 years, 3 months ago (2016-08-25 17:30:09 UTC) #20
Takashi Toyoshima
https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp#oldcode419 third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp:419: m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, ClientRedirectPolicy::NotClientRedirect); Yes, if the ...
4 years, 3 months ago (2016-08-26 09:39:55 UTC) #21
Takashi Toyoshima
https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp#oldcode419 third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp:419: m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, ClientRedirectPolicy::NotClientRedirect); FYI, I will ...
4 years, 3 months ago (2016-08-29 11:55:36 UTC) #22
Takashi Toyoshima
Any other problems that block this CL? https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp#oldcode419 third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp:419: m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) ? ...
4 years, 3 months ago (2016-09-07 06:48:20 UTC) #23
allada
On 2016/09/07 06:48:20, toyoshim wrote: > Any other problems that block this CL? > > ...
4 years, 3 months ago (2016-09-07 18:20:32 UTC) #24
allada
PTL toyoshim@ and dgozman@ https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt (right): https://codereview.chromium.org/2274233002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt#newcode1 third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache-expected.txt:1: Tests that reloads when choming ...
4 years, 3 months ago (2016-09-07 21:15:38 UTC) #26
Takashi Toyoshima
reload LGTM
4 years, 3 months ago (2016-09-09 06:29:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2274233002/60001
4 years, 3 months ago (2016-09-09 17:32:37 UTC) #38
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 3 months ago (2016-09-09 19:35:15 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 19:37:40 UTC) #42
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ce98e6c4a756a41f57ff444a40267a66f52e91e8
Cr-Commit-Position: refs/heads/master@{#417669}

Powered by Google App Engine
This is Rietveld 408576698