ConnectRoot(this.shadowRoot) not working
Categories
(Core :: Internationalization, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: danielleleb12, Assigned: zbraniecki)
Details
Attachments
(1 file)
document.l10n.connectRoot(this.shadowRoot) throws the console error "TypeError: Argument 1 of DOMLocalization.connectRoot does not implement interface Element."
| Assignee | ||
Comment 1•6 years ago
|
||
To handle that we need to accept a type that can be a shadowRoot or an Element, and use the same type for DOMLocalization::mRoots.
smaug - what type should I use?
Comment 2•6 years ago
|
||
nsINode would be the common type.
But should .l10n live in Document or in DocumentOrShadowRoot interface?
Comment 3•6 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2)
nsINode would be the common type.
Or nsIContent
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
Added a sanity test. There's more to solve wrt. shadow dom that :jaws is handling in bug 1555947 and bug 1553176, but this will allow for the document's l10n context to be used to cover shadowRoot.
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/287a417a3f89
https://hg.mozilla.org/mozilla-central/rev/0581a4a4bdf3
Comment 9•6 years ago
|
||
== Change summary for alert #21628 (as of Thu, 27 Jun 2019 09:58:05 GMT) ==
Improvements:
36% build times linux32-shippable opt nightly taskcluster-m4.4xlarge 7,558.74 -> 4,871.14
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=21628
Description
•