Closed Bug 1220527 Opened 9 years ago Closed 9 years ago

Link doesn't work on upgrade notification if clicked too early

Categories

(Firefox :: General, defect)

44 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 45
Tracking Status
firefox43 --- unaffected
firefox44 --- fixed
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: tanvi, Assigned: lina)

References

Details

Attachments

(1 file)

If users click on the Upgraded Notifications message too early (before the browser window opens), the click is lost.  The message disappears on click, but the browser never opens a tab to the push learn more link.
Looking at how to implement this: should we use `Services.ww.openWindow` to open a new browser window if we don't have a most-recent window?
I think we can just move the code to run at first window restore (see _onFirstWindowLoaded).

I thought there was a helper to fallback to opening a new window but I can't find it.
Bug 1220527 - Wait for the first window before showing the upgraded notifications alert. r=MattN
Attachment #8682203 - Flags: review?(MattN+bmo)
Comment on attachment 8682203 [details]
MozReview Request: Bug 1220527 - Wait for the first window before showing the upgraded notifications alert. r=MattN

https://reviewboard.mozilla.org/r/23985/#review21423

Thanks!
Attachment #8682203 - Flags: review?(MattN+bmo) → review+
https://hg.mozilla.org/integration/fx-team/rev/436f6fab5d4e773138e128c7163238620aa40730
Bug 1220527 - Wait for the first window before showing the upgraded notifications alert. r=MattN
Assignee: nobody → kcambridge
Status: NEW → ASSIGNED
Component: DOM: Push Notifications → General
Product: Core → Firefox
Comment on attachment 8682203 [details]
MozReview Request: Bug 1220527 - Wait for the first window before showing the upgraded notifications alert. r=MattN

Approval Request Comment
[Feature/regressing bug #]: bug 1216271
[User impact if declined]: If startup is slow, clicking on the notification won't do anything despite the text saying "Click to learn more".
[Describe test coverage new/current, TreeHerder]: No automated test change since it's for a one-time notification. There is a test for the initial notification behaviour.
[Risks and why]:  Low risk one-time migration change
[String/UUID change made/needed]: None
Attachment #8682203 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/436f6fab5d4e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
removing the b2g 2.5 flag since this commit has been reverted due to an incorrect merge, sorry for the confusion
Comment on attachment 8682203 [details]
MozReview Request: Bug 1220527 - Wait for the first window before showing the upgraded notifications alert. r=MattN

This seems to be a regression we should fix, let's uplift to Aurora44.
Attachment #8682203 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: