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

Issue 2369853002: HTML parser: implementing throw-on-dynamic-markup-insertion counter (Closed)

Created:
4 years, 2 months ago by davaajav
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, loading-reviews+parser_chromium.org, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HTML parser: implementing throw-on-dynamic-markup-insertion counter https://html.spec.whatwg.org/#throw-on-dynamic-markup-insertion-counter Custom Element constructor should not be able to use document.write(), document.open(), document.close(). https://html.spec.whatwg.org/#dom-document-write https://html.spec.whatwg.org/#dom-document-open https://html.spec.whatwg.org/#dom-document-close Throw-on-dynamic-markup-insertion count is incremented/decremented in create an element for the token algorithm. https://html.spec.whatwg.org/#create-an-element-for-the-token Layout test changes: Custom Element constructor should not use document.write(), for both "destructive" and "non-destructive" writes. BUG=647586 Committed: https://crrev.com/89a6eed72ae35c6219934b7a11b61dfc60819b97 Cr-Commit-Position: refs/heads/master@{#422042}

Patch Set 1 #

Patch Set 2 : reentry permit condition change #

Patch Set 3 : reentry permit condition check #

Patch Set 4 : reentry permit check #

Total comments: 5

Patch Set 5 : patch update #

Total comments: 1

Patch Set 6 : copyright comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -21 lines) Patch
M third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html View 1 2 3 4 3 chunks +29 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 4 chunks +16 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp View 1 2 3 3 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
davaajav
PTL
4 years, 2 months ago (2016-09-26 07:41:11 UTC) #2
dominicc (has gone to gerrit)
Very nice; some comments and questions inline. https://codereview.chromium.org/2369853002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html File third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html (right): https://codereview.chromium.org/2369853002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html#newcode128 third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html:128: // throws ...
4 years, 2 months ago (2016-09-28 08:01:03 UTC) #23
dominicc (has gone to gerrit)
+domenic FYI
4 years, 2 months ago (2016-09-28 08:01:23 UTC) #26
davaajav
PTL https://codereview.chromium.org/2369853002/diff/80001/third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h File third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h (right): https://codereview.chromium.org/2369853002/diff/80001/third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h#newcode38 third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h:38: explicit ThrowOnDynamicMarkupInsertionCountIncrementer(Document* document) This seems to be the ...
4 years, 2 months ago (2016-09-29 07:39:40 UTC) #27
dominicc (has gone to gerrit)
lgtm
4 years, 2 months ago (2016-09-30 04:51:04 UTC) #33
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/2369853002/100001
4 years, 2 months ago (2016-09-30 04:51:19 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-30 06:21:35 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 06:22:56 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/89a6eed72ae35c6219934b7a11b61dfc60819b97
Cr-Commit-Position: refs/heads/master@{#422042}

Powered by Google App Engine
This is Rietveld 408576698