Closed Bug 1676589 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26482 - Update declarative Shadow DOM opt-in mechanics

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 26482 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26482
Details from upstream follow.

b'Mason Freed <masonfreed@chromium.org>' wrote:

Update declarative Shadow DOM opt-in mechanics

The issue thread [1] has had more discussion, after the initial draft
of declarative Shadow DOM opt-in landed [2]. This CL implements those
bits of feedback. In particular:

  • There is no public allowDeclarativeShadowDom state available on
    Document or DocumentFragment.
  • All APIs use call parameters to avoid state, with the exception
    of DOMParser.
  • innerHTML no longer supports Declarative Shadow DOM.
  • A new setInnerHTML() function allows opt-in access to DSD.
  • Several of the more obscure APIs do not have an opt-in for
    declarative Shadow DOM, such as XHR, createContextualFragment, and
    document.write.
  • The sandbox flag has been removed from iframes completely. The new
    plan is to use DocumentPolicy to enable declarative Shadow DOM for
    iframes. For now, iframes do not support declarative Shadow DOM.
  • allowDeclarativeShadowDOM has become allowShadowRoot.

[1] https://github.com/whatwg/dom/issues/912#issuecomment-723188817
[2] https://chromium-review.googlesource.com/c/chromium/src/+/2513525

Bug: 1042130

Change-Id: I3a2becf2a113cc8647b29077d2efea1c990d4547
Reviewed-on: https://chromium-review.googlesource.com/2530222
WPT-Export-Revision: 63d6c63f3f68d6c8ba8eebe4b0a3719423fd067f

PR 26482 applied with additional changes from upstream: d4e6b4dff3070bdb4d4771d116f811821e8c9162
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Attached file Notable wpt changes
# CI Results Ran 14 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 5 tests and 107 subtests ## Status Summary ### Firefox OK : 5 PASS: 7 FAIL: 926 ### Chrome OK : 5 PASS: 172 FAIL: 761 ### Safari OK : 5 PASS: 7 FAIL: 926 ## Links [Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=8c6f9abbe97cbab31a69a542a4fcc6ad88c1e50e) [GitHub PR Head](https://wpt.fyi/results/?sha=7c8d7239c5cb1a06db456dfd1a6b0d1204a4b03f&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=7c8d7239c5cb1a06db456dfd1a6b0d1204a4b03f&label=pr_base) ## Details (See attachment for full changes)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2ad5384273b [wpt PR 26482] - Update declarative Shadow DOM opt-in mechanics, a=testonly https://hg.mozilla.org/integration/autoland/rev/2e75cfeca7cc [wpt PR 26482] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: