Closed
Bug 859715
Opened 12 years ago
Closed 12 years ago
SocialServiceInternal.providers is undefined
Categories
(Firefox Graveyard :: SocialAPI, defect)
Tracking
(firefox22+ verified)
VERIFIED
FIXED
Firefox 23
People
(Reporter: past, Assigned: mixedpuppy)
References
Details
Attachments
(1 file, 1 obsolete file)
6.29 KB,
patch
|
mixedpuppy
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
I noticed that my facebook toolbar was gone in the latest Nightly and while trying to re-enable it by visiting Facebook, I got this:
Timestamp: 4/9/13 11:44:31 AM
Error: TypeError: SocialServiceInternal.providers is undefined
Source File: resource://gre/modules/SocialService.jsm
Line: 252
I'm pretty sure it was there yesterday.
Assignee | ||
Updated•12 years ago
|
Severity: normal → critical
Reporter | ||
Comment 1•12 years ago
|
||
Aaaand the toolbar is back again today!
I think it updated in between reboots and there are no errors in the error console.
Assignee | ||
Comment 2•12 years ago
|
||
The only way I've been able to cause this to happen is by directly messing with preferences. I could see it happen with interim builds of aurora and nightly. Nonetheless, we should protect against the exception that causes this, since if it does happen it social is broken.
Assignee | ||
Comment 3•12 years ago
|
||
Includes a test, but here is manual repro as well.
Reproduction:
1. start fx22, enable a provider
2. enter about:config and reset the pref for that provider
3. start fx23
- expected result:
no provider is enabled. you can go to the activation page and renable
- what does happen without this patch:
no provider is enabled. you cannot activate any provider without first resetting social.activeProviders in about:config
This situation really only occurred as an interim problem between some patch landings, but it is best to protect the startup of social.
Attachment #736016 -
Flags: review?(mhammond)
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment on attachment 736016 [details] [diff] [review]
migration startup fix
Review of attachment 736016 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/social/SocialService.jsm
@@ +165,5 @@
> string.data = JSON.stringify(manifest);
> Services.prefs.setComplexValue(prefname, Ci.nsISupportsString, string);
> }
> }
> + ActiveProviders.flush();
It looks like this is going to be called on every startup - how about a boolean to indicate if the flush() is needed just to help keep startup snappy?
@@ +224,5 @@
> + } catch(e) {
> + // no matter what, if migration fails we do not want to render social
> + // unusable. Worst case scenario is that, when upgrading Firefox, previously
> + // enabled providers are not migrated.
> + Cu.reportError(e);
I think it might be worth something like Cu.reportError("Error migrating social settings: " + e);
Attachment #736016 -
Flags: review?(mhammond) → review+
Assignee | ||
Comment 6•12 years ago
|
||
addressing comments, but only doing flush in the error case, carrying forward r+
Assignee: nobody → mixedpuppy
Attachment #736016 -
Attachment is obsolete: true
Attachment #736537 -
Flags: review+
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 736537 [details] [diff] [review]
migration startup fix
[Approval Request Comment]
User impact if declined: potential failure to start social if user messed with prefs or used an addon to install social provider prefs
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low, in rare cases social will fail to work
String or IDL/UUID changes made by this patch: none
Attachment #736537 -
Flags: approval-mozilla-aurora?
Comment 9•12 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #8)
Where's the "Bug caused by (feature/regressing bug #)" line? The bug that caused this issue should be listed in the "blocks" field.
Assignee | ||
Comment 10•12 years ago
|
||
migration startup fix
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 851936
User impact if declined: potential failure to start social if user messed with prefs or used an addon to install social provider prefs
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low, in rare cases social will fail to work
String or IDL/UUID changes made by this patch: none
Blocks: 851936
Updated•12 years ago
|
status-firefox22:
--- → affected
tracking-firefox22:
--- → +
Updated•12 years ago
|
Attachment #736537 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Updated•12 years ago
|
Comment 13•12 years ago
|
||
I wasn't able to reproduce this issue using the suggestions from the description and comment 3, with the Nightly build from 2013-04-09 on Mac OSX 10.8.3 in 32bit mode.
Since there is already an automated test for this issue, is necessary a manual verification also? If it is, could please someone provide more detailed steps to reproduce? Thanks!
Flags: needinfo?
Comment 15•12 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #14)
> IMO this doesn't need further manual testing.
Thanks for the reply!
Marking this verified fixed for Fx 22, based on comment 14.
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•