Blocked window.open() #3

Open
opened 2021-11-01 00:20:57 +01:00 by vlw · 0 comments
vlw commented 2021-11-01 00:20:57 +01:00 (Migrated from codeberg.org)

Pop-up blockers prevent window.open() to open windows

Most browsers ship with pop-up blockers built-in and will usually only allow a single window to open (or none at all).
Chrome will send out a permission request to the user asking for the "open multiple windows" permission.

image

The Multi-Screen Placement API looks like possible candidate to fix this issue if its permission query also applies to opening windows, and not just placing them.

navigator.permissions.query({ name: 'window-placement' });

Since this demo relies on browser windows, being able to open them is quite crucial.

## Pop-up blockers prevent `window.open()` to open windows Most browsers ship with pop-up blockers built-in and will usually only allow a single window to open (or none at all). Chrome will send out a permission request to the user asking for the "open multiple windows" permission. ![image](https://user-images.githubusercontent.com/35688133/139604468-72e62a87-3b2c-4f2a-be80-582e244cad73.png) The [Multi-Screen Placement API](https://web.dev/multi-screen-window-placement/) looks like possible candidate to fix this issue if its permission query also applies to opening windows, and not just placing them. ```js navigator.permissions.query({ name: 'window-placement' }); ``` ***Since this demo relies on browser windows, being able to open them is quite crucial.***
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/still-alive#3
No description provided.