|
|
|
|
|
by michaelbuckbee
2300 days ago
|
|
The issue is typically that the browser itself doesn't cleanly split those roles. Take something like Vimium - it's an extension that lets you use keyboard shortcuts to navigate webpages. You could "scope" it's interactions to adding keyboard shortcuts and modifying the page to indicate links: no external calls, etc. But it could still add a script to the dom (and it would execute) or it could open a hidden iframe and do a bunch of wild stuff with that. |
|
Maybe right now this stuff is a free-for-all, but shouldn't these scripts + iframes be executing, in some sense, under the CORS origin of the extension? (Not quite CORS in the traditional sense—you do want e.g. Greasemonkey to be able to mess with pages on all domains, even ones that don't want it to—but you could re-use the CORS origin-tracking, and just relax the rules slightly where extension:tab interactions are concerned, while still having rules.)