Open Bug 1466338 Opened 3 years ago Updated 2 years ago

`window.outerHeight` reports wrong value if executed in newly opened tab in minimized window


(Core :: DOM: Core & HTML, defect, P3)

61 Branch





(Reporter: juraj.masiar, Unassigned)


User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180530184300

Steps to reproduce:

1) create web-extension with a custom page that prints to console `window.outerHeight` value upon opening

2) open new Firefox window and minimize it

3) open debugging console for the add-on and execute this code (replace the "NAME_OF_YOUR_CUSTOM_PAGE" with your add-on custom html page):
` => windows.filter(w => w.type === => w.state ===, 1).forEach(w => browser.tabs.create({url: '/NAME_OF_YOUR_CUSTOM_PAGE.html', windowId:})))`

Actual results:

Very low value is printed into console, in my case only 28.

Expected results:

Correct value should be printed depending on the screen size.

Note that once the window is not minimized anymore, the correct value is reported.
Component: WebExtensions: Frontend → DOM
Product: Toolkit → Core
Priority: -- → P3
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.