Add support for XBL bindings in chrome-privileged documents.

ASSIGNED
Assigned to

Status

L20n
JS Library
ASSIGNED
2 years ago
2 years ago

People

(Reporter: stas, Assigned: stas)

Tracking

Details

(Whiteboard: [gecko-l20n])

User Story

L20n in Gecko should support XBL bindings in chrome-privileged documents.
(Assignee)

Description

2 years ago
L20n in Gecko should support XBL bindings in chrome-privileged documents.
(Assignee)

Updated

2 years ago
Depends on: 1280671
(Assignee)

Comment 1

2 years ago
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
(Assignee)

Updated

2 years ago
Depends on: 1288639

Comment 2

2 years ago
Mass change dependency tree for bug 1279002 into a whiteboard keyword.
No longer blocks: 1279002
Whiteboard: [gecko-l20n]
(Assignee)

Comment 3

2 years ago
We'll want docs here together with the implementation.
You need to log in before you can comment on or make changes to this bug.