Closed Bug 1465592 Opened Last year Closed 11 months ago
Enable Shadow DOM unconditionally in chrome documents
46 bytes, text/x-phabricator-request
|Details | Review|
I'd like to start testing out usage of Shadow DOM with our Custom Elements in the browser chrome. Right now `mIsShadowDOMEnabled = nsContentUtils::IsShadowDOMEnabled();`  which is keyed off of the "dom.webcomponents.shadowdom.enabled" pref. For Custom Elements we updated the CustomElementRegistry::IsCustomElementEnabled check to include a principle check  and make it always on. I think we could do the same here. : https://searchfox.org/mozilla-central/rev/5a744713370ec47969595e369fd5125f123e6d24/dom/base/nsDocument.cpp#2124 : : https://searchfox.org/mozilla-central/rev/5a744713370ec47969595e369fd5125f123e6d24/dom/base/CustomElementRegistry.cpp#293
I'm not quite sure whether Shadow DOM is ready enough for being enabled always in browser chrome.
(In reply to Olli Pettay [:smaug] from comment #2) > I'm not quite sure whether Shadow DOM is ready enough for being enabled > always in browser chrome. OK, good to know - this isn't urgent. Are there any particular bugs we should block this on?
Mostly just generic stability. Custom Elements had been enabled in Nightly for months before it was enabled always for chrome. From https://bugzilla.mozilla.org/showdependencytree.cgi?id=1205323&hide_resolved=1 focus handling stuff probably needs still some small tweaks and directionality stuff is unclear. I assume without proper directionality support, FF UI would be broken on rtl locales. Directionality depends on spec issues to be sorted out.
Alright, we'll put this bug on hold until we get the green light to start using it.
Depends on: shadowdom-initial-release
Priority: -- → P3
Well, Web Components (Shadow DOM and Custom Elements) will be shipping in Firefox 63 stable, so this can probably be done now.
See Also: → 1471947
(In reply to ExE Boss from comment #6) > Well, Web Components (Shadow DOM and Custom Elements) will be shipping in > Firefox 63 stable, so this can probably be done now. I'm not sure that the directionality stuff listed in Comment 4 has been resolved, though. Olli - is there a particular spec issue / bug to follow for that?
Directionality stuff isn't fixed in the spec level, but we have implementation which tries to mimic other browsers in common cases. But it is expected that all the browsers will need to change their behavior, since what the implementations do atm isn't what people seem to want. https://github.com/whatwg/html/issues/3699
Comment on attachment 8982293 [details] Bug 1465592 - Enable Shadow DOM unconditionally in chrome documents Moved this to phab and added a test. :smaug, I'll leave it up to you as far as when you are comfortable with us using this so feel free to clear the review for now if you aren't.
Attachment #8982293 - Attachment is obsolete: true
Comment on attachment 9010316 [details] Bug 1465592 - Enable Shadow DOM unconditionally in chrome documents;r=smaug Olli Pettay [:smaug] (r- if the bug doesn't explain what the change(s) are about.) has approved the revision.
Attachment #9010316 - Flags: review+
11 months ago
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/80ccc40bdd0a Enable Shadow DOM unconditionally in chrome documents;r=smaug
Will this be uplifted to Firefox 63?
(In reply to ExE Boss from comment #14) > Will this be uplifted to Firefox 63? No. We aren't shipping any Shadow DOM in the chrome in 63.
You need to log in before you can comment on or make changes to this bug.