Open Bug 1511363 Opened 7 years ago Updated 3 years ago

chrome.windows.create() always opens all popups centered

Categories

(WebExtensions :: Frontend, defect, P3)

x86_64
macOS
defect

Tracking

(Not tracked)

People

(Reporter: glazou, Unassigned)

Details

Tested with 65.0a1 (2018-11-30) (64 bits) and OS X 10.14.1. |chrome.windows.create(aData)| never honours |aData.top| and |aData.left| and always opens the requested window centered on the screen. Furthermore my laptop has two screens, the laptop screen and an external screen. The popups are always centered on the laptop screen, even if I reorder the primary and the secondary screen in OS X Settings. This bug is a big usability issue for webextensions.
Apparently, in ext-windows.js, the |win.updateGeometry(createData);| in line 232 is executed too fast. The |Services.ww.openWindow| call just above triggers a "toplevel-window-ready" event we could use.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.