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)
Tracking
()
VERIFIED
FIXED
Firefox 49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | verified |
People
(Reporter: u570621, Assigned: markh)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
|
2.14 KB,
patch
|
stomlinson
:
review+
|
Details | Diff | Splinter Review |
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.
Updated•10 years ago
|
Component: Untriaged → Sync
Comment 1•10 years ago
|
||
the issue is easily reproducible & this is the regression range: https://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=feefdfa526a80bc51010582ca8eae5263735a657&tochange=eac6ac60b5e648bd0bb52a8a085f73491bf66faa
| Assignee | ||
Comment 2•10 years ago
|
||
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 3•10 years ago
|
||
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|?
| Assignee | ||
Comment 4•10 years ago
|
||
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?
Comment 5•10 years ago
|
||
>
> 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 6•10 years ago
|
||
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+
Comment 7•10 years ago
|
||
markh: do you mind checking this in to m-c or fx-team? I have no commit rights.
Flags: needinfo?(markh)
Updated•10 years ago
|
Severity: normal → major
Has Regression Range: --- → yes
Has STR: --- → yes
Keywords: regression
Version: 45 Branch → 40 Branch
Updated•10 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•10 years ago
|
Comment 9•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Updated•10 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•