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 1372343002: Crash fix: Avoid using stale HTMLToken after tree construction (Closed)

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

Description

Crash fix: Avoid using stale HTMLToken after tree construction BUG=526286, 468406 Committed: https://crrev.com/944deb3adba8aae2a1fc793937a93a051f08e7d7 Cr-Commit-Position: refs/heads/master@{#352035}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix logic #

Patch Set 3 : move m_framesetOk #

Patch Set 4 : add comments #

Patch Set 5 : add tests #

Patch Set 6 : add TODO about mutation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/parser/strip-script-attrs-on-input.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/parser/strip-script-attrs-on-input-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 29 (8 generated)
kouhei (in TOK)
I failed to create a reliable repro test case for this. I'd like to rely ...
5 years, 2 months ago (2015-09-29 03:46:18 UTC) #2
Yoav Weiss
On 2015/09/29 03:46:18, kouhei (catching-up) wrote: > I failed to create a reliable repro test ...
5 years, 2 months ago (2015-09-29 06:06:30 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372343002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372343002/1
5 years, 2 months ago (2015-09-29 06:46:26 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/126769)
5 years, 2 months ago (2015-09-29 07:11:42 UTC) #7
Yoav Weiss
https://codereview.chromium.org/1372343002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp File third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp (right): https://codereview.chromium.org/1372343002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp#newcode799 third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp:799: m_framesetOk = disableFrameset; Can you detail what you suspect ...
5 years, 2 months ago (2015-09-29 07:12:42 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/1372343002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp File third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp (right): https://codereview.chromium.org/1372343002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp#newcode799 third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp:799: m_framesetOk = disableFrameset; On 2015/09/29 07:12:42, Yoav Weiss wrote: ...
5 years, 2 months ago (2015-09-29 07:32:18 UTC) #9
kouhei (in TOK)
OK. I have better understanding of this bug now. Please review code changes in PS#4. ...
5 years, 2 months ago (2015-10-01 12:38:31 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372343002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372343002/80001
5 years, 2 months ago (2015-10-02 06:35:47 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-02 07:59:22 UTC) #14
kouhei (in TOK)
Added tests. Please take a look. On 2015/10/01 12:38:31, kouhei (catching-up) wrote: > OK. I ...
5 years, 2 months ago (2015-10-02 08:52:37 UTC) #15
Yoav Weiss
On 2015/10/02 08:52:37, kouhei (catching-up) wrote: > Added tests. Please take a look. > > ...
5 years, 2 months ago (2015-10-02 08:57:42 UTC) #16
kouhei (in TOK)
On 2015/10/02 08:57:42, Yoav Weiss wrote: > On 2015/10/02 08:52:37, kouhei (catching-up) wrote: > > ...
5 years, 2 months ago (2015-10-02 09:00:31 UTC) #17
kouhei (in TOK)
On 2015/10/02 09:00:31, kouhei (catching-up) wrote: > On 2015/10/02 08:57:42, Yoav Weiss wrote: > > ...
5 years, 2 months ago (2015-10-02 09:02:29 UTC) #18
Yoav Weiss
On 2015/10/02 09:00:31, kouhei (catching-up) wrote: > On 2015/10/02 08:57:42, Yoav Weiss wrote: > > ...
5 years, 2 months ago (2015-10-02 09:03:49 UTC) #19
Yoav Weiss
On 2015/10/02 09:03:49, Yoav Weiss wrote: > On 2015/10/02 09:00:31, kouhei (catching-up) wrote: > > ...
5 years, 2 months ago (2015-10-02 09:28:20 UTC) #20
kouhei (in TOK)
Thanks for the review! > > > > Just to make sure, the test you ...
5 years, 2 months ago (2015-10-02 09:29:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372343002/100001
5 years, 2 months ago (2015-10-02 09:30:26 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/76984)
5 years, 2 months ago (2015-10-02 13:35:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372343002/100001
5 years, 2 months ago (2015-10-02 13:37:15 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-02 14:57:30 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 14:58:19 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/944deb3adba8aae2a1fc793937a93a051f08e7d7
Cr-Commit-Position: refs/heads/master@{#352035}

Powered by Google App Engine
This is Rietveld 408576698