Closed Bug 882601 Opened 12 years ago Closed 12 years ago

document.l10n isn't available immediately

Categories

(L20n :: HTML Bindings, defect, P1)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: zbraniecki)

References

Details

Attachments

(1 file)

Because we define document.l10n in loadResources, it is not immediately available when the bindings code runs. This makes it harder to add event listeners to it, or to use the Context::localize() method.
Assignee: nobody → gandalf
Priority: -- → P1
Target Milestone: --- → 1.0
Blocks: 884249
Attached patch patchSplinter Review
Attachment #764172 - Flags: review?(stas)
Comment on attachment 764172 [details] [diff] [review] patch Review of attachment 764172 [details] [diff] [review]: ----------------------------------------------------------------- ::: bindings/l20n/html.js @@ +36,5 @@ > } else { > var link = headNode.querySelector('link[rel="localization"]'); > if (link) { > // XXX add errback > + loadManifest(link.getAttribute('href')).then(ctx.freeze); ctx.freeze.bind(ctx) just to be on the safe side?
Attachment #764172 - Flags: review?(stas) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: