webextension popup doesn't resize back once it hits the maximum size
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox71 | --- | wontfix |
firefox72 | --- | verified |
firefox73 | --- | verified |
People
(Reporter: gitladen7, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression, testcase)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
Load a webextension that changes the height of a element inside a webextension popup (I have attached one to this report).
This bug only occurs after updating to Firefox 71:
On Firefox 70 (popup resizes correctly): https://s.put.re/mmejCCTN.mp4
On Firefox 71 (popup fails to downsize): https://s.put.re/YQSVumCq.mp4
Actual results:
The popup height increases but it doesn't decrease.
Expected results:
The popup height should have increase and decrease.
Comment 1•4 years ago
|
||
regression-window |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
20191205094649
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
As the width and height arguments to ResizeReflow are treated as constraints,
not the final size, in that case.
Assignee | ||
Comment 4•4 years ago
|
||
The patch above fixes it... Kris, do you know if we have automated tests for web-extension popup sizing? I couldn't find any from a quick skim, and I didn't find any in bug 1393116 either... :/
Assignee | ||
Comment 5•4 years ago
|
||
This is only a problem when the popup is sized past the max size that we set, that's why it's taken a bit to find.
Assignee | ||
Comment 6•4 years ago
|
||
Comment on attachment 9114010 [details]
Bug 1601624 - Don't suppress shrink-to-fit resize reflows on unchanged size. r=tnikkel,botond
Beta/Release Uplift Approval Request
- User impact if declined: Some popups from extensions may not be sized correctly.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Simple condition move that incorrectly suppresses some reflows that are necessary to find the final size.
- String changes made/needed: none
Assignee | ||
Updated•4 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7a4f4ed6b1f Don't suppress shrink-to-fit resize reflows on unchanged size. r=tnikkel
Assignee | ||
Comment 8•4 years ago
|
||
Oh, and thanks for the test-case gitladen! Made the issue very clear, and it was very easy to fix (once I got to it of course).
Comment 9•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 10•4 years ago
•
|
||
Reproduced the initial issue using an old Nightly build: 20191205215330.
Verified - fixed on latest Nightly 73.0a1 (2019-12-06) (Build id: 20191206044357) on Mac OS 10.14, Windows 10 and Ubuntu 18.04
Updated•4 years ago
|
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Comment on attachment 9114010 [details]
Bug 1601624 - Don't suppress shrink-to-fit resize reflows on unchanged size. r=tnikkel,botond
recent regression, small fix, approved for 72.0b4
Comment 12•4 years ago
|
||
bugherder uplift |
Comment 13•4 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)
The patch above fixes it... Kris, do you know if we have automated tests for web-extension popup sizing? I couldn't find any from a quick skim, and I didn't find any in bug 1393116 either... :/
Fairly extensive tests, yes:
https://searchfox.org/mozilla-central/source/browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js
https://searchfox.org/mozilla-central/source/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js
Assignee | ||
Comment 14•4 years ago
|
||
Huh, I wonder how I missed those... I'll land a test for this based on those tests, thanks Kris.
Comment 15•4 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #14)
Huh, I wonder how I missed those... I'll land a test for this based on those tests, thanks Kris.
Not sure what info is being requested of me?
Assignee | ||
Comment 16•4 years ago
|
||
Err, was intended to be a self-ni? to not forget to write the tests, sorry.
Assignee | ||
Comment 17•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 18•4 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d9fe6eaf1c0d Write an automated test for this. r=tnikkel
Comment 19•4 years ago
|
||
Verified - fixed on latest Beta 72.0b4 (Build id: 20191206183317) on Mac OS 10.14, Windows 10 and Ubuntu 18.04
Comment 20•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•