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

Issue 130983011: Perform a microtask checkpoint for document.write('<script><\/script>') (Closed)

Created:
6 years, 10 months ago by philipj_slow
Modified:
6 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, tonyg, abarth-chromium
Visibility:
Public.

Description

Perform a microtask checkpoint for document.write('<script><\/script>') http://whatwg.org/html#scriptEndTag The spec does 'Perform a microtask checkpoint' unconditionally for 'An end tag whose tag name is "script"', which means that document.write can trigger it while a script is running. A spec bug was filed for the similar situation with 'Provide a stable state' on the assumption that this was a mistake, but it was not: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24361 Unless performing a microtask checkpoint here will lead to other complications, it's simpler to just align with the spec. BUG=340322 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166445

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -7 lines) Patch
A LayoutTests/fast/dom/MutationObserver/script-end-tag.html View 1 chunk +18 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/MutationObserver/script-end-tag-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/parser/HTMLScriptRunner.cpp View 1 chunk +1 line, -6 lines 1 comment Download

Messages

Total messages: 21 (0 generated)
philipj_slow
PTAL, this is something I noticed while trying to add "provide a stable state" around ...
6 years, 10 months ago (2014-02-03 18:29:57 UTC) #1
philipj_slow
tkent, can you PTAL? The original reviewers have reviewed around this code before, but are ...
6 years, 10 months ago (2014-02-05 03:17:36 UTC) #2
tkent
rubber-stamping lgtm I don't understand this code change well. Anyway, the CL description sounds reasonable.
6 years, 10 months ago (2014-02-05 03:25:51 UTC) #3
philipj_slow
On 2014/02/05 03:25:51, tkent wrote: > rubber-stamping lgtm > > I don't understand this code ...
6 years, 10 months ago (2014-02-05 03:31:38 UTC) #4
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 10 months ago (2014-02-05 03:34:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/130983011/1
6 years, 10 months ago (2014-02-05 03:41:53 UTC) #6
commit-bot: I haz the power
Change committed as 166445
6 years, 10 months ago (2014-02-05 03:48:18 UTC) #7
esprehn
I don't think this patch is right, now appendChild(script) will cause a microtask checkpoint in ...
6 years, 10 months ago (2014-02-11 00:44:49 UTC) #8
adamk
On 2014/02/11 00:44:49, esprehn wrote: > I don't think this patch is right, now appendChild(script) ...
6 years, 10 months ago (2014-02-11 01:04:11 UTC) #9
eseidel
I don't really understand "microtask checkpoints", but it looks like the spec is trying to ...
6 years, 10 months ago (2014-02-11 01:33:26 UTC) #10
esprehn
Short term I think we should roll this patch out, it makes mutation observers deliver ...
6 years, 10 months ago (2014-02-11 01:34:59 UTC) #11
philipj_slow
Bah, I should have tested appendChild(script), but it looks like that much works: https://codereview.chromium.org/146043008/ I'll ...
6 years, 10 months ago (2014-02-11 03:42:43 UTC) #12
philipj_slow
I reopened https://www.w3.org/Bugs/Public/show_bug.cgi?id=24361 Please weigh in there if you care about what the spec says.
6 years, 10 months ago (2014-02-11 04:03:09 UTC) #13
philipj_slow
I'm going to be gone for a few days, so feel free to revert this ...
6 years, 10 months ago (2014-02-11 17:26:13 UTC) #14
rafaelw
Yeah, this is definitely wrong. I'm not sure what the right spec fix is, but ...
6 years, 10 months ago (2014-02-11 19:19:25 UTC) #15
tkent
A revert of this CL has been created in https://codereview.chromium.org/153913010/ by tkent@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-12 03:50:36 UTC) #16
tkent
On 2014/02/12 03:50:36, tkent wrote: > A revert of this CL has been created in ...
6 years, 10 months ago (2014-02-12 03:58:25 UTC) #17
rafaelw
ok. now, I'm lost in reverts and I can't tell what the current semantics are. ...
6 years, 10 months ago (2014-02-13 19:07:37 UTC) #18
philipj_slow
On 2014/02/13 19:07:37, rafaelw wrote: > ok. now, I'm lost in reverts and I can't ...
6 years, 10 months ago (2014-02-13 23:38:31 UTC) #19
rafaelw1
On Thu, Feb 13, 2014 at 3:38 PM, <philipj@opera.com> wrote: > On 2014/02/13 19:07:37, rafaelw ...
6 years, 10 months ago (2014-02-14 18:33:33 UTC) #20
philipj_slow
6 years, 10 months ago (2014-02-17 05:35:17 UTC) #21
Message was sent while issue was closed.
Here's the review that basically reverts things to the way they were:
https://codereview.chromium.org/169093004/

Powered by Google App Engine
This is Rietveld 408576698