Live data from Hacker News

Cannot read clipboard from service worker in a MV3 chrome extension (2020)

bugs.chromium.org

11–20 of 56 posts

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#11

I think Chrome's reasoning for this is completely fair: > navigator.clipboard is only intended to be used in a focused document, which is not possible for service workers. Therefore, I don't anticipate any intended support for navigator.clipboard.read on service workers I don't think a browser extension, which I personally consider it sit in between "native app" and "website" in terms of privilege hierarchy, should b…

My use case: A background script, sorry, Service Worker registers a Context Menu Entry. When the user clicks on it it fetches some stuff an copies a link to clipboard.

Using MV3 as it is this is not possible.

As someone in the thread said, it is not really feasible to try to find all ways that user interaction can trigger code that requires clipboard access. If that is the route Google want to go down it will take years of people reporting new ways the system does not work until it is usable imo.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#12

> Thanks for the issue.... > Thanks..... Aside: Do people know that trailing "..." tends to communicate annoyance or sarcasm? I think the people writing it think it means something else, like some sort of intermission before the next thing they write, but I wouldn't include it in professional comms at all.

No, I don’t think people think that… because that isn’t what it means. People aren’t annoyed or sarcastic towards you… they are just pausing for a second.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#13

> Thanks for the issue.... > Thanks..... Aside: Do people know that trailing "..." tends to communicate annoyance or sarcasm? I think the people writing it think it means something else, like some sort of intermission before the next thing they write, but I wouldn't include it in professional comms at all.

I think it has a different tone to different people? I had a friend who used to put it after most messages and I thought they were upset with me until I asked. It was just how they wrote. I've also noticed more people using it to indicate a trailing off of voice, not necessarily with any annoyance emotion.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#14
I know there are a lot of valid complaints about Manifest v3, but I don't understand this one. You're telling me that browser extensions should be able to read and write to my clipboard silently at all times, with no user activation or notification? Honestly, that's kind of horrifying, and I'm shocked to hear it existed on v2 extensions. It sounds like a great way to build a keylogger for user passwords.

What are some valid usecases for this permission? I guess "syncing clipboards between two operating systems" is one of them? But why build that as a browser extension? It seems like the wrong tool for the job.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#16

I know there are a lot of valid complaints about Manifest v3, but I don't understand this one. You're telling me that browser extensions should be able to read and write to my clipboard silently at all times, with no user activation or notification? Honestly, that's kind of horrifying, and I'm shocked to hear it existed on v2 extensions. It sounds like a great way to build a keylogger for user passwords. What are som…

>with no user activation or notification

What? By choosing to install the extension you are activating it.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#17

I know there are a lot of valid complaints about Manifest v3, but I don't understand this one. You're telling me that browser extensions should be able to read and write to my clipboard silently at all times, with no user activation or notification? Honestly, that's kind of horrifying, and I'm shocked to hear it existed on v2 extensions. It sounds like a great way to build a keylogger for user passwords. What are som…

> What are some valid usecases for this permission?

Erm. Have you read the link? There are extension authors in the comments that talk about their specific use cases

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#18

I know there are a lot of valid complaints about Manifest v3, but I don't understand this one. You're telling me that browser extensions should be able to read and write to my clipboard silently at all times, with no user activation or notification? Honestly, that's kind of horrifying, and I'm shocked to hear it existed on v2 extensions. It sounds like a great way to build a keylogger for user passwords. What are som…

More than 10 years ago I built a Firefox extension that was using the clipboard. It was for Multilanguage users that accidentally type in the wrong language, once they notice they type in the wrong language, they clicked a button/hot-key, and the text would switch to an alternate language in their OS.

I was eventually in the process of switching it to a Windows app, so it could also work outside the browser, but never actually finished it.

Now that I think of it, I'm pretty sure something like a password manager would also need the clipboard.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#19

I know there are a lot of valid complaints about Manifest v3, but I don't understand this one. You're telling me that browser extensions should be able to read and write to my clipboard silently at all times, with no user activation or notification? Honestly, that's kind of horrifying, and I'm shocked to hear it existed on v2 extensions. It sounds like a great way to build a keylogger for user passwords. What are som…

No post body was provided.

Re: Cannot read clipboard from service worker in a MV3 chrome extension (2020)

#20

> Thanks for the issue.... > Thanks..... Aside: Do people know that trailing "..." tends to communicate annoyance or sarcasm? I think the people writing it think it means something else, like some sort of intermission before the next thing they write, but I wouldn't include it in professional comms at all.

It's an age and geographic location difference. Young people see it as sarcasm, old people don't. Similarly in other countries its also not seen as sarcasm.
Post reply on HN