Open Bug 1811071 Opened 1 year ago Updated 1 year ago

action.openPopup / browserAction.openPopup should resolve promise after showing popup

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

(Blocks 1 open bug)

Details

Currently, browserAction.openPopup() resolves as soon as the popup opening process has commenced.
In contrast, Chrome waits for the content to have been loaded & popup to have been displayed before resolving the promise: https://bugs.chromium.org/p/chromium/issues/detail?id=1245093#c13

If we update the method to delay the promise resolution until the completion of the popup load, then it would become easier for extensions (and unit tests...) to interact with the opened popup. A cause of intermittent test failures is that a test may already be closing the popup or window while it was still in the process of being displayed.

See Also: → 1811078
Severity: -- → N/A
Priority: -- → P3
See Also: → 1817809
See Also: → 1817803
You need to log in before you can comment on or make changes to this bug.