Closed Bug 1304379 Opened 9 years ago Closed 9 years ago

Add-on panel size increases each time the add-on button is clicked

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox50 verified, firefox51 verified, firefox52 verified)

VERIFIED FIXED
mozilla52
Tracking Status
firefox50 --- verified
firefox51 --- verified
firefox52 --- verified

People

(Reporter: vtamas, Assigned: kmag)

References

Details

(Keywords: regression)

Attachments

(2 files)

[Note] This is a follow-up bug for Bug 1294199 [Affected versions]: Firefox 52.0a1 (2016-09-20) Firefox 51.0a2 (2016-09-21) Firefox 50.0b1 (20160920155715) [Affected platforms]: Windows 10 64-bit Mac OS X 10.10.4 [Steps to reproduce]: 1.Launch Firefox with clean profile. 2.Install the attached add-on. 3.Click multiple times on the add-on icon from toolbar. [Expected results]: The panel size remains the same and it does not modify when the add-on button is clicked. [Actual results]: The add-on panel size increases each time it is opened and closed by clicking on the toolbar icon: http://screencast.com/t/ipND2rKxsqt [Regression range]: Last good revision: e3fa462347c8c863e310d4e0e45e470c9775bdcd First bad revision: 1430290455ed94109e973fd17c7f62865e1695c9 Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=e3fa462347c8c863e310d4e0e45e470c9775bdcd&tochange=1430290455ed94109e973fd17c7f62865e1695c9 [Additional notes]: - This issue is not reproducible on Ubuntu 16.04 32-bit. - I am attaching the add-on.
Do you see any errors in the Browser Console when this happens?
(In reply to Kris Maglione [:kmag] from comment #1) > Do you see any errors in the Browser Console when this happens? I’m only seeing NS_ERROR_NOT_IMPLEMENTED: utils.js:92 while clicking in Private Mode, but this issue is also reproducible in a normal window.
Interesting. I can't reproduce this on Firefox 52 32bit on Windows 7...
Or 64bit Firefox 52 on Windows 7.
Ah, I understand what's happening now. This only happens if I click on the toolbar button to dismiss the panel. In that case, your onClick listener calls `show()` again, and `show()` winds up appending another browser to the panel, even though one already exists.
Assignee: nobody → kmaglione+bmo
Comment on attachment 8795886 [details] Bug 1304379: Don't create an extra browser if panel.show is called multiple times. https://reviewboard.mozilla.org/r/81838/#review80954
Attachment #8795886 - Flags: review?(gkrizsanits) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d89bdc2d9f01f68fa74781e57ab582b15c2738a7 Bug 1304379: Don't create an extra browser if panel.show is called multiple times. r=gabor
Comment on attachment 8795886 [details] Bug 1304379: Don't create an extra browser if panel.show is called multiple times. Approval Request Comment [Feature/regressing bug #]: Bug 1294199 [User impact if declined]: This bug causes significant UI issues in SDK panels that are implemented in certain ways that persist until browser restart. [Describe test coverage new/current, TreeHerder]: The panel code that this affects is generally well-tested. There is still no automated test for this particular corner case. [Risks and why]: Very low. This patch simply adds a conditional which prevents an additional <browser> element from being inserted, and the reference to the existing one from being overwritten, when it's not necessary. [String/UUID change made/needed]: None.
Attachment #8795886 - Flags: approval-mozilla-beta?
Attachment #8795886 - Flags: approval-mozilla-aurora?
Comment on attachment 8795886 [details] Bug 1304379: Don't create an extra browser if panel.show is called multiple times. Simple fix, Aurora51+, Beta50+
Attachment #8795886 - Flags: approval-mozilla-beta?
Attachment #8795886 - Flags: approval-mozilla-beta+
Attachment #8795886 - Flags: approval-mozilla-aurora?
Attachment #8795886 - Flags: approval-mozilla-aurora+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
I was able to reproduce the initial issue on Firefox 52.0a1 (2016-09-21) under Windows 10 64-bit. Tested on Firefox 52.0a1 (2016-10-04), Firefox 51.0a2 (2016-10-04) and Firefox 50.0b4 (20161003155957) and I confirm that the panel does no longer modify its size each time the add-on button is clicked. I’ve also noticed that on Nightly the panel is never closed and is continuously opened when clicking the icon: http://screencast.com/t/8PS5N2QM0qJh (compared with DevEdition and Beta where the panel is closed when the button is clicked a second time: http://screencast.com/t/AAJXjKBp) Kris, what do you think? Should I reopen this bug or file a new one?
Flags: needinfo?(kmaglione+bmo)
(In reply to Vasilica Mihasca, QA [:vasilica_mihasca] from comment #15) > I’ve also noticed that on Nightly the panel is never closed and is > continuously opened when clicking the icon: > http://screencast.com/t/8PS5N2QM0qJh (compared with DevEdition and Beta > where the panel is closed when the button is clicked a second time: > http://screencast.com/t/AAJXjKBp) > > Kris, what do you think? Should I reopen this bug or file a new one? This is an issue with the add-on itself, so it doesn't need a bug.
Flags: needinfo?(kmaglione+bmo)
(In reply to Kris Maglione [:kmag] from comment #16) > This is an issue with the add-on itself, so it doesn't need a bug. Thanks Kris! Based on Comment 15 and Comment 16 I am marking this bug as Verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: