+kathyw

On Wed, Sep 9, 2009 at 1:21 PM, Michael
Weber<[email protected]> wrote:
>
> Are these changes released and working?
>
> I am getting an exception no matter which of these three variants I
> try in my content script:

None of the extension APIs are supported from content scripts. The
only thing content scripts can do is access the DOM of the page and
communicate to their parent extension (toolstrips, background pages,
etc).

This is a confusion a few people have had, which makes me think this
part of our introductory documentation is not clear.

In this case, what you need to do is use content script messaging
(http://chromeextensionsdocs.appspot.com/content_scripts.html#messaging)
to communicate to an extension page (probably a background page
(http://chromeextensionsdocs.appspot.com/background_pages.html)),
which can call the APIs.

- a

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to