Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add new chromium permission "WindowManagement" #27198

Open
RajeshKumarMahto opened this issue Sep 20, 2023 · 9 comments · May be fixed by #31268
Open

[feature] add new chromium permission "WindowManagement" #27198

RajeshKumarMahto opened this issue Sep 20, 2023 · 9 comments · May be fixed by #31268

Comments

@RajeshKumarMahto
Copy link

Hi Team,

In my organization, we use multimonitors for our application by giving "window management" permission manually. I want to automate the things by giving same permissions via playwright but as of now playwright does not have that option listed in "GrantPermission" method.
Its kind of blocker for us. Pls incorporate that permission.

@aslushnikov
Copy link
Collaborator

@RajeshKumarMahto I've never heard of "window management" permission - is this some kind of chrome or web permission?

@RajeshKumarMahto
Copy link
Author

It's chrome permission just like other permissions.

@RajeshKumarMahto
Copy link
Author

window management

@aslushnikov aslushnikov changed the title grantPermissions: WindowManagement[Feature] [feature] add new chromium permission "WindowManagement" Sep 25, 2023
@RajeshKumarMahto
Copy link
Author

@aslushnikov Hi, any update on above requested feature.

@alvingeoatgit
Copy link

I'm also having the same issue with "window management". It is a showstopper for me as well.

@tmallafre
Copy link

Try using this apparently unrelated permissions. It worked for me:

        const context = this.page.context(this.browserContextOptions);
        await context.grantPermissions(['clipboard-read', 'clipboard-write', 'geolocation']);

@RajeshKumarMahto
Copy link
Author

Try using this apparently unrelated permissions. It worked for me:

        const context = this.page.context(this.browserContextOptions);
        await context.grantPermissions(['clipboard-read', 'clipboard-write', 'geolocation']);

These permissions worked. I am more concerned about windows management permission.

@RajeshKumarMahto
Copy link
Author

Hi @aslushnikov,
any update on the requested feature. Or any workaround you can suggest?

@cowboyd
Copy link

cowboyd commented Jun 12, 2024

We need this permission in order to test our application as well. Why not have a safety valve to allow granting any permission. That way, the mechanism does not become stale as browser vendors add new capabilities that require new permissions?

@cowboyd cowboyd linked a pull request Jun 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants