[feature] add new chromium permission "WindowManagement"
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.
@RajeshKumarMahto I've never heard of "window management" permission - is this some kind of chrome or web permission?
It's chrome permission just like other permissions.
@aslushnikov Hi, any update on above requested feature.
I'm also having the same issue with "window management". It is a showstopper for me as well.
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']);
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.
Hi @aslushnikov, any update on the requested feature. Or any workaround you can suggest?
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?
@yury-s made this change to cover java https://github.com/microsoft/playwright-java/pull/1629, can you please review?