Implement Declarative Shadow DOM
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: 709922234, Assigned: avandolder, NeedInfo)
References
(Blocks 4 open bugs)
Details
(Keywords: dev-doc-needed)
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
Comment 2•3 years ago
|
||
See https://github.com/mozilla/standards-positions/issues/335. We don't think this is a good idea. Performance numbers might persuade us, but we see a better future in declarative web components.
(FWIW, I'm fine with leaving this bug open so we have a central place in Bugzilla where this is captured.)
Comment 3•3 years ago
|
||
Thanks, let's set the severity to N/A for now.
Updated•2 years ago
|
Comment 4•1 year ago
|
||
There is an open patch for WebKit to enable Declarative Shadow DOM by default on all platforms: https://github.com/WebKit/WebKit/pull/7798.
Updated•10 months ago
|
Updated•9 months ago
|
Mosaic standards positions here have changed. Obviously not a commitment to implement, but potentially worth reevaluation, as I haven't seen the change in position (or the new proposal generally) represented in this ticket since the previous proposal was considered harmful.
Updated•2 months ago
|
Assignee | ||
Comment 7•21 days ago
|
||
Assignee | ||
Comment 8•21 days ago
|
||
Depends on D193673
Assignee | ||
Comment 9•21 days ago
|
||
Depends on D193674
Assignee | ||
Comment 10•21 days ago
|
||
Depends on D193675
Assignee | ||
Comment 11•21 days ago
|
||
Depends on D193676
Updated•20 days ago
|
Updated•12 days ago
|
Comment 13•9 days ago
|
||
Is it intentional that a lot of the APIs added here are not behind a pref? Even if we want to enable by default ASAP, there probably should be a runtime flag.
Assignee | ||
Comment 14•8 days ago
|
||
Depends on D193676
Updated•8 days ago
|
Assignee | ||
Updated•6 days ago
|
Assignee | ||
Updated•6 days ago
|
Comment 15•5 days ago
|
||
Pushed by avandolder@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff3bb42f91d1 Part 1: Add Declarative ShadowDOM attributes to parser. r=dom-core,emilio,hsivonen https://hg.mozilla.org/integration/autoland/rev/59ee434d503e Part 2: Allow ShadowRoots to be clonable and declarative. r=webidl,emilio,saschanaz https://hg.mozilla.org/integration/autoland/rev/4241a7241a9b Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen https://hg.mozilla.org/integration/autoland/rev/98dd5766dd46 Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen https://hg.mozilla.org/integration/autoland/rev/14ebbfca2e84 Part 5: Block Declarative ShadowDOM behind feature pref. r=emilio https://hg.mozilla.org/integration/autoland/rev/554a46ed8046 Part 6: Unblock Declarative ShadowDOM tests. r=dom-core,hsivonen
Comment 16•5 days ago
|
||
Backed out for causing wpt failures in declarative-shadow-dom-opt-in.html.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-PASS | /shadow-dom/declarative/declarative-shadow-dom-opt-in.html | document.write disallowed on fresh document - expected FAIL
Also, this Bp-nu bustage.
Updated•2 days ago
|
Comment 17•2 days ago
|
||
Pushed by avandolder@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4ffe7a6ad366 Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen https://hg.mozilla.org/integration/autoland/rev/8ae1f766f1f9 Part 2: Allow ShadowRoots to be clonable and declarative. r=webidl,emilio,saschanaz https://hg.mozilla.org/integration/autoland/rev/b65511d17150 Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen https://hg.mozilla.org/integration/autoland/rev/4d2749962c5f Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen https://hg.mozilla.org/integration/autoland/rev/8601fce480ef Part 5: Block Declarative ShadowDOM behind feature pref. r=emilio https://hg.mozilla.org/integration/autoland/rev/78e3a33470ae Part 6: Unblock Declarative ShadowDOM tests. r=dom-core,hsivonen
Comment 18•1 day ago
|
||
Backed out for causing wpt failures on declarative-shadow-dom-opt-in.html.
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - TEST-PASS | /shadow-dom/declarative/declarative-shadow-dom-opt-in.html | document.write allowed from synchronous script loaded from main document
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - TEST-UNEXPECTED-FAIL | /shadow-dom/declarative/declarative-shadow-dom-opt-in.html | document.write disallowed on fresh document - assert_true: Shadow root FOUND - none should be present. expected true got false
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - assert_dsd@http://web-platform.test:8000/shadow-dom/declarative/declarative-shadow-dom-opt-in.html:49:16
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - @http://web-platform.test:8000/shadow-dom/declarative/declarative-shadow-dom-opt-in.html:149:13
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2599:25
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - test@http://web-platform.test:8000/resources/testharness.js:628:30
[task 2023-12-04T20:14:28.410Z] 20:14:28 INFO - @http://web-platform.test:8000/shadow-dom/declarative/declarative-shadow-dom-opt-in.html:145:5
[task 2023-12-04T20:14:28.448Z] 20:14:28 INFO - TEST-OK | /shadow-dom/declarative/declarative-shadow-dom-opt-in.html | took 956ms
Updated•1 day ago
|
Comment 19•11 hours ago
|
||
Pushed by avandolder@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50828058065e Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen https://hg.mozilla.org/integration/autoland/rev/5490dad148ef Part 2: Allow ShadowRoots to be clonable and declarative. r=webidl,emilio,saschanaz https://hg.mozilla.org/integration/autoland/rev/e7c5449482f9 Part 3: Add support for parsing and building Declarative ShadowDOMs. r=dom-core,webidl,saschanaz,hsivonen https://hg.mozilla.org/integration/autoland/rev/6f50077df42a Part 4: Add parseHTMLUnsafe and setHTMLUnsafe methods. r=dom-core,webidl,hsivonen https://hg.mozilla.org/integration/autoland/rev/2ed53d545d6d Part 5: Block Declarative ShadowDOM behind feature pref. r=emilio https://hg.mozilla.org/integration/autoland/rev/3d799b386f3e Part 6: Unblock Declarative ShadowDOM tests. r=dom-core,hsivonen
Comment 20•7 hours ago
•
|
||
Backed out for causing Linux related wpt failures in nsHtml5TreeBuilder.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure line: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /builds/worker/checkouts/gecko/parser/html/nsHtml5TreeBuilder.cpp:4512:10 in
Also these wpts.
Description
•