On Mon, Aug 27, 2012 at 10:07 AM, Joe Marini <
joem...@google.com> wrote:
> It's a security issue. Since content scripts themselves execute in their own
> context within the page, other scripts can't mess with their data. However,
> since any change you make to the DOM is visible broadly, we want to make
> sure that there are no potential vectors that a malicious script could
> exploit.
Could you explain this a bit more?
As I understand the original question, the content-script adds an
iframe with a chrome-extension:// url to the web page. The web page
has no access to such an iframe, it's not in the same domain.
Where does the security issue arise?
Since the origin loading the scripts/styles/images into the iframe is
chrome-extension://<id>, the iframe is not part of the web page so the
web_accessible_resources doesn't even make sense to me in this
scenario.
jjb