Thanks for your tips PhistucK. I am using dev version (2.0.177.1). You
are right the object name is chromium, and it works for the extension
domain (chrome-extension://[id]/*). Also in web main (http://*) I can
get "chromium.extension.id_", but not "chromium.bookmarks". Also
although "chromium.extension.connect" is available, it always reports
error ("no such extension").

Does that mean I need to go even beyond the dev version and build from
the latest code base in order to try out these features?

-Jack

On May 7, 1:53 am, PhistucK <[email protected]> wrote:
> In what version?Beta, Dev or Chromium?
> Beta and Dev uses the chromium object, revision
> 15310<http://src.chromium.org/viewvc/chrome?view=rev&revision=15310>
> changed
> the name of the object to chrome.
> (So, chromium.tabs got changed to chrome.tabs)
>
> Maybe it helps.
>
> ☆PhistucK
>
> On Thu, May 7, 2009 at 10:47, jack <[email protected]> wrote:
>
> > I just tried to use bookmark to save info:
>
> >http://code.google.com/p/chromium/issues/detail?id=11431
>
> > It seems that the bookmark system only works in the extension itself.
> > i.e., "chromium.bookmarks" is only defined in the extension domain
> > (chrome-extension://[id]/name.html), but no in the web domain (e.g.,
> >http://domain.com). That means in order to save user information from
> > the web domain (e.g.,http://domain.com), the content script needs to
> > communicate w/ the extension, as described in this page:
>
> >http://dev.chromium.org/developers/design-documents/extensions/proces...
>
> >http://dev.chromium.org/developers/design-documents/extensions/conten...
>
> > But I just tried, and
>
> > 1) "extension" is undefined in the content script, not mentioning
> > "extension.addEventListener"
> > 2) "chromium.extension.connect" always fails.
>
> > Any ideas or comments?
>
> > P.S. a side question: is "hidden_pages" or "chrome_scripts" still
> > alive in manifest.json?
>
> > -Jack
>
>
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to