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

Issue 2717303002: Considering HTMLTokenizer state in HTMLSourceTracker (Closed)

Created:
3 years, 9 months ago by wanchang
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, kinuko+watch, loading-reviews+parser_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Considering HTMLTokenizer state in HTMLSourceTracker HTMLSourceTracker takes account of HTMLTokenizer's temporary buffor when tracking source location of token. But in some of ScriptDataXXX states, characters are already pushed as token's characters so in that cases we don't need to consider temporary buffer of tokenizer. BUG=692910 TEST=fast/frames/viewsource/* Review-Url: https://codereview.chromium.org/2717303002 Cr-Commit-Position: refs/heads/master@{#455427} Committed: https://chromium.googlesource.com/chromium/src/+/e39d4d6f3fb1b4d558bd2d2eca1d603bec1c588f

Patch Set 1 #

Patch Set 2 : Considering HTMLTokenizer state in HTMLSourceTracker #

Total comments: 1

Patch Set 3 : Considering HTMLTokenizer state in HTMLSourceTracker #

Patch Set 4 : Considering HTMLTokenizer state in HTMLSourceTracker #

Total comments: 6

Patch Set 5 : Considering HTMLTokenizer state in HTMLSourceTracker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -19 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/frames/viewsource/viewsource-9.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/frames/viewsource/viewsource-9-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp View 1 2 3 4 3 chunks +18 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTokenizer.cpp View 1 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
wanchang
I uploaded the fix for the bug https://bugs.chromium.org/p/chromium/issues/detail?id=692910. After debugging the problem, I found that ...
3 years, 9 months ago (2017-02-27 10:53:51 UTC) #3
Charlie Harrison
This seems ok but it feels very fragile to have this static list of states ...
3 years, 9 months ago (2017-02-27 14:42:03 UTC) #5
wanchang
On 2017/02/27 14:42:03, Charlie Harrison wrote: > This seems ok but it feels very fragile ...
3 years, 9 months ago (2017-02-28 00:28:24 UTC) #6
Charlie Harrison
On 2017/02/28 00:28:24, wanchang wrote: > On 2017/02/27 14:42:03, Charlie Harrison wrote: > > This ...
3 years, 9 months ago (2017-02-28 13:55:43 UTC) #7
wanchang
On 2017/02/28 13:55:43, Charlie Harrison wrote: > On 2017/02/28 00:28:24, wanchang wrote: > > On ...
3 years, 9 months ago (2017-02-28 22:05:52 UTC) #8
wanchang
On 2017/02/28 22:05:52, wanchang wrote: > On 2017/02/28 13:55:43, Charlie Harrison wrote: > > On ...
3 years, 9 months ago (2017-03-06 02:05:18 UTC) #9
Charlie Harrison
This LGTM (with a small nit). I'm going to run the try bots on the ...
3 years, 9 months ago (2017-03-06 14:59:57 UTC) #10
Charlie Harrison
Looks like existing tests are failing with this change. I'm going to Not LGTM until ...
3 years, 9 months ago (2017-03-06 17:55:01 UTC) #15
wanchang
On 2017/03/06 17:55:01, Charlie Harrison wrote: > Looks like existing tests are failing with this ...
3 years, 9 months ago (2017-03-07 02:33:22 UTC) #16
Charlie Harrison
Looks like tests are happy, just few last minute nits. https://codereview.chromium.org/2717303002/diff/60001/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp File third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp (right): https://codereview.chromium.org/2717303002/diff/60001/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp#newcode44 ...
3 years, 9 months ago (2017-03-07 18:37:51 UTC) #29
wanchang
Please take a look. https://codereview.chromium.org/2717303002/diff/60001/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp File third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp (right): https://codereview.chromium.org/2717303002/diff/60001/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp#newcode44 third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp:44: m_previousSource.append(m_currentSource); On 2017/03/07 18:37:48, Charlie ...
3 years, 9 months ago (2017-03-08 00:35:35 UTC) #30
Charlie Harrison
Thanks, this LGTM!
3 years, 9 months ago (2017-03-08 04:03:02 UTC) #31
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/2717303002/80001
3 years, 9 months ago (2017-03-08 04:42:51 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/379046)
3 years, 9 months ago (2017-03-08 05:24:47 UTC) #35
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/2717303002/80001
3 years, 9 months ago (2017-03-08 09:49:50 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 11:01:10 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/e39d4d6f3fb1b4d558bd2d2eca1d...

Powered by Google App Engine
This is Rietveld 408576698