Closed
Bug 1319342
Opened 8 years ago
Closed 7 years ago
Cloning a node runs concept-create-element steps with synchronous-custom-elements-flag unset which enqueues an upgrade reaction
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: jdai, Assigned: jdai)
References
Details
(Whiteboard: dom-ce-m2)
Attachments
(1 file, 7 obsolete files)
9.87 KB,
patch
|
jdai
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a follow-up of Bug #1309184 comment #9 +++ create-element can be synchronous or asynchronous [1]. For asynchronous case (e.g. clone a node [2]), we need to enqueue an upgrade reaction just like what we did for "definition comes after" case. Will you handle asynchronous case in this bug? If not, please file a follow-up bug for that. [1] See "synchronous custom elements flag" in https://dom.spec.whatwg.org/#concept-create-element [2] See step 2.1 of https://dom.spec.whatwg.org/#concept-node-clone
Updated•8 years ago
|
Whiteboard: dom-ce-m2
Updated•8 years ago
|
Summary: Asynchronous upgrade reaction for custom element reactions → Asynchronous upgrade when creating an element
Updated•7 years ago
|
Summary: Asynchronous upgrade when creating an element → Cloning a node runs concept-create-element steps with synchronous-custom-elements-flag unset which enqueues an upgrade reaction
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Per spec, clone node will create an element and synchronous custom elements flag be unset. It means that we need to enqueue a custom element upgrade reaction in our clone code for both autonomous custom elements and build-in custom elements. - Revise clone implementation for custom element v1. - Comment out a v0 test which is test_custom_element_clone_callbacks.html. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=009f948ca031780e9fa9852f543a6dcaf53f4d93&filter-tier=1&group_state=expanded
Flags: needinfo?(bugs)
Updated•7 years ago
|
Flags: needinfo?(bugs)
Attachment #8905052 -
Flags: review?(bugs)
Comment 2•7 years ago
|
||
Comment on attachment 8905052 [details] [diff] [review] patch, v1 Could you put the code inside the custom element pref check. Couldn't we just remove test_custom_element_clone_callbacks.html and then line [test_custom_element_clone_callbacks.html] from the .ini.
Attachment #8905052 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Comment 3•7 years ago
|
||
Rebased and fixed some of WPT. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cc30467cc19baf32fcdcf27c39672c5443b72672&filter-tier=1&group_state=expanded
Attachment #8905052 -
Attachment is obsolete: true
Attachment #8912155 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 4•7 years ago
|
||
Address comment 2. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8e7e2faf5b5f2c4c279f5accb6c88119d9181607&filter-tier=1&group_state=expanded
Attachment #8912155 -
Attachment is obsolete: true
Attachment #8912202 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ff9c67df213a Clone a node should enqueue an upgrade reaction. r=smaug
Keywords: checkin-needed
Comment 6•7 years ago
|
||
Backed out for failing wpt /dom/nodes/Node-cloneNode.html: https://hg.mozilla.org/integration/mozilla-inbound/rev/44c358447666fd00d38fe9b72724d194b874e682 Push with failure: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=ff9c67df213ac4facfd517652cf29f156ea409dc&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=133400200&repo=mozilla-inbound 12:46:44 INFO - TEST-PASS | /dom/nodes/Node-cloneNode.html | createElement(datalist) 12:46:44 INFO - TEST-UNEXPECTED-FAIL | /dom/nodes/Node-cloneNode.html | createElement(dialog) - assert_true: HTMLDialogElement is not supported expected true got false 12:46:44 INFO - create_element_and_check/<@http://web-platform.test:8000/dom/nodes/Node-cloneNode.html:45:5 12:46:44 INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1485:20 12:46:44 INFO - test@http://web-platform.test:8000/resources/testharness.js:511:9 12:46:44 INFO - create_element_and_check@http://web-platform.test:8000/dom/nodes/Node-cloneNode.html:44:3 12:46:44 INFO - @http://web-platform.test:8000/dom/nodes/Node-cloneNode.html:80:1 12:46:44 INFO - Push with more failing tests: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=075e7eef53f45a57e6363b19decafa1219578288&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable
Flags: needinfo?(jdai)
Assignee | ||
Comment 7•7 years ago
|
||
Fix WPT failures. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d845a55886abbae73cab589d240dde229c3d1af8&group_state=expanded&filter-tier=1
Attachment #8912202 -
Attachment is obsolete: true
Flags: needinfo?(jdai)
Attachment #8912530 -
Flags: review+
Assignee | ||
Comment 8•7 years ago
|
||
Fixed WPT failures on windows and mac os. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=adf6d14129dffa931dea025c6204998eee921104&filter-tier=1&group_state=expanded
Attachment #8912530 -
Attachment is obsolete: true
Attachment #8912621 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/d3ebcf7d4c31 Clone a node should enqueue an upgrade reaction. r=smaug
Keywords: checkin-needed
Comment 10•7 years ago
|
||
Backed out for failing web-platform-test /dom/nodes/Node-cloneNode.html: https://hg.mozilla.org/integration/mozilla-inbound/rev/43b3df38a4068f7d5f0e281fdd30bf76a59d650c Push which ran failing tests: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=be61a3dc120a6ebdbc213525fea45eedfded57ef&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=133615288&repo=mozilla-inbound TEST-UNEXPECTED-FAIL | /dom/nodes/Node-cloneNode.html | createElement(dialog) - assert_true: HTMLDialogElement is not supported expected true got false TEST-UNEXPECTED-FAIL | /dom/nodes/Node-cloneNode.html | implementation.createDocument - assert_equals: origin value expected (string) "null" but got (undefined) undefined
Flags: needinfo?(jdai)
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 12•7 years ago
|
||
Rebase and fix wpt failures. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8c0da37236edd5e41ab10c74c5a755d1fd71a731&group_state=expanded
Attachment #8912621 -
Attachment is obsolete: true
Flags: needinfo?(jdai)
Attachment #8914201 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 13•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/29a6664e8f73 Clone a node should enqueue an upgrade reaction. r=smaug
Keywords: checkin-needed
That test is still failing like https://treeherder.mozilla.org/logviewer.html#?job_id=134483788&repo=mozilla-inbound Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/6f575308a3818ded268d34403f1aa158502290e1 If it matters, inbound runs 12 wpt chunks while your try push only runs 10.
Flags: needinfo?(jdai)
Comment 15•7 years ago
|
||
Backout by kwierso@gmail.com: https://hg.mozilla.org/mozilla-central/rev/e35c81ca2b65 Backed out changeset 29a6664e8f73 for wpt failures in Node-cloneNode.html a=backout
Assignee | ||
Comment 16•7 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=49ffcff220ade999fdd4cacc1cec4b0050c0edfa&filter-tier=1&group_state=expanded
Attachment #8914201 -
Attachment is obsolete: true
Flags: needinfo?(jdai)
Attachment #8914634 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 17•7 years ago
|
||
It would be nice to only change clone node relative wpt .ini files. I'll update a new patch to reflect this change.
Keywords: checkin-needed
Assignee | ||
Comment 18•7 years ago
|
||
Revert dom/nodes/Node-cloneNode.html.ini change. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b3c8128613f89d2f3479bbf11f9566dd50514697&filter-tier=1&group_state=expanded
Attachment #8914634 -
Attachment is obsolete: true
Attachment #8914646 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 19•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3bc98b219437 Clone a node should enqueue an upgrade reaction. r=smaug
Keywords: checkin-needed
Comment 20•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3bc98b219437
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•