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

Issue 2099583002: When pumping tokens yield for scripts waiting for resources. (Closed)

Created:
4 years, 6 months ago by dominicc (has gone to gerrit)
Modified:
4 years, 5 months ago
Reviewers:
kouhei (in TOK)
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, Charlie Harrison, 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

When pumping tokens yield for scripts waiting for resources. This fixes a null-deref which you can see if you open third_party/WebKit/LayoutTests/fast/parser/resources/ (note: resources) write-script-waiting-for-style-crash.html standalone. HTMLDocumentParser::canTakeNextToken was assuming that only the tree builder can block the parser; now it checks that. BUG=573921 Committed: https://crrev.com/e75f7662727fbbd08cc730c41b3c63da7d61c36c Cr-Commit-Position: refs/heads/master@{#402101}

Patch Set 1 #

Patch Set 2 : Improved test. #

Total comments: 1

Patch Set 3 : Format the test files and add a reference to the bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/fast/parser/resources/write-script-waiting-for-style-crash.html View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/parser/write-script-waiting-for-style-crash.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/parser/write-script-waiting-for-style-crash-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
dominicc (has gone to gerrit)
PTAL As you predicted, it looks like this is a callsite that wasn't updated for ...
4 years, 6 months ago (2016-06-24 02:32:04 UTC) #2
dominicc (has gone to gerrit)
Hmm, looks like the test needs work in release.
4 years, 6 months ago (2016-06-24 05:53:01 UTC) #3
dominicc (has gone to gerrit)
On 2016/06/24 at 05:53:01, dominicc wrote: > Hmm, looks like the test needs work in ...
4 years, 6 months ago (2016-06-24 06:43:36 UTC) #5
dominicc (has gone to gerrit)
On 2016/06/24 at 06:43:36, dominicc wrote: > On 2016/06/24 at 05:53:01, dominicc wrote: > > ...
4 years, 6 months ago (2016-06-24 08:02:02 UTC) #6
dominicc (has gone to gerrit)
PTAL
4 years, 6 months ago (2016-06-24 08:02:55 UTC) #8
kouhei (in TOK)
Code change lgtm https://codereview.chromium.org/2099583002/diff/20001/third_party/WebKit/LayoutTests/fast/parser/resources/write-script-waiting-for-style-crash.html File third_party/WebKit/LayoutTests/fast/parser/resources/write-script-waiting-for-style-crash.html (right): https://codereview.chromium.org/2099583002/diff/20001/third_party/WebKit/LayoutTests/fast/parser/resources/write-script-waiting-for-style-crash.html#newcode11 third_party/WebKit/LayoutTests/fast/parser/resources/write-script-waiting-for-style-crash.html:11: <iframe></iframe> Please format. Would it be ...
4 years, 6 months ago (2016-06-24 09:02:55 UTC) #9
dominicc (has gone to gerrit)
On 2016/06/24 at 09:02:55, kouhei wrote: > Would it be possible to create a test ...
4 years, 5 months ago (2016-06-27 01:54:20 UTC) #10
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/2099583002/40001
4 years, 5 months ago (2016-06-27 01:54:40 UTC) #13
kouhei (in TOK)
still lgtm On 2016/06/27 01:54:20, dominicc wrote: > On 2016/06/24 at 09:02:55, kouhei wrote: > ...
4 years, 5 months ago (2016-06-27 02:06:37 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-27 03:03:33 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 03:04:54 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e75f7662727fbbd08cc730c41b3c63da7d61c36c
Cr-Commit-Position: refs/heads/master@{#402101}

Powered by Google App Engine
This is Rietveld 408576698