Open Bug 1416810 Opened 7 years ago Updated 2 years ago

New browser window inherits the dimensions (200x150) of the last closed popup window.

Categories

(Core :: Window Management, defect, P5)

57 Branch
defect

Tracking

()

People

(Reporter: support, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Steps to reproduce:

Please create a popup window:
myWindow = browser.windows.create({
    url: popupURL,
    type: "popup",
    width: 200,
    height: 150
});




Actual results:

When a new popup window opened, close all other Mozilla's windows and then close the popup with size(200x150) (as a last one window in the current session).
After, open new Mozilla's browser. This browser will inherit the dimensions (200x150) of the last closed popup window.


Expected results:

The new browser session should not inherit the dimensions of a window created as a popup. The result should be like it is when a popup(200x100) is created with window.open function.
Priority: -- → P5
Whiteboard: [design-decision-needed]
Not sure what component this goes into, but this isn't a webext bug, rather a problem with the last window dimensions being persisted.
Component: WebExtensions: General → Untriaged
Product: Toolkit → Firefox
Whiteboard: [design-decision-needed]
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180315233128

I have managed to reproduce this issue on latest FF release (59), latest Nightly build (61) using win 10 x64, mac 10.11.06,
arch linux. 
Instead of using the pop-up, I tested the issue with a private window. I opened a private window, resized it, closed all the other windows, then closed the private window. Reopened the browser and this kept the size from the private window.
I have tested the issue on earlier Nightly builds, and it was reproducible on all of them.
Status: UNCONFIRMED → NEW
Component: Untriaged → Window Management
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All

Pretty annoying with extensions with own popups. If last window closed is a popup, it should ignore saving dimensions and position.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.