Closed Bug 825723 Opened 12 years ago Closed 12 years ago

Popup notification anchor disappears when a notification with the same ID is re-added in a background tab

Categories

(Toolkit :: General, defect)

15 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla22
Tracking Status
firefox19 --- wontfix
firefox20 --- wontfix
firefox21 --- verified
firefox22 --- verified
relnote-firefox --- -

People

(Reporter: jaws, Assigned: dao)

References

Details

(Keywords: regression, reproducible, Whiteboard: [CtPDefault:P2][getUserMedia][blocking-gum-][STR in comment 2])

Attachments

(2 files, 1 obsolete file)

Attached image Screenshot of bug (deleted) —
I don't have great steps to reproduce, but this seems to happen only with the click-to-play notifications. To turn those on, go to about:config and set plugins.click_to_play=true, then visit sites that use plugins.

When this happens, the little arrow shows in the location bar, but doesn't show the icon. Clicking on the arrow will then cause the rest of the notification icon to show.

I've attached a screenshot of what it looks like before clicking on it.
Component: Untriaged → General
I can see something like this on cnn.com by loading cnn.com in one tab, and then right clicking to load a story from the "This Just In" section in a background tab. I'm guessing that the UI is misinterpreting a message from the background tab?
STR:
1. Have 2 tabs CTP blocked, CTP icon present in each tab
2. Reload first tab
3. Quickly switch to the second tab (before first tab finishes reloading)

AR: CTP icon disappears
OS: Windows 7 → All
Hardware: x86 → All
Whiteboard: [CtPDefault:P2]
Still occuring. Switching tabs again fixes it.
Keywords: reproducible
Not happening with the camera permission notification, so this might be specific to the CtP notification implementation.
Now being seen in Camera/mic notifications (not sure if it's a regression there due to changing the implementation, or was just noticed and has always been there).  See bug 847180
Given that CTP has shipped and had this bug, I don't think the gUM equivalent version of this bug blocks. However, based on the discussion on the associated dupe, this is still a really important bug to fix (also known as: a strong want, but not blocking).

Let's track this for Firefox 21. We can probably ship with this bug on gUM then for FF 20, so no need to go sprinting to land this on Beta unless the patch is extremely low risk.
Whiteboard: [CtPDefault:P2] → [CtPDefault:P2][getUserMedia][blocking-gum-]
Might be worth rel noting this too for FF 20.
relnote-firefox: --- → ?
Has somebody looked whether this is a regression? Are notifications other than click-to-play and getUserMedia affected?
This is not a regression in CTP - reproducible on FF 16, 17.
Can you give an example of other notifications to test ?
(In reply to Paul Silaghi [QA] from comment #11)
> Can you give an example of other notifications to test ?

geolocation and addon installation
(In reply to Dão Gottwald [:dao] from comment #12)
> geolocation and addon installation
both are affected

and it seems to be a regression:
Last good nightly: 2012-05-04
First bad nightly: 2012-05-05

Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2db9df42823d&tochange=0a48e6561534
Likely cause from pushlog:
OHZEKI Tetsuharu — Bug 641892 - Support showing multiple popup notification icons at the same time. r=margaret
Blocks: 641892
Hmm...if the bug has been around for that long and people aren't yelling about this, then it probably isn't critical track then. But we should definitely push for a fix here.
(In reply to Jason Smith [:jsmith] from comment #15)
> Hmm...if the bug has been around for that long and people aren't yelling
> about this, then it probably isn't critical track then.

The level of noise is most likely due to the fact that many of these notifications are rare in their appearance in the first place.

The most visible notification pre-CTP is the remember-password notification. This notification usually only appears after a user has entered their password and hit submit on a form, meaning that the user is actively engaging with the tab.

The easiest way to reproduce this bug is to load pages in multiple/background tabs which is highly likely to trigger a CTP notification, but not many other notifications.
Keywords: regression
Product: Firefox → Toolkit
Summary: Notifications sometimes fail to fully appear → Popup notification anchor disappears when a notification with the same ID is added for a background tab
Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: nobody → dao
Status: NEW → ASSIGNED
Attachment #722212 - Flags: review?(gavin.sharp)
Comment on attachment 722212 [details] [diff] [review]
patch

Couldn't you more efficiently check notification.browser == this.tabbrowser.selectedBrowser?

Seems like we need a test for this.

r=me with those addressed.
Attachment #722212 - Flags: review?(gavin.sharp) → review+
Attached patch patch (deleted) — Splinter Review
Attachment #722212 - Attachment is obsolete: true
https://hg.mozilla.org/integration/mozilla-inbound/rev/e25ca1ca1f17
Summary: Popup notification anchor disappears when a notification with the same ID is added for a background tab → Popup notification anchor disappears when a notification with the same ID is re-added in a background tab
https://hg.mozilla.org/mozilla-central/rev/e25ca1ca1f17
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Version: Trunk → 15 Branch
Comment on attachment 722842 [details] [diff] [review]
patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 641892
User impact if declined: missing notification icons for frequent popup notifications such as click to play
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: none
Attachment #722842 - Flags: approval-mozilla-aurora?
Attachment #722842 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Does this need QA verification given in-testsuite coverage?
Verified fixed Aurora 21.0a2 (2013-03-17), Nightly 22.0a1 (2013-03-17) on Win 7, Ubuntu 12.04, Mac 10.7.5.
Status: RESOLVED → VERIFIED
Without easily reproducible STR, or significant user feedback around this issue, it'll be difficult/unnecessary to relnote.
(In reply to Alex Keybl [:akeybl] from comment #26)
> Without easily reproducible STR, or significant user feedback around this
> issue, it'll be difficult/unnecessary to relnote.

There's reproducible STR in the associated dupe on this bug.
Whiteboard: [CtPDefault:P2][getUserMedia][blocking-gum-] → [CtPDefault:P2][getUserMedia][blocking-gum-][STR in comment 2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: