Closed Bug 769905 Opened 12 years ago Closed 12 years ago

Doorhanger popup on Twitter Mobile closes too quickly

Categories

(Firefox for Android Graveyard :: General, defect)

15 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox15 verified, firefox16 verified, firefox17 verified)

VERIFIED FIXED
Firefox 16
Tracking Status
firefox15 --- verified
firefox16 --- verified
firefox17 --- verified

People

(Reporter: micmon, Assigned: Margaret)

Details

Attachments

(1 file)

On the Twitter mobile pages (for example: https://mobile.twitter.com/ChainsDD), a doorhanger (location information?) is shown for a fraction of a second but it auto-closes right away so it cannot be interacted with.
Margaret - Do we need to play with the timeout of the doorhanger for this?
I added some logging to investigate, and the issue here is that we're getting two Content:LocationChange events for https://mobile.twitter.com/*. I'm not sure what Twitter is doing to cause this. As a workaround, we could make sure to only call updatePopups() if the URI hasn't changed, but that would be a change that would apply to all notifications. That would also mean that the notification would reappear if you reload a page if you just tapped outside to dismiss it, but most notifications would reappear in that case anyway.

I'm hesitant to add a timeout for the geolocation notification, since that can lead to bugs where the notification from a previous page appears on a new page.
(In reply to Margaret Leibovic [:margaret] from comment #2)
> I added some logging to investigate, and the issue here is that we're
> getting two Content:LocationChange events for https://mobile.twitter.com/*.
> I'm not sure what Twitter is doing to cause this. As a workaround, we could
> make sure to only call updatePopups() if the URI hasn't changed, but that
> would be a change that would apply to all notifications. That would also
> mean that the notification would reappear if you reload a page if you just
> tapped outside to dismiss it, but most notifications would reappear in that
> case anyway.

Actually, after thinking about this more, if you've dismissed a popup, then reloaded the page, we wouldn't call updatePopups(), so you couldn't get the popup back if you wanted it, and that would be unexpected.

It seems like what we really want is to keep the popup showing if it's already showing *and* the URI hasn't changed.
Attached patch patchSplinter Review
This patch makes it so that we'll only try to remove doorhangers on location change if the doorhanger popup is hidden or if the tab's URL is actually changing.
Assignee: nobody → margaret.leibovic
Attachment #638819 - Flags: review?(mark.finkle)
Comment on attachment 638819 [details] [diff] [review]
patch

Makes sense
Attachment #638819 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a48058e9b9b3
Target Milestone: --- → Firefox 16
Comment on attachment 638819 [details] [diff] [review]
patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): n/a
User impact if declined: if a site does some sort of scripted reload, doorhanger notifications can disappear before the user can address them; this happens on Twitter
Testing completed (on m-c, etc.): just landed on m-c
Risk to taking this patch (and alternatives if risky): low-risk extra check before deciding to remove doorhangers
String or UUID changes made by this patch: n/a
Attachment #638819 - Flags: approval-mozilla-aurora?
(In reply to Margaret Leibovic [:margaret] from comment #7)

> Testing completed (on m-c, etc.): just landed on m-c

Er, I mean inbound.
https://hg.mozilla.org/mozilla-central/rev/a48058e9b9b3
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #638819 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: