Closed Bug 875229 Opened 11 years ago Closed 11 years ago

DocumentLocalized not rising in Chrome

Categories

(L20n :: HTML Bindings, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: thesilentimp, Assigned: zbraniecki)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36

Steps to reproduce:

document.addEventListener('DocumentLocalized', function(){alert('l20n is ready');});



Actual results:

it work fine in FF, but don't work in Chrome


Expected results:

L20n must work in any browser
Component: General → HTML Bindings
Assignee: nobody → gandalf
Target Milestone: --- → 1.0
Attached patch patchSplinter Review
The only bug I found in Chrome is that we use "const" in strict mode. I switched it to var, since const is not part of ECMA.

With this change I get an alert window.
Attachment #758734 - Flags: review?(stas)
Comment on attachment 758734 [details] [diff] [review]
patch

Review of attachment 758734 [details] [diff] [review]:
-----------------------------------------------------------------

Good catch. r=me.
Attachment #758734 - Flags: review?(stas) → review+
Reporter, can you confirm that the code in question works in Chrome for you now?
Flags: needinfo?(thesilentimp)
closing for now. If the bug still exists, please, reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
clearing NI
Flags: needinfo?(thesilentimp)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: