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)
Tracking
()
RESOLVED
FIXED
Firefox 56
People
(Reporter: epinal99-bugzilla2, Assigned: Gijs)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
Felipe
:
review+
jcristau
:
approval-mozilla-beta+
|
Details |
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
status-firefox53:
--- → affected
status-firefox54:
--- → affected
status-firefox55:
--- → affected
tracking-firefox54:
--- → ?
tracking-firefox55:
--- → ?
Flags: needinfo?(gijskruitbosch+bugs)
Keywords: regression
| Assignee | ||
Comment 2•8 years ago
|
||
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?
status-firefox-esr52:
--- → affected
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
Comment 3•8 years ago
|
||
(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)
| Assignee | ||
Comment 4•8 years ago
|
||
Realistically, this isn't going to make 54.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
| mozreview-review | ||
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
Comment 9•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
| Assignee | ||
Comment 10•8 years ago
|
||
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 11•8 years ago
|
||
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+
Comment 12•8 years ago
|
||
| bugherder uplift | ||
Flags: in-testsuite+
Comment 13•8 years ago
|
||
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)
Comment 14•8 years ago
|
||
We can wontfix it for ESR52.
| Assignee | ||
Comment 15•8 years ago
|
||
(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.
Description
•