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

Issue 1982263002: Fix preloadScanner double download issue with link preload and media (Closed)

Created:
4 years, 7 months ago by Yoav Weiss
Modified:
4 years, 7 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, Yoav Weiss, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix preloadScanner double download issue with link preload and media The preloadScanner was not checking the media attribute when preloading <link rel=preload> based resources, due to a bug that bypassed that logic for preloads. This CL fixes that and adds unit tests to make sure it stays fixed. BUG=612443 Committed: https://crrev.com/dd9e1daef514feb5f0b1e0788f57b68b4adeec84 Cr-Commit-Position: refs/heads/master@{#394932}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -14 lines) Patch
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 1 1 chunk +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp View 2 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Yoav Weiss
Hey Nate! Turns out this pesky `else` is preventing the "if media attribute doesn't match, ...
4 years, 7 months ago (2016-05-17 13:55:53 UTC) #3
Nate Chapin
https://codereview.chromium.org/1982263002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): https://codereview.chromium.org/1982263002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode214 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:214: if (isLinkRelPreload()) { Which of these cases really should ...
4 years, 7 months ago (2016-05-17 17:16:55 UTC) #4
Yoav Weiss
https://codereview.chromium.org/1982263002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): https://codereview.chromium.org/1982263002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode214 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:214: if (isLinkRelPreload()) { On 2016/05/17 17:16:55, Nate Chapin wrote: ...
4 years, 7 months ago (2016-05-17 21:45:49 UTC) #5
Nate Chapin
lgtm
4 years, 7 months ago (2016-05-19 19:58:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982263002/20001
4 years, 7 months ago (2016-05-19 20:00:34 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-20 00:41:08 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 00:42:51 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dd9e1daef514feb5f0b1e0788f57b68b4adeec84
Cr-Commit-Position: refs/heads/master@{#394932}

Powered by Google App Engine
This is Rietveld 408576698