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

Issue 2018353002: Avoid downloading unsupported `<source>` types in HTMLPreloadScanner (Closed)

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

Description

Avoid downloading unsupported `<source>` types in HTMLPreloadScanner The preloadScanner was picking non-matching sources as it was ignoring the `type` attribute. That resulted in unnecessary download. This CL fixes that. BUG=615473 Committed: https://crrev.com/56bef09698c3f96a3b8a0f776f4d964bb49bb2a3 Cr-Commit-Position: refs/heads/master@{#396742}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Simpler shouldPreload() logic #

Patch Set 3 : Fix CSS preloading issue tests revealed #

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

Messages

Total messages: 21 (6 generated)
Yoav Weiss
Hey Mike and Kouhei, Could you take a look at this patch? Apparently when I ...
4 years, 6 months ago (2016-05-30 07:53:00 UTC) #2
Mike West
lgtm
4 years, 6 months ago (2016-05-30 09:11:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018353002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018353002/1
4 years, 6 months ago (2016-05-30 09:13:31 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/2018353002/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/2018353002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode214 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:214: if (!shouldPreload() || !m_matched) { !m_matched check should go ...
4 years, 6 months ago (2016-05-30 10:44:31 UTC) #6
Yoav Weiss
https://codereview.chromium.org/2018353002/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/2018353002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode214 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:214: if (!shouldPreload() || !m_matched) { On 2016/05/30 10:44:31, kouhei ...
4 years, 6 months ago (2016-05-30 11:17:36 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/2018353002/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/2018353002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode465 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:465: bool m_matched; On 2016/05/30 11:17:36, Yoav Weiss wrote: > ...
4 years, 6 months ago (2016-05-30 11:26:22 UTC) #9
Yoav Weiss
On 2016/05/30 11:17:36, Yoav Weiss wrote: > https://codereview.chromium.org/2018353002/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/2018353002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode214 ...
4 years, 6 months ago (2016-05-30 11:26:42 UTC) #10
Yoav Weiss
On 2016/05/30 11:26:22, kouhei (catching up) wrote: > https://codereview.chromium.org/2018353002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp > File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): > > ...
4 years, 6 months ago (2016-05-30 11:49:47 UTC) #11
kouhei (in TOK)
On 2016/05/30 11:49:47, Yoav Weiss wrote: > On 2016/05/30 11:26:22, kouhei (catching up) wrote: > ...
4 years, 6 months ago (2016-05-30 13:15:39 UTC) #12
Yoav Weiss
On 2016/05/30 13:15:39, kouhei (catching up) wrote: > On 2016/05/30 11:49:47, Yoav Weiss wrote: > ...
4 years, 6 months ago (2016-05-30 13:16:54 UTC) #13
kouhei (in TOK)
lgtm % layout tests failure
4 years, 6 months ago (2016-05-30 15:15:27 UTC) #14
Yoav Weiss
On 2016/05/30 15:15:27, kouhei (catching up) wrote: > lgtm % layout tests failure test failures ...
4 years, 6 months ago (2016-05-30 15:49:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018353002/40001
4 years, 6 months ago (2016-05-30 16:53:48 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-30 17:39:40 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 17:40:42 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/56bef09698c3f96a3b8a0f776f4d964bb49bb2a3
Cr-Commit-Position: refs/heads/master@{#396742}

Powered by Google App Engine
This is Rietveld 408576698