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

Issue 2160403002: Dont preload from link headers if the response came from MemoryCache (Closed)

Created:
4 years, 5 months ago by Charlie Harrison
Modified:
4 years, 5 months ago
Reviewers:
Yoav Weiss, Nate Chapin
CC:
chromium-reviews, gavinp+prerender_chromium.org, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dont preload from link headers if the response came from MemoryCache This patch ensures that in we don't end up in a stack overflow if a resource in memory cache has link headers directing to preload itself. BUG=628904 Committed: https://crrev.com/ef9c921d6ff92819b8d91b604a2255fbe2fef068 Cr-Commit-Position: refs/heads/master@{#406534}

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -24 lines) Patch
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 4 chunks +27 lines, -24 lines 5 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 chunk +3 lines, -0 lines 3 comments Download

Messages

Total messages: 21 (8 generated)
Charlie Harrison
japhet@, can you take a look? I had trouble replicating this bug in a layout ...
4 years, 5 months ago (2016-07-19 20:38:55 UTC) #4
Yoav Weiss
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode789 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:789: void FrameFetchContext::dispatchDidReceiveResponseInternal(unsigned long identifier, const ResourceResponse& response, WebURLRequest::FrameType frameType, ...
4 years, 5 months ago (2016-07-19 21:04:04 UTC) #6
Charlie Harrison
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode789 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:789: void FrameFetchContext::dispatchDidReceiveResponseInternal(unsigned long identifier, const ResourceResponse& response, WebURLRequest::FrameType frameType, ...
4 years, 5 months ago (2016-07-19 21:11:03 UTC) #7
Yoav Weiss
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode789 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:789: void FrameFetchContext::dispatchDidReceiveResponseInternal(unsigned long identifier, const ResourceResponse& response, WebURLRequest::FrameType frameType, ...
4 years, 5 months ago (2016-07-19 21:14:22 UTC) #8
Charlie Harrison
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode318 third_party/WebKit/Source/core/loader/LinkLoader.cpp:318: continue; On 2016/07/19 21:14:22, Yoav Weiss wrote: > Is ...
4 years, 5 months ago (2016-07-19 21:23:52 UTC) #9
Yoav Weiss
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode318 third_party/WebKit/Source/core/loader/LinkLoader.cpp:318: continue; On 2016/07/19 21:23:52, csharrison wrote: > On 2016/07/19 ...
4 years, 5 months ago (2016-07-19 21:29:48 UTC) #10
Charlie Harrison
https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2160403002/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode371 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:371: dispatchDidReceiveResponseInternal(identifier, resource->response(), frameType, requestContext, resource, LinkLoader::DoNotLoadResources); To answer your ...
4 years, 5 months ago (2016-07-19 21:35:39 UTC) #11
Yoav Weiss
LGTM. On the one hand, I'm not sure the baseURL != url check wouldn't have ...
4 years, 5 months ago (2016-07-19 21:43:02 UTC) #12
Charlie Harrison
You're right the sanity check would have been enough to solve this specific issue, but ...
4 years, 5 months ago (2016-07-19 21:48:53 UTC) #13
Yoav Weiss
On 2016/07/19 21:48:53, csharrison wrote: > You're right the sanity check would have been enough ...
4 years, 5 months ago (2016-07-20 09:00:32 UTC) #16
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/2160403002/1
4 years, 5 months ago (2016-07-20 12:05:00 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-20 12:59:17 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 13:01:33 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ef9c921d6ff92819b8d91b604a2255fbe2fef068
Cr-Commit-Position: refs/heads/master@{#406534}

Powered by Google App Engine
This is Rietveld 408576698