Closed
Bug 1403386
Opened 7 years ago
Closed 7 years ago
Elm debugger pop-up window is blank
Categories
(Firefox :: Tabbed Browser, defect, P1)
Tracking
()
VERIFIED
FIXED
Firefox 58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | + | verified |
firefox58 | --- | verified |
People
(Reporter: miketaylr, Assigned: florian)
References
Details
(Keywords: regression, Whiteboard: [reserve-photon-performance])
Attachments
(5 files, 1 obsolete file)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
dao
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Originally reported @ https://webcompat.com/issues/10152
Steps to reproduce:
1) install Elm lang (https://guide.elm-lang.org/install.html)
2) Clone https://github.com/evancz/elm-architecture-tutorial.git
3) Run elm reactor `elm reactor`, it'll start a local server
4) Open http://localhost:8000/elm-architecture-tutorial/examples/01-button.elm 5) Click on "Explore History" in bottom right.
Expected:
There's a little editor in the pop-up window
Actual:
The pop-up is blank.
mozregression points here:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=7e5b28819e5b382bea8cbcccf0c6402fe0e90192&tochange=0533dbf2956818762fbbe7dbcfad738fe8383d89
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
status-firefox55:
--- → unaffected
status-firefox56:
--- → unaffected
status-firefox57:
--- → affected
status-firefox58:
--- → affected
tracking-firefox57:
--- → ?
Flags: needinfo?(florian)
Assignee | ||
Comment 2•7 years ago
|
||
Assignee: nobody → florian
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•7 years ago
|
||
This ignores about:blank paints only when the body is empty. My first idea was to check for a non-empty rect on the MozAfterPaint event, but that didn't work as the painted rect isn't empty for the normal about:blank.
Attachment #8912689 -
Flags: review?(mconley)
Assignee | ||
Comment 4•7 years ago
|
||
With this patch applied, there's an edge case that remains where we would not paint about:blank: if a page opens an empty popup, the opacity will be 0 until some JS on the opener actually changes something to the document.
This would only be noticeable if the about:blank color is significantly different from the tabbrowser background. That means in private browsing windows, or if the user customized the default page background color in the preferences.
I can't think of a reason why this behavior difference would matter, as the popup window would be empty anyway, the only difference is the color it will be filled with... until some content is actually added to it.
Assignee | ||
Comment 5•7 years ago
|
||
Mike, is there any chance you could test the patch I attached here? Would you like me to push it to try to generate builds or can you easily apply it to a local build?
Flags: needinfo?(florian) → needinfo?(miket)
Comment 6•7 years ago
|
||
(In reply to Florian Quèze [:florian] [:flo] from comment #4)
> With this patch applied, there's an edge case that remains where we would
> not paint about:blank: if a page opens an empty popup, the opacity will be 0
> until some JS on the opener actually changes something to the document.
It sounds like you really want to check content.opener rather than content.document.body.hasChildNodes().
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #6)
> It sounds like you really want to check content.opener rather than
> content.document.body.hasChildNodes().
Good idea, thanks!
Attachment #8912787 -
Flags: review?(mconley)
Assignee | ||
Updated•7 years ago
|
Attachment #8912689 -
Attachment is obsolete: true
Attachment #8912689 -
Flags: review?(mconley)
Comment 9•7 years ago
|
||
Comment on attachment 8912787 [details] [diff] [review]
Patch v2
I also tested this locally
Attachment #8912787 -
Flags: review?(mconley) → review+
Comment 10•7 years ago
|
||
Pushed by florian@queze.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f5d781a4d148
ignore about:blank paints only when window.opener isn't set, r=dao.
Comment 11•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment 12•7 years ago
|
||
Please request Beta approval on this when you get a chance.
status-firefox-esr52:
--- → unaffected
Flags: needinfo?(florian)
Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8912787 [details] [diff] [review]
Patch v2
Approval Request Comment
[Feature/Bug causing the regression]: bug 1379587
[User impact if declined]: Some popups will be blank (when a websites opens an about:blank popup and then controls its content with JavaScript in the opener window)
[Is this code covered by automated tests?]: No. I couldn't find a simple way to write an automated test that isn't just reproducing implementation details of using the blank attribute. So such a test wouldn't really prevent regressions.
[Has the fix been verified in Nightly?]: No. But the patch has been verified by the reporter in comment 7.
[Needs manual test from QE? If yes, steps to reproduce]: While I'm confident in the fix for this specific edge case, I think more QA on bug 1379587 wouldn't hurt.
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: just adding a simple check that disables an optimization in a case where it had an undesirable behavior.
[String changes made/needed]: none
Flags: needinfo?(florian)
Attachment #8912787 -
Flags: approval-mozilla-beta?
Updated•7 years ago
|
Flags: qe-verify+
Priority: -- → P1
QA Contact: adrian.florinescu
Whiteboard: [reserve-photon-performance]
Comment 15•7 years ago
|
||
Comment on attachment 8912787 [details] [diff] [review]
Patch v2
taking it to 57b4.
Attachment #8912787 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 16•7 years ago
|
||
bugherder uplift |
Comment 17•7 years ago
|
||
I managed to reproduce this issue on Firefox 58.0a1 (2017-09-26), under Windows 10x64.
The issue is not longer reproducible on Firefox 57.0b11, or on Firefox 58.0a1 (2017-10-26).
Tests were executed under Windows 10x64 and under Mac OS X 10.10.5.
Note that I was not able to test this on Ubuntu OS since I encountered some issues trying to install the elm-reactor.
Please let me know if it's necessary confirming this issue on Ubuntu as well.
I will remove the qe-verify flag only after the confirmation related to the Ubuntu OS.
Comment 18•7 years ago
|
||
Hello,
I originally reported this bug. I am able to confirm that this is fixed in Ubuntu.
Thank you all so much for fixing this bug in such a timely manner after I reported in, I really appreciate it and am loving my experience with Firefox Nightly. Looking forward to Firefox 57 being officially released!
Greeting,
Noah Loomans.
You need to log in
before you can comment on or make changes to this bug.
Description
•