Closed Bug 955747 Opened 11 years ago Closed 10 years ago

Twitter support in russian locale is broken

Categories

(Chat Core :: Twitter, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: clokep)

References

Details

(Whiteboard: [1.6-blocking])

Attachments

(1 file)

*** Original post on bio 2294 by Igor <kantsuris AT gmail.com> at 2013-12-23 05:08:00 UTC ***

When leaving the stable version in Russian disappears twitter!
*** Original post on bio 2294 at 2013-12-23 14:02:48 UTC ***

I don't understand what you mean, can you please describe step-by-step what is happening and what you expect to happen?
*** Original post on bio 2294 by Igor <kantsuris AT gmail.com> at 2013-12-23 18:04:53 UTC ***

Russian version non twitter !
*** Original post on bio 2294 at 2013-12-25 20:47:57 UTC ***

I can confirm that the russian locale doesn't contain Twitter in any of it's protocol lists. Here's the error from the console:

Метка времени: 25.12.2013 21:42:57
Ошибка: Could not initialize protocol prpl-twitter: [Exception... "'Creating an instance of prpl-twitter but this object implements prpl-B28BB5@' when calling method: [prplIProtocol::init]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: resource://gre/components/imCore.js :: <TOP_LEVEL> :: line 338"  data: no]
Источник: resource://gre/components/imCore.js
Строка: 340
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → major
Component: Account wizard → Twitter
OS: Windows 7 → All
Product: Instantbird → Chat Core
Hardware: x86 → All
Summary: When leaving the stable version in Russian disappears twitter! → Twitter support in russian locale is broken
*** Original post on bio 2294 at 2013-12-25 21:16:12 UTC ***

Cause of the problem is that we're localizing the protocol name now [1] and this localized name is used by jsProtoHelper [2] to create the id of the protocol.

Adding a getter for the id that returns "prpl-twitter" fixes the problem for me. 

[1] https://hg.instantbird.org/instantbird/file/e119e96ba074/chat/protocols/twitter/twitter.js#l1085
[2] https://hg.instantbird.org/instantbird/file/e119e96ba074/chat/modules/jsProtoHelper.jsm#l757

I think we should hardcode the id from now on.
Blocks: 955201
Whiteboard: [1.6-blocking]
Attached patch PatchSplinter Review
Other protocols just override normalizedName, which I believe is the "right" fix since this is also used for various comparison.
Assignee: nobody → clokep
Status: NEW → ASSIGNED
Attachment #8389788 - Flags: review?(florian)
Comment on attachment 8389788 [details] [diff] [review]
Patch

Thanks!
Attachment #8389788 - Flags: review?(florian) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/b63aa9c26ecf
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: