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

Issue 2381193004: Use sheetText() instead of decodedText() in the CSS preload scanner (Closed)

Created:
4 years, 2 months ago by Charlie Harrison
Modified:
4 years, 2 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-style_chromium.org, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use sheetText() instead of decodedText() in the CSS preload scanner sheetText() has proper null checks for the underlying data buffer. This CL also adds a check for hasClient() to prevent notifying a client that has already been removed. This CL also adds a regression tests for a previous issue, 645331. BUG=646869, 645331 Committed: https://crrev.com/86f86835d8d5c33a6fa40cf12511ee1f9d5337e5 Cr-Commit-Position: refs/heads/master@{#422505}

Patch Set 1 #

Patch Set 2 : unit tests #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -2 lines) Patch
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp View 1 2 2 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
Charlie Harrison
japhet@, would you PTAL at this fairly straightforward CL?
4 years, 2 months ago (2016-09-30 14:10:49 UTC) #7
Nate Chapin
LGTM, but would you mind taking a quick look at whether we can make TextResource::decodedText() ...
4 years, 2 months ago (2016-09-30 23:08:51 UTC) #10
Charlie Harrison
On 2016/09/30 23:08:51, Nate Chapin wrote: > LGTM, but would you mind taking a quick ...
4 years, 2 months ago (2016-10-03 03:38:56 UTC) #11
Charlie Harrison
I could expose it off only ScriptResource if you want though.
4 years, 2 months ago (2016-10-03 03:40:02 UTC) #12
Charlie Harrison
Think I'll just land this as-is, we can explore moving decodedText into ScriptResource but there ...
4 years, 2 months ago (2016-10-03 16:32:39 UTC) #13
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/2381193004/40001
4 years, 2 months ago (2016-10-03 16:33:06 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-03 20:07:35 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 20:09:49 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/86f86835d8d5c33a6fa40cf12511ee1f9d5337e5
Cr-Commit-Position: refs/heads/master@{#422505}

Powered by Google App Engine
This is Rietveld 408576698