2009/5/14 Lex1 <[email protected]>: > Hmm... Apparently, I misunderstood: ≪Each content script executes in > its own distinct context, separate from the JavaScript that is part of > web pages, and from every other content script.≫
Sorry about the confusion, we need to clarify the docs... Each content script has its own global scope, any they run in the security context of the web page they are injected into. The situation is similar to when you have an iframe on the same domain as its parent page. The iframe and parent page have separate global scopes, but since they are in the same domain, they can talk to each other freely. Content scripts are the same. They have their own global scope, but they can access the page's global scope if they want (via the contentWindow object). HTH, - a --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
