Closed Bug 879745 Opened 11 years ago Closed 11 years ago

Make Panorama tests clean up after themselves

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ttaubert, Assigned: ttaubert)

Details

Attachments

(1 file)

As Panorama is slated for removal in the not too distant future (and not only because of that) it would be great if the Panorama tests would clean up after themselves and dispose the Panorama iframe. While working on reducing uninterruptible reflows affecting the tabopen animation, I came across a reflow that is caused by a .getBoundingClientRect() call in the Panorama iframe: > "iQClass_height@chrome://browser/content/tabview.js|" + > "GroupItem_getContentBounds@chrome://browser/content/tabview.js|" + > "GroupItem_shouldStack@chrome://browser/content/tabview.js|" + > "GroupItem_arrange@chrome://browser/content/tabview.js|" + > "GroupItem_add@chrome://browser/content/tabview.js|" + > "GroupItems_newTab@chrome://browser/content/tabview.js|" + > "TabItem__reconnect@chrome://browser/content/tabview.js|" + > "TabItem@chrome://browser/content/tabview.js|" + > "TabItems_link@chrome://browser/content/tabview.js|" + > "@chrome://browser/content/tabview.js|" + > "addTab@chrome://browser/content/tabbrowser.xml|" Panorama is registering a new tab when it's opened. A call that flushes layout in the iframe will also flush layout in the parent document (i.e. the browser window) if it's dirty. One solution would be to just add this stack trace to the list of expected reflows but I think the better way would be to unload the Panorama iframe so that it doesn't listen for TabOpen events anymore.
Comment on attachment 758539 [details] [diff] [review] make Panorama tests clean up after themselves I'm not too fond of resetting everything between tests, as unexpectedly interacting tests can expose interesting bugs. But since panorama is slated for removal, I don't really care.
Attachment #758539 - Flags: review?(dao) → review+
Let's not do this for now and keep Panorama test coverage.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: