Support dynamically inserted localization links in XUL documents when they are inserted during a parsed Custom Element upgrade or during DOMContentLoaded
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
People
(Reporter: bgrins, Unassigned, NeedInfo)
References
Details
Updated•6 years ago
|
Comment 1•4 years ago
|
||
Brian - with the landing of bug 1627809 you should now be able to use connectRoot(root, /* translate ASAP*/ true)
in connectedCallback
and disconnectRoot(root)
in disconnectedCallback
.
Can you verify that this is fixed now?
Updated•4 years ago
|
Reporter | ||
Comment 2•4 years ago
|
||
(In reply to Zibi Braniecki [:zbraniecki][:gandalf] from comment #1)
Brian - with the landing of bug 1627809 you should now be able to use
connectRoot(root, /* translate ASAP*/ true)
inconnectedCallback
anddisconnectRoot(root)
indisconnectedCallback
.Can you verify that this is fixed now?
I couldn't remember the exact details here so I was going to look at the test case added in Bug 1490457 / https://hg.mozilla.org/mozilla-central/rev/5d9bb31b4cf7 but noticed those files are missing now and can't find them in dom/l10n/tests/mochitest either. Am I missing them, or did they become unnecessary at some point and get removed?
Comment 3•4 years ago
|
||
Hmm, I think it was my omission. Most of the intl/l10n/dom
tests got moved to dom/l10n/tests
separating tests for DOMLocalization
from tests of DocumentL10n
.
Your test should be in the DocumentL10n
test directory, but the only tests I see there that verify the insertFTLIfNeeded
are now related to Web Components.
Which may not be that bad, since that's what we use it for :)
- https://searchfox.org/mozilla-central/source/dom/l10n/tests/mochitest/document_l10n/test_connectRoot_webcomponent.html
- https://searchfox.org/mozilla-central/source/dom/l10n/tests/mochitest/document_l10n/test_connectRoot_webcomponent_lazy.html
Is that enough for you to verify the behavior or would you prefer to re-add the tests you wrote?
Comment 4•4 years ago
|
||
I'm going to mark this bug as resolved leaving NI on Brian. Reopen if needed.
Description
•