Closed Bug 1280673 Opened 8 years ago Closed 4 years ago

Add support for XBL bindings in chrome-privileged documents.

Categories

(L20n :: JS Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: stas, Unassigned)

References

Details

(Whiteboard: [gecko-l20n])

User Story

L20n in Gecko should support XBL bindings in chrome-privileged documents.
L20n in Gecko should support XBL bindings in chrome-privileged documents.
Depends on: 1280671
The story of XBL support is similar to XUL: see bug 1280669 comment 1.  I moved away from the <localization> element.  Anonymous content can now be localized by calling createLocalization in the <constructor> of the binding and destroyLocalization in the <destructor>.

    Components.utils.import("chrome://global/content/l20n-chrome-xbl.js");
    createLocalization("tabbrowser-l10n", [
        "/browser/tabbrowser.ftl"
    ], this, document.l10n);

See https://github.com/mozilla/gecko-dev/commit/706b97044e571814aa8d845a23bdb78b1bdb45e7 for a complete example.
Assignee: nobody → stas
Status: NEW → ASSIGNED
Depends on: 1288639
Mass change dependency tree for bug 1279002 into a whiteboard keyword.
No longer blocks: gecko-l20n
Whiteboard: [gecko-l20n]
We'll want docs here together with the implementation.

No XBL no more.

Assignee: stas → nobody
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.