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

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed)

Created:
6 years, 8 months ago by Hajime Morrita
Modified:
6 years, 7 months ago
CC:
blink-reviews, webcomponents-bugzilla_chromium.org, sof, eae+blinkwatch, ojan, dglazkov+blink, adamk+blink_chromium.org, rwlbuis, Inactive
Visibility:
Public.

Description

REGRESSION(r171966): Custom elements in async imports don't get upgrade. For these custom elements, microstask steps are queued but never get dispatched as the import isn't part of microtask dispatch tree. This change supresses microtask queue creation for async imports so that the microtask steps from these imports go to the top-level queue. TEST=import-custom-element-async-resolve.html R=dominicc@chromium.org, dglazkov@chromium.org BUG=365956 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173402

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added and revised tests #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -49 lines) Patch
A LayoutTests/fast/html/imports/import-custom-element-async-resolve.html View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-async-resolve-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-cycle.html View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-dup-resolve.html View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-dup-resolve-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-in-grandchild-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-in-master-and-grandchild.html View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/import-custom-element-in-master-and-grandchild-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-1.html View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/html/imports/resources/custom-element-hello-2.html View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-3.html View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-4.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/fast/html/imports/resources/custom-element-hello-5.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-6.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-7.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-8.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-cycle-child.html View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-cycle-parent.html View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-parent-12.html View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-parent-34.html View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/imports/resources/custom-element-hello-parent-56.html View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/import-custom-element-order.html View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/import-custom-element-order-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/import-custom-element-hello-1.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/import-custom-element-helper.js View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/htmlimports/resources/import-slow-child.cgi View 1 1 chunk +2 lines, -3 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/import-slow-custom-element-hello.cgi View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.h View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp View 1 2 3 4 5 6 1 chunk +13 lines, -7 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskQueue.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -10 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskResolutionStep.cpp View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/custom/CustomElementMicrotaskStep.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/html/imports/HTMLImport.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/imports/HTMLImport.cpp View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/imports/HTMLImportChild.cpp View 1 2 3 4 5 6 2 chunks +1 line, -19 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Hajime Morrita
Dominic: PTAL? That simplicity I hoped didn't work after all :-/
6 years, 8 months ago (2014-04-23 19:48:06 UTC) #1
dominicc (has gone to gerrit)
On 2014/04/23 19:48:06, morrita1 wrote: > Dominic: PTAL? > That simplicity I hoped didn't work ...
6 years, 8 months ago (2014-04-24 07:28:11 UTC) #2
dominicc (has gone to gerrit)
Oops, and here are some comments. https://codereview.chromium.org/249563003/diff/1/LayoutTests/fast/html/imports/import-custom-element-async-resolve.html File LayoutTests/fast/html/imports/import-custom-element-async-resolve.html (right): https://codereview.chromium.org/249563003/diff/1/LayoutTests/fast/html/imports/import-custom-element-async-resolve.html#newcode1 LayoutTests/fast/html/imports/import-custom-element-async-resolve.html:1: <!DOCTYPE html> I ...
6 years, 8 months ago (2014-04-24 07:28:32 UTC) #3
Hajime Morrita
Thanks for the review, Dominic! I added bunch of tests to cover more corners. And ...
6 years, 8 months ago (2014-04-24 23:29:32 UTC) #4
dominicc (has gone to gerrit)
Thanks for the description, that was helpful, but there's still one part I don't understand. ...
6 years, 8 months ago (2014-04-25 02:39:45 UTC) #5
Hajime Morrita
> Don't all imports go through CustomElementScheduler::scheduleImport? No, only sync imports go there. > > ...
6 years, 8 months ago (2014-04-25 20:53:16 UTC) #6
dominicc (has gone to gerrit)
Some test comments. What did Dimitri and Polymer say about the idea of interleaving the ...
6 years, 7 months ago (2014-04-28 01:32:31 UTC) #7
Hajime Morrita
On 2014/04/28 01:32:31, dominicc wrote: > Some test comments. > > What did Dimitri and ...
6 years, 7 months ago (2014-04-28 18:05:50 UTC) #8
Hajime Morrita
Hi Dominic, thanks for another review! So PTAL another time? I changed the way so ...
6 years, 7 months ago (2014-04-29 23:11:37 UTC) #9
dominicc (has gone to gerrit)
Getting there. The one remaining issue is I think this "remains" thing isn't the right ...
6 years, 7 months ago (2014-04-30 23:57:20 UTC) #10
dominicc (has gone to gerrit)
One more thought: Why not break this patch up at this point? The debugging stuff ...
6 years, 7 months ago (2014-05-01 00:01:11 UTC) #11
Hajime Morrita
Dominic, thanks for taking time! I'll split patches out two three. On 2014/04/30 23:57:20, dominicc ...
6 years, 7 months ago (2014-05-01 01:23:56 UTC) #12
Hajime Morrita
On 2014/05/01 01:23:56, morrita1 wrote: > Dominic, thanks for taking time! I'll split patches out ...
6 years, 7 months ago (2014-05-01 02:20:56 UTC) #13
Hajime Morrita
OK, PTAL Dominic?
6 years, 7 months ago (2014-05-03 02:45:07 UTC) #14
Hajime Morrita
Dominic: Ping, just in case. I appreciated your help.
6 years, 7 months ago (2014-05-06 00:19:47 UTC) #15
dglazkov
rslgtm to keep moving.
6 years, 7 months ago (2014-05-06 16:05:45 UTC) #16
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 7 months ago (2014-05-06 16:41:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/249563003/110001
6 years, 7 months ago (2014-05-06 16:41:43 UTC) #18
commit-bot: I haz the power
Change committed as 173402
6 years, 7 months ago (2014-05-06 17:13:19 UTC) #19
dominicc (has gone to gerrit)
Sorry, Golden Week. Belated LGTM.
6 years, 7 months ago (2014-05-06 23:12:04 UTC) #20
Hajime Morrita
6 years, 7 months ago (2014-05-07 00:05:39 UTC) #21
Message was sent while issue was closed.
Uh, sorry for interrupting your holiday/vacation if you are still in. And thanks
for the reply.

Powered by Google App Engine
This is Rietveld 408576698