Closed Bug 1270160 Opened 10 years ago Closed 10 years ago

Setting identity.fxaccounts.remote.webchannel.uri to empty string breaks firefox

Categories

(Firefox :: Sync, defect)

40 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 49
Tracking Status
firefox49 --- verified

People

(Reporter: u570621, Assigned: markh)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160502160818 Steps to reproduce: 1) Go to about:config 2) Set "identity.fxaccounts.remote.webchannel.uri" to an empty string instead of "https://accounts.firefox.com/" 3) Close firefox. 4) Open firefox. 5) Observe that e.g. about:customizing is now an empty window. Actual results: Stuff breaks. Expected results: Stuff should not break.
Component: Untriaged → Sync
Blocks: 1146904
Status: UNCONFIRMED → NEW
Ever confirmed: true
EnsureFxAccountsWebChannel() failing causes the FxA browser UI to fail at initialize time causing bad things to happen. I decided that explicitly setting it to an empty string should make a little less noise than "real" failures.
Assignee: nobody → markh
Attachment #8748908 - Flags: review?(stomlinson)
Comment on attachment 8748908 [details] [diff] [review] 0001-Bug-1270160-gracefully-handle-no-webchannel-uri-pref.patch Review of attachment 8748908 [details] [diff] [review]: ----------------------------------------------------------------- On the surface, looks good. I am in the process of re-downloading m-c to apply the patch and test. ::: services/fxaccounts/FxAccountsWebChannel.jsm @@ +450,5 @@ > if (!singleton) { > + try { > + let contentUri = Services.urlFormatter.formatURLPref("identity.fxaccounts.remote.webchannel.uri"); > + // Allow this being set to an empty string for people who want to > + // completely FxA webchannel support. Should |completely| be |completely disable|?
Thanks Shane. (In reply to Shane Tomlinson [:stomlinson] from comment #3) > > + // Allow this being set to an empty string for people who want to > > + // completely FxA webchannel support. > > Should |completely| be |completely disable|? I'm actually thinking I should not bother to add a comment there at all - it should be obvious that no preference value means we simply can't use the channel - what do you think?
> > I'm actually thinking I should not bother to add a comment there at all - it > should be obvious that no preference value means we simply can't use the > channel - what do you think? This seems reasonable to me. I'm wondering if a follow on path is worthwhile, were no Sync related functionality is available of the pref is cleared?
Comment on attachment 8748908 [details] [diff] [review] 0001-Bug-1270160-gracefully-handle-no-webchannel-uri-pref.patch Review of attachment 8748908 [details] [diff] [review]: ----------------------------------------------------------------- Tested locally, works as advertised, approach is sane. ::: services/fxaccounts/FxAccountsWebChannel.jsm @@ +450,5 @@ > if (!singleton) { > + try { > + let contentUri = Services.urlFormatter.formatURLPref("identity.fxaccounts.remote.webchannel.uri"); > + // Allow this being set to an empty string for people who want to > + // completely FxA webchannel support. Should |completely| be |completely disable|?
Attachment #8748908 - Flags: review?(stomlinson) → review+
markh: do you mind checking this in to m-c or fx-team? I have no commit rights.
Flags: needinfo?(markh)
Severity: normal → major
Has Regression Range: --- → yes
Has STR: --- → yes
Keywords: regression
Version: 45 Branch → 40 Branch
Severity: major → normal
Flags: needinfo?(markh)
Keywords: regression
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Depends on: 1282339
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: