Closed Bug 1370018 Opened 8 years ago Closed 8 years ago

Pop-up blocker notification and icon can disappear quickly if popups are created from a subframe / in multi-frame documents

Categories

(Firefox :: General, defect)

53 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 56
Tracking Status
firefox-esr52 --- wontfix
firefox53 --- wontfix
firefox54 + wontfix
firefox55 + fixed
firefox56 --- fixed

People

(Reporter: epinal99-bugzilla2, Assigned: Gijs)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR: 1) Check "Block pop-up windows" in the options 2) Open https://jsfiddle.net/peo3x4aq/ AR: The pop-up blocker notification and icon (in the location bar) disappear quickly and the user is not able to click on the button to open the pop-up blocker options. Regression range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4c987b7ed54a630a7de76adcc2eb00dab49d5dfd&tochange=f9acfdca68a45c8cecf54f5a1bfc3b2a4baa52a3 Gijs Kruitbosch — Bug 1325841 - fix hiding popup icon when navigating the browser, r=Felipe
Blocks: 1325841
Has Regression Range: --- → yes
Has STR: --- → yes
Flags: needinfo?(gijskruitbosch+bugs)
Keywords: regression
Track 54+/55+ as regression.
This is clearly an attempt at a minimal testcase of some sort given something that happens in some other site. I am a bit confused because if I open only the resulting frame, on its own, ie if I click this link: https://fiddle.jshell.net/peo3x4aq/show/ then it works just fine. Specifically, it seems the popup blocker doesn't cope well with multi-frame documents right now. It looks like if you create a popup, and then pagehide fires for a frame, we remove the popups for the entire toplevel browser. We should only care about pagehide events for the toplevel document, I think. Felipe, does that sound right?
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(felipc)
Summary: Pop-up blocker notification and icon disappear quickly after blocking a pop-up → Pop-up blocker notification and icon can disappear quickly if popups are created from a subframe / in multi-frame documents
(In reply to :Gijs from comment #2) > This is clearly an attempt at a minimal testcase of some sort given > something that happens in some other site. I am a bit confused because if I > open only the resulting frame, on its own, ie if I click this link: > > https://fiddle.jshell.net/peo3x4aq/show/ > > then it works just fine. > > Specifically, it seems the popup blocker doesn't cope well with multi-frame > documents right now. It looks like if you create a popup, and then pagehide > fires for a frame, we remove the popups for the entire toplevel browser. > > We should only care about pagehide events for the toplevel document, I > think. Felipe, does that sound right? I guess that makes sense. If it's just the problem that the subframe pagehide makes the icon go away, then it looks right to me. I wonder if there's something worse broken here, i.e. not being able to track properly where each popup came from, and reopening it incorrectly if it's from a subframe (when the user chooses to open it).
Flags: needinfo?(felipc)
Realistically, this isn't going to make 54.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment on attachment 8877217 [details] Bug 1370018 - pagehide shouldn't junk all popup data indiscriminately, https://reviewboard.mozilla.org/r/148592/#review153542
Attachment #8877217 - Flags: review?(felipc) → review+
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e859dc918b2c pagehide shouldn't junk all popup data indiscriminately, r=Felipe
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Comment on attachment 8877217 [details] Bug 1370018 - pagehide shouldn't junk all popup data indiscriminately, Approval Request Comment [Feature/Bug causing the regression]: bug 1325841 [User impact if declined]: can't allow popups in some circumstances [Is this code covered by automated tests?]: yep, added tests in this patch [Has the fix been verified in Nightly?]: not yet [Needs manual test from QE? If yes, steps to reproduce]: probably, see comment #0 [List of other uplifts needed for the feature/fix]: n/a [Is the change risky?]: not really [Why is the change risky/not risky?]: it's a relatively small change, it's net code simplification, there's automated tests. [String changes made/needed]: nope
Attachment #8877217 - Flags: approval-mozilla-beta?
Comment on attachment 8877217 [details] Bug 1370018 - pagehide shouldn't junk all popup data indiscriminately, popup blocker fix, beta55+ I confirmed that I can reproduce this in 55.0b1 but not in nightly 2017-06-15.
Attachment #8877217 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
If we wanted to uplift this to ESR52, we'll need a rebased patch. Worth the effort or should we just wontfix?
Flags: needinfo?(gijskruitbosch+bugs)
We can wontfix it for ESR52.
(In reply to Gerry Chang [:gchang] from comment #14) > We can wontfix it for ESR52. +1
Flags: needinfo?(gijskruitbosch+bugs)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: