Closed
Bug 934726
Opened 11 years ago
Closed 10 years ago
Use CustomEvent in l10n.js
Categories
(Firefox OS Graveyard :: Gaia::L10n, defect)
Firefox OS Graveyard
Gaia::L10n
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(3 files, 2 obsolete files)
589 bytes,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
351 bytes,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
46 bytes,
text/x-github-pull-request
|
Details | Review |
That's an offspring of bug 914414. We want to use CustomEvent but that requires changes to bto code. We'll deal with this followup bug.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gandalf
OS: Mac OS X → All
Hardware: x86 → All
Updated•10 years ago
|
Component: Gaia → Gaia::L10n
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8404204 -
Flags: review?(stas)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8404205 -
Flags: review?(stas)
Comment 3•10 years ago
|
||
Comment on attachment 8404205 [details] [diff] [review] patch, l10n part Review of attachment 8404205 [details] [diff] [review]: ----------------------------------------------------------------- ::: bindings/l20n/runtime.js @@ +221,5 @@ > + 'detail': { > + 'language': this.ctx.supportedLocales[0] > + } > + }); > + document.dispatchEvent(event); Changing the origin of the dispatched event will break all the apps that use window.addEventListener('localized'), won't it? Should we keep window for now and file a follow-up to change it later across all the apps (and their tests!)?j
Attachment #8404205 -
Flags: review?(stas) → review-
Assignee | ||
Comment 4•10 years ago
|
||
You're right! I'm going to postpone updating this patch until bug 994459 is fixed. It seems that we may stop relying on this in bto which will make things simpler.
Assignee | ||
Comment 5•10 years ago
|
||
Updated patch. dispatch on window.
Attachment #8404205 -
Attachment is obsolete: true
Attachment #8405059 -
Flags: review?(stas)
Assignee | ||
Comment 6•10 years ago
|
||
Updated patch.
Attachment #8404204 -
Attachment is obsolete: true
Attachment #8404204 -
Flags: review?(stas)
Attachment #8405060 -
Flags: review?(stas)
Updated•10 years ago
|
Attachment #8405060 -
Flags: review?(stas) → review+
Updated•10 years ago
|
Attachment #8405059 -
Flags: review?(stas) → review+
Assignee | ||
Comment 7•10 years ago
|
||
I'll wait for travis and push it if the tests pass.
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 8•10 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/f84f6232821e42bd425684a7de27a4a2b505843f
Assignee | ||
Comment 9•10 years ago
|
||
https://github.com/l20n/l20n.js/commit/c52b341e4101aba6b06d3738443928e7e21fb6a8
You need to log in
before you can comment on or make changes to this bug.
Description
•