Closed Bug 1259986 Opened 8 years ago Closed 8 years ago

firefox hello is showing blank dropdown in firefox version 45.0.1 and language marathi.

Categories

(Hello (Loop) :: Client, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Iteration:
48.3 - Apr 25

People

(Reporter: rohit.8859, Assigned: standard8)

References

Details

Attachments

(3 files)

Attached image Bug 2.png
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160315153207

Steps to reproduce:

I clicked on firefox hello button in menubar.


Actual results:

Nothing shown in dropdown.


Expected results:

It should show something.
Kindly elaborate on this bug.
Component: General → Client
Product: Core → Hello (Loop)
Version: 45 Branch → unspecified
Rohit: A couple of questions... 

Which language are you using?

Also,  if you startup Firefox, go to the menu and find the Web developer option, then select "Browser Console". Then go back and click the Hello button, do you get any errors displayed?
Flags: needinfo?(rohit.8859)
I am using marathi language for firefox,  I tried console , but console dont show any error there.
Flags: needinfo?(rohit.8859)
Summary: firefox hello → firefox hello is showing blank dropdown in firefox version 45.0.1 and language marathi.
This image shows how I tried browser console and what happened after I clicked on Firefox Hello
The add-on doesn't have a "mr" locale, but the version in release is using this file anyway:

http://hg.mozilla.org/releases/l10n/mozilla-release/mr/file/tip/browser/chrome/browser/loop/loop.properties

कम्पोनंट ऑब्जेक्टचा वापर होत नाही. त्याला लवकरच काढून टाकले जाईल. utils.js:9:15
points to
chrome://loop/content/shared/js/utils.js:
var inChrome = typeof Components != "undefined" && "utils" in Components;

TypeError: kPluralFunctions[gL10nDetails.pluralRule] is undefined l10n.js:213:9
points to
chrome://loop/content/panels/vendor/l10n.js
gPluralFunc = kPluralFunctions[gL10nDetails.pluralRule][1];
(In reply to Ed Lee :Mardak from comment #5)
> कम्पोनंट ऑब्जेक्टचा वापर होत नाही. त्याला लवकरच काढून टाकले जाईल.
> utils.js:9:15
> points to
> chrome://loop/content/shared/js/utils.js:
> var inChrome = typeof Components != "undefined" && "utils" in Components;
FYI, this is:

 ComponentsWarning=The Components object is deprecated. It will soon be removed.
It seems like we should clean up the mr locale from mozilla-central, since it's from before we had an add-on localization process.  We should also check that there aren't more localizations like this.  There's also presumably a bug where the locale confusion causes some fatal error, while it should fall back to English.

(Is something trying to localize the Components warning?)
Rank: 25
Priority: -- → P2
The Components isn't the issue here - that's just a standard warning that we can't do anything about.

The real issue will be the TypeError for the plural rule.
Depends on: 1260526
Ok, I figured it, if you watch the console there's actually two things, although the first one isn't an error:

PluralForm.jsm: Invalid rule number: NaN -- defaulting to 0
TypeError: kPluralFunctions[gL10nDetails.pluralRule] is undefined l10n.js:213:9

The first one points us to the fact (tracing through code) that Firefox has an invalid number for the plural form - looking in the intl.properties for `mr` shows that the pluralRule is a localised character rather than an ascii digit.

Firefox doesn't explode because it defaults to zero in the case the rule is out-of-bounds.

I've raised bug 1260526 to get that fixed.


I think to prevent this happening to us, we should change our code to also fallback to the form zero.

This would also protect us in the case a rule is added for a new locale and we don't notice.

I've checked the other locales, and there's no others that are setting incorrect values for the plural form.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → standard8
Attachment #8739398 - Flags: review?(dcritchley)
Attachment #8739398 - Flags: review?(crafuse)
Attachment #8739398 - Flags: review?(dcritchley)
Attachment #8739398 - Flags: review?(crafuse)
Attachment #8739398 - Flags: review+
https://github.com/mozilla/loop/commit/d852d29f6fd8b174f861e6b5615e37387b74176b
Status: NEW → RESOLVED
Iteration: --- → 48.3 - Apr 25
Closed: 8 years ago
Resolution: --- → FIXED
Blocks: 1265865
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: