URL: https://async-clipboard-api.glitch.me/
Browser / Version: Firefox 91.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: not able to use navigator.clipboard read or write or permission
Steps to Reproduce:
My browser version is 91.3.0esr (64-bit),
I am working on the feature related to copy and paste with button.
In Developer console, when the try to use clipboard api read write,
In console:
but coming as undefined, except writeText method.
So I thought it is related to permission, and tried the following:
In Developer console, when the run the below,
navigator.permissions.query({name: "clipboard-write"}).then(result => { if (result.state == "granted" || result.state == "prompt") { /* write to the clipboard now */ } });
console error:
Uncaught (in promise) TypeError: 'clipboard-write' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
View the screenshot
Browser Configuration
From webcompat.com with ❤️
URL: https://async-clipboard-api.glitch.me/
Browser / Version: Firefox 91.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: not able to use navigator.clipboard read or write or permission
Steps to Reproduce:
My browser version is 91.3.0esr (64-bit),
I am working on the feature related to copy and paste with button.
In Developer console, when the try to use clipboard api read write,
In console:
but coming as undefined, except writeText method.
So I thought it is related to permission, and tried the following:
In Developer console, when the run the below,
console error:
Uncaught (in promise) TypeError: 'clipboard-write' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
View the screenshot
Browser Configuration
From webcompat.com with ❤️