Closed Bug 1294440 Opened 8 years ago Closed 8 years ago

Popup size ignores min-width style on document element

Categories

(WebExtensions :: Untriaged, defect)

defect
Not set
normal

Tracking

(firefox51 affected)

RESOLVED WONTFIX
Tracking Status
firefox51 --- affected

People

(Reporter: ecfbugzilla, Unassigned)

References

Details

Attachments

(1 file)

Attached file Minimal extension for testing (deleted) —
Steps to reproduce: 1. Go to about:config and make sure xpinstall.signatures.required is set to false (only works on Nightly and Aurora). 2. Install the attached extension. 3. Click the toolbar icon of this extension (generic extension icon) to open its popup. Expected results: Pop-up has correct width (at least 600 pixels because of <html style="min-width: 600px">). Actual results: Pop-up is sized based on content, without considering styles of the document element. As a result, its width is too small and we get horizontal scrolling. Tested in 51.0a1 (2016-08-11) nightly on Mac OS X 10.11. BasePopup._resizeBrowser() function calls docShell.contentViewer.getContentSize() which returns this bogus result. The issue seems to be limited to the document element, moving the min-width style to the <body> tag makes things work correctly.
The <body> element is what's used to determine the dimensions of the browser. It's the root scroll frame in strict mode documents, and in quirks mode everything is insanity.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
I see. You might want to document this incompatibility to Chrome.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: