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

Issue 2473113002: Stop preloading scripts that have invalid type/language attributes (Closed)

Created:
4 years, 1 month ago by cfredric (do not use)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, Yoav Weiss, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop preloading scripts that have invalid type/language attributes This is a followup on crbug.com/626321, which deprecated the preloading of scripts that have an invalid type/language attribute. This change will remove the deprecation and stop prefetching those scripts (and adds tests). BUG=662085

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move check to shouldPreload(). Remove deprecation artifacts. #

Total comments: 2

Patch Set 3 : Update layout test, add {} block #

Messages

Total messages: 13 (7 generated)
cfredric
4 years, 1 month ago (2016-11-03 17:46:32 UTC) #2
Charlie Harrison
Thanks! https://codereview.chromium.org/2473113002/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/2473113002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode256 third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:256: if (match(m_tagImpl, scriptTag) && Can this check be ...
4 years, 1 month ago (2016-11-03 21:00:41 UTC) #3
cfredric
On 2016/11/03 21:00:41, Charlie Harrison wrote: > Thanks! > > https://codereview.chromium.org/2473113002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp > File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): ...
4 years, 1 month ago (2016-11-04 14:05:42 UTC) #4
cfredric
4 years, 1 month ago (2016-11-04 14:09:19 UTC) #5
Charlie Harrison
Looking good! I think there may be some layout tests that need updating as well ...
4 years, 1 month ago (2016-11-04 14:37:08 UTC) #6
cfredric
4 years, 1 month ago (2016-11-04 17:40:33 UTC) #11
I'll start another dry run for this.

https://codereview.chromium.org/2473113002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right):

https://codereview.chromium.org/2473113002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp:484:
ScriptLoader::AllowLegacyTypeInTypeAttribute))
On 2016/11/04 14:37:08, Charlie Harrison wrote:
> Add { } blocks to the multi-line if statement (this got messed up because
blink
> style recently automatically changed to 80 col enforcement).

Done.

Powered by Google App Engine
This is Rietveld 408576698