2 ms·
Imagine an extension modifying a page and adding an image. How would it allow the image to load if that wasn’t possible?
by tinus_hn 8y ago
Imagine an extension modifying a page and adding an image. How would it allow the image to load if that wasn’t possible?
- deleted 8y ago[deleted]
- dividuum 8y agoI would have hoped for some shared secret approach where the extension can generate one-time use urls for their bundled resources on demand and use those instead of easily predictable urls. It seems that extensions like ad blockers that are explicitly targeted by such detection methods have ways for work around that (see https://github.com/gorhill/uBlock/blob/master/src/web_accessible_resources/README.txt https://github.com/gorhill/uBlock/blob/master/src/web_access...). I honestly would have expected for that to be the enforced default behavior.
- dawnerd 8y agoI was thinking if an image is injected, it'd be injected by a script loaded from the plugin thus trusted.
- tinus_hn 8y agoIt’s a logical thought but that isn’t how it works. A script doesn’t really inject an image, it injects an image tag which contains a reference to the image. As the image gets loaded there is no check who created the tag.