3 ms·
Funny story, the original version of the web store had a button you could press to see the source of an extension. > Ability to deploy bugs is an antipattern
by aboodman 4y ago
Funny story, the original version of the web store had a button you could press to see the source of an extension.
> Ability to deploy bugs is an antipattern
Disagree then. One doesn't come without the other.
> even background scripts which don't have access to the DOM can communicate with the content script through sendMessage
If by "content script" you mean the web page script, then this is true, but in that case the web page is collaborating with the extension. Whatever the web page is sending to the extension it could just as easily send anywhere on the internet.
>
- pcthrowaway 4y ago> If by "content script" you mean the web page script, then this is true, but in that case the web page is collaborating with the extension. Whatever the web page is sending to the extension it could just as easily send anywhere on the internet. Content script would be part of the extension that runs in the context of the webpage, and has access to the DOM Yes, I agree this could be sent anywhere, but when sent to the background script with the sendMessage API, you don't get visibility into that with devtools out of the box