Closed
Bug 1126559
Opened 10 years ago
Closed 9 years ago
UITour is able to show the refresh Firefox dialog even when reset isn't supported
Categories
(Firefox :: Tours, defect)
Firefox
Tours
Tracking
()
RESOLVED
FIXED
Firefox 49
People
(Reporter: MattN, Assigned: Gijs)
References
()
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
MattN
:
review+
ritu
:
approval-mozilla-aurora+
ritu
:
approval-mozilla-beta-
|
Details |
UITour.jsm isn't checking ResetProfile.resetSupported and doesn't let the page know when a refresh is supported so it can avoid showing UI to show the refresh dialog.
This is probably not very common but one user hit it from the SUMO refresh page: https://support.mozilla.org/en-US/questions/1043695
Flags: firefox-backlog?
Updated•10 years ago
|
Flags: firefox-backlog? → firefox-backlog+
Comment 1•10 years ago
|
||
Some additional info in the case of mozorg - we're now also showing a refresh button for up-to-fate users on https://www.mozilla.org/firefox/new/. In this case, we're first calling getConfiguration('appInfo') to make sure the user is on release channel with the most recent version before showing the button [1]. I'm assuming this is enough to avoid the likelihood of users hitting this bug also.
[1] https://github.com/mozilla/bedrock/blob/master/media/js/firefox/new.js#L69
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/53546/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/53546/
Attachment #8753894 -
Flags: review?(MattN+bmo)
Reporter | ||
Comment 4•9 years ago
|
||
Comment on attachment 8753894 [details]
MozReview Request: Bug 1126559 - don't allow resetting when that is not possible, r?MattN
https://reviewboard.mozilla.org/r/53546/#review50528
Thanks
Attachment #8753894 -
Flags: review?(MattN+bmo) → review+
Reporter | ||
Comment 5•9 years ago
|
||
Alex, can you have mozorg not show the refresh button if the version is 49.0a1 or higher and getConfiguration("canReset") is false?
I'm not sure who can make the SUMO change.
Flags: needinfo?(agibson)
Comment 6•9 years ago
|
||
(In reply to Matthew N. [:MattN] (behind on reviews) from comment #5)
> Alex, can you have mozorg not show the refresh button if the version is
> 49.0a1 or higher and getConfiguration("canReset") is false?
>
> I'm not sure who can make the SUMO change.
Sure, but on mozorg we're already calling getConfiguration('appinfo') to make sure the user is on release channel before showing the button. In that case, is calling 'canReset' still needed? Just trying to understand if there are edge cases I'm not aware of where reset might not be supported still.
I can see about filing a SUMO bug to get their page fixed.
Flags: needinfo?(agibson) → needinfo?(MattN+bmo)
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Alex Gibson [:agibson] from comment #6)
> (In reply to Matthew N. [:MattN] (behind on reviews) from comment #5)
> > Alex, can you have mozorg not show the refresh button if the version is
> > 49.0a1 or higher and getConfiguration("canReset") is false?
> >
> > I'm not sure who can make the SUMO change.
>
> Sure, but on mozorg we're already calling getConfiguration('appinfo') to
> make sure the user is on release channel before showing the button. In that
> case, is calling 'canReset' still needed? Just trying to understand if there
> are edge cases I'm not aware of where reset might not be supported still.
Yes - if a user starts with particular commandline options to use profiles stored in non-default directories, or starts with a non-default profile (on 48 and below), we can't (couldn't) always reset the browser. I'll see about uplifting this because of that constraint.
Flags: needinfo?(MattN+bmo)
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8753894 [details]
MozReview Request: Bug 1126559 - don't allow resetting when that is not possible, r?MattN
Approval Request Comment
[Feature/regressing bug #]: Firefox refresh
[User impact if declined]: users can be offered refresh when it won't work properly
[Describe test coverage new/current, TreeHerder]: additional test coverage is part of the patch
[Risks and why]: low risk, minor change specific to UITour
[String/UUID change made/needed]: nope
Attachment #8753894 -
Flags: approval-mozilla-beta?
Attachment #8753894 -
Flags: approval-mozilla-aurora?
Comment 10•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #7)
> (In reply to Alex Gibson [:agibson] from comment #6)
> > (In reply to Matthew N. [:MattN] (behind on reviews) from comment #5)
> > > Alex, can you have mozorg not show the refresh button if the version is
> > > 49.0a1 or higher and getConfiguration("canReset") is false?
> > >
> > > I'm not sure who can make the SUMO change.
> >
> > Sure, but on mozorg we're already calling getConfiguration('appinfo') to
> > make sure the user is on release channel before showing the button. In that
> > case, is calling 'canReset' still needed? Just trying to understand if there
> > are edge cases I'm not aware of where reset might not be supported still.
>
> Yes - if a user starts with particular commandline options to use profiles
> stored in non-default directories, or starts with a non-default profile (on
> 48 and below), we can't (couldn't) always reset the browser. I'll see about
> uplifting this because of that constraint.
Got it thanks, I'll file a mozorg bug so we can update as necessary. Thanks for the info!
Comment 11•9 years ago
|
||
Filed Bug 1274207 for bedrock.
Comment 12•9 years ago
|
||
Filed Bug 1274210 for SUMO.
Comment 13•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Comment on attachment 8753894 [details]
MozReview Request: Bug 1126559 - don't allow resetting when that is not possible, r?MattN
Let's uplift to Aurora48. Given how old this issue is, I would prefer to not uplift to Beta47 as we are a week away from build RC.
At this point, I would like to only accept uplifts for critical recent regressions, severe stability, security, perf, mlk issues only. This is to minimize code churn and get ready to ship this thing in 2 weeks.
Attachment #8753894 -
Flags: approval-mozilla-beta?
Attachment #8753894 -
Flags: approval-mozilla-beta-
Attachment #8753894 -
Flags: approval-mozilla-aurora?
Attachment #8753894 -
Flags: approval-mozilla-aurora+
status-firefox47:
--- → wontfix
status-firefox48:
--- → affected
Comment 15•9 years ago
|
||
bugherder uplift |
Comment 16•9 years ago
|
||
bugherder uplift |
I had to back this out in https://hg.mozilla.org/releases/mozilla-aurora/rev/c40d4d7f4bb2 for breaking a test:
https://treeherder.mozilla.org/logviewer.html#?job_id=2647292&repo=mozilla-aurora
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 18•9 years ago
|
||
Relanded with a test change (tested locally, should pass on aurora now).
remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/a6138313bed9
Flags: needinfo?(gijskruitbosch+bugs)
Comment 19•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #18)
> Relanded with a test change (tested locally, should pass on aurora now).
>
> remote: https://hg.mozilla.org/releases/mozilla-aurora/rev/a6138313bed9
setting flags
You need to log in
before you can comment on or make changes to this bug.
Description
•