Closed
Bug 766483
Opened 12 years ago
Closed 12 years ago
Doorhangers in the selected tab reappear when background tabs fire change events
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox15+ verified, firefox16 verified, firefox17 verified)
VERIFIED
FIXED
Firefox 16
People
(Reporter: martijn.martijn, Assigned: Margaret)
References
()
Details
(Keywords: regression, testcase)
Attachments
(2 files, 1 obsolete file)
1.06 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
2.32 KB,
patch
|
mfinkle
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Make sure you have Plugins set to "Tap to Play" in your settings
Steps to reproduce:
- Open testcase, plugin doorhanger should appear (just dismiss it by tapping outside of it)
- Long tap on one of the links at the bottom
- In the resulting context menu, tap on the "Open Link in New Tab".
Expected result:
- No plugin doorhanger prompt appears.
Actual result:
- Pluing doorhanger prompt appears.
I've seen this bug in current trunk build, but not in Aurora, nor in beta.
Comment 1•12 years ago
|
||
Good build: June 12
Bad build: June 13 964b11fea7f1
Possible regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=131961e5e0d1&tochange=964b11fea7f1
Keywords: regressionwindow-wanted
Reporter | ||
Comment 2•12 years ago
|
||
Thanks, Adrian.
On inbound, the regression range is: from 4a4519b018e9 to d846a8245199
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?startdate=2012-06-12+00%3A00%3A00&enddate=2012-06-13+02%3A00%3A00
As usual, with all these checkins, it is impossible for me which caused the regression.
Assignee | ||
Comment 3•12 years ago
|
||
This is probably a regression from all the refactoring that's been happening. I'll investigate.
Assignee: nobody → margaret.leibovic
Assignee | ||
Comment 5•12 years ago
|
||
The problem that caused this bug is that we're calling updatePopups() on background tabs. The same problem happens if you close a background tab.
All the methods that are getting called in GeckoApp's onTabsChanged method only apply to the selected tab, but we only check for that in some of them. This patch moves that check to the top and bails if the event isn't about the selected tab.
Attachment #638884 -
Flags: review?(wjohnston)
Assignee | ||
Comment 6•12 years ago
|
||
Actually, we may need to call hidePlugins(tab) on a tab when it's closed. Snorp, is that true, or do we only care about calling hidePlugins on the selected tab? I feel like there's probably other code paths that just totally destroy the plugins on a closed tab.
Assignee | ||
Comment 7•12 years ago
|
||
In my investigation, I found an unused method. Let's get rid of it.
Attachment #638886 -
Flags: review?(snorp)
Assignee | ||
Comment 8•12 years ago
|
||
This issue is present in aurora as well.
Assignee | ||
Updated•12 years ago
|
Summary: Plugin doorhanger prompt reappears after opening a link in new tab → Doorhangers in the selected tab reappear when background tabs fire change events
Updated•12 years ago
|
Attachment #638886 -
Flags: review?(snorp) → review+
Comment 9•12 years ago
|
||
Comment on attachment 638884 [details] [diff] [review]
patch
Review of attachment 638884 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! In order to avoid changing behavior, I tried to keep these separate if possible, but I'm fine with this. Probably needs uplift to Aurora as well.
Attachment #638884 -
Flags: review?(wjohnston) → review+
Comment 10•12 years ago
|
||
Also, tests?
Assignee | ||
Comment 11•12 years ago
|
||
So, I was thinking about this more, and I realized that other patch was wrong :/
First of all, we'll never get an UNSELECTED event for the currently selected tab (duh). Also, we don't need to be listening for CLOSED events, since we'll always get an UNSELECTED first. And we don't need to listen for ADDED either, since we'll always get a SELECTED right afterwards if that new tab is the selected tab.
Attachment #638884 -
Attachment is obsolete: true
Attachment #639409 -
Flags: review?(wjohnston)
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 639409 [details] [diff] [review]
patch
Wes is on PTO, but I want to land this. Switching review request...
Attachment #639409 -
Flags: review?(wjohnston) → review?(mark.finkle)
Updated•12 years ago
|
Attachment #639409 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 13•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/485fecad1775
https://hg.mozilla.org/integration/mozilla-inbound/rev/b17d35c73185
Target Milestone: --- → Firefox 16
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 639409 [details] [diff] [review]
patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): regression caused by bug 753102
User impact if declined: doorhangers can unexpectedly reappear; this patch also gets rid of some extra unnecessary work
Testing completed (on m-c, etc.): just landed on inbound
Risk to taking this patch (and alternatives if risky): just simplifies logic, should be low-risk
String or UUID changes made by this patch: n/a
Attachment #639409 -
Flags: approval-mozilla-aurora?
Comment 15•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/485fecad1775
https://hg.mozilla.org/mozilla-central/rev/b17d35c73185
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Updated•12 years ago
|
Attachment #639409 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 16•12 years ago
|
||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
status-firefox17:
--- → verified
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•