Safari Web Extension browser_action popup silently fails to open from the overflow menu

Originator:bwalters
Number:rdar://FB9495287 Date Originated:12 August 2021
Status:Open Resolved:
Product:macOS Safari Extensions Product Version:14.1.2
Classification: Reproducible:Yes
 
## Description
If a Safari Web Extension is clicked from the overflow menu (the menu indicated with >> at the end of the toolbar), its browser_action popup will not open and the extension will not be notified.

This affects every extension with a popup that I have tried, including the Apple-provided Sea Creator sample extension, DuckDuckGo Privacy Essentials, Bitwarden, and my own extensions.

Clicking the extension from this menu provides no extension functionality to the user. Furthermore there seems to be no way to detect this situation from the extension code.

## Step-by-Step Instructions
1. Download the Sea Creator sample code from https://developer.apple.com/documentation/safariservices/safari_web_extensions/developing_a_safari_web_extension
2. Follow the steps on that page to build and enable the Sea Creator Web Extension in Safari.
3. Horizontally resize the Safari window until it is narrow enough for the Sea Creator icon to be moved to the overflow menu (indicated with a >> icon).
4. Open the overflow menu and select the Sea Creator option.
5. Observe that no popup is displayed.

## Expected Results
The popup should be displayed.

## Actual Results
The popup is not displayed. No feedback is provided to the user. No recourse is provided to the extension developer.

## Version Info
I am using Safari 14.1.2, although this was also reproduced on the latest Safari Technology Preview Release 129 on macOS Big Sur 11.5.2.

## File Uploads
- safari webextension popup bug 720p.mov: https://youtu.be/tQoOYWe0jfE

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!