Closed Bug 849347 Opened 11 years ago Closed 11 years ago

Facebook activation fails when checking for blocklisted provider

Categories

(Firefox Graveyard :: SocialAPI, defect)

22 Branch
defect
Not set
major

Tracking

(firefox22 verified)

VERIFIED FIXED
Firefox 22
Tracking Status
firefox22 --- verified

People

(Reporter: u279076, Assigned: markh)

References

Details

(Keywords: regression)

Attachments

(1 file)

Steps to Reproduce
1. Log in to www.facebook.com
2. Go to www.facebook.com/about/messenger-for-firefox
3. Click the "Turn On" button

Result:
Social toolbar buttons and sidebar fail to appear

Expected:
Social toolbar buttons and sidebar should appear

Error in Error Console:
> Error: TypeError: data is null
> Source File: resource://gre/modules/SocialService.jsm
> Line: 378

This correlates to the following code:
> 372: installProvider: function(sourceURI, data, installCallback) {
> 373:   let URI = Services.io.newURI(sourceURI, null, null);
> 374:   let principal = Services.scriptSecurityManager.getNoAppCodebasePrincipal(URI);
> 375:   let installOrigin = principal.origin;
> 376:
> 377:   let id = getAddonIDFromOrigin(installOrigin);
> 378:   if (bs.getAddonBlocklistState(id, data.version || "0") == Ci.nsIBlocklistService.STATE_BLOCKED)
> 379:     throw new Error("installProvider: provider with origin [" +
> 380:                     installOrigin + "] is blocklisted");

Upon activation in a known good build my prefs become:
> social.activeProviders = {"https://www.facebook.com":1}
> social.enabled = true
> social.provider.current = https://www.facebook.com
> social.sidebar.open = true

Upon activation in the latest Nightly my prefs become:
> social.activeProviders (does not exist)
> social.enabled = false
> social.provider.current (does not exist)
> social.sidebar.open = true
This is a recent regression as it works in Firefox Nightly 22.0a1 2013-02-27 but does not today. I'll try to narrow down the regression range further.
Keywords: regression
Last good nightly: 2013-03-06
First bad nightly: 2013-03-07
Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=216ec69cc531&tochange=ee4879719f78

The only SocialAPI change I see in this pushlog is:
Bug 786133 - Need a way to discover and install additional social providers

I'm nominating this for tracking since it prevents activation of the SocialAPI.
Blocks: 786133
Severity: normal → major
trivial patch that fixes the problem for me.  Probably not worth making a testcase just for this (IMO anyway ;)
Assignee: nobody → mhammond
Attachment #723802 - Flags: review?(mixedpuppy)
Attachment #723802 - Flags: review?(mixedpuppy) → review+
https://hg.mozilla.org/mozilla-central/rev/8ef4cb8c92e3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Keywords: verifyme
Verified fixed with Firefox Nightly 22.0a1 2013-03-14.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: