Commit bb28eb94 authored by Andrey Kosyakov's avatar Andrey Kosyakov Committed by Commit Bot

DevTools: ignore provisional frames when loading cached resources

Bug: 1096278
Change-Id: I1fa22fb963cc225b95447cb9caea12f030bead90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324886Reviewed-by: default avatarŁukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792779}
parent 28610479
...@@ -69,6 +69,8 @@ void InspectorResourceContentLoader::Start() { ...@@ -69,6 +69,8 @@ void InspectorResourceContentLoader::Start() {
InspectedFrames* inspected_frames = InspectedFrames* inspected_frames =
MakeGarbageCollected<InspectedFrames>(inspected_frame_); MakeGarbageCollected<InspectedFrames>(inspected_frame_);
for (LocalFrame* frame : *inspected_frames) { for (LocalFrame* frame : *inspected_frames) {
if (!frame->Loader().StateMachine()->CommittedFirstRealDocumentLoad())
continue;
documents.push_back(frame->GetDocument()); documents.push_back(frame->GetDocument());
documents.AppendVector(InspectorPageAgent::ImportsForFrame(frame)); documents.AppendVector(InspectorPageAgent::ImportsForFrame(frame));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment