Microsoft/vscode

Blocked popups are not handled in Chrome on Github Codespace

Open

#165,339 opened on 2022年11月3日

GitHub で見る
 (3 comments) (3 reactions) (1 assignee)TypeScript (10,221 forks)batch import
bughelp wantedopenerweb

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (平均マージ 11h 43m) (30d で 1,000 merged PRs)

説明

When using GitHub Codespaces, if an extension tries to spawn a new browser window it's blocked by Chrome:

Screenshot 2022-11-03 at 10 58 41

This issue was discussed in the context of Safari in #118731 and it seems like a fix was applied (that detects the blocking, then prompts the user so that the window can be re-triggered from a user-click which would not trigger the blocking), but from the discussion it's not clear if this was only applied to Safari (@isidorn may be able to confirm - I can't see anything Safari specific in the linked commits I reviewed). I certainly don't see that notification in Chrome.

The API called that triggered this was vscode.env.openExternal. It was tested today on the current live version of GitHub workspaces (and latest stable version of Chrome).

If I allow github.dev to spawn popups in Chrome settings, ofcourse everything works fine - but that only solves the problem for me and not other users.

コントリビューターガイド