Boris,
You're right, I'm trying to use the cookies extension on my content
script. Thanks for point that out.
Now I figure I'll just use message passing from my content script to
my background. But the problem is I'm not exactly sure where to start
with this. I'm using document.cookies so would I pass an object with
the cookie name, value and expiry date from my content page into my
background and then create the cookie there? Will I have to use the
google extensions cookies or can I just use standard javascript
cookies?
Thanks
On Jul 28, 2:36 pm, Boris Smus <
s...@chromium.org> wrote:
> Hi Kelvin,
>
> Are you sure that you're in a chrome extension context? Note that if you're
> trying to do this in a content script, you have a restricted set of chrome.*
> API calls that you can make:
http://code.google.com/chrome/extensions/content_scripts.html
>
> - Boris
>
>
>
>
>
>
>
> On Wed, Jul 27, 2011 at 1:27 PM, Loop <
kelvin.lau...@gmail.com> wrote:
> > I'm trying to use the google chrome cookies extension when developing
> > for a chrome extension app. I've followed the instructions found here:
> >
http://code.google.com/chrome/extensions/cookies.html
>
> > My manifest file already has the permissions and cookies.
>
> > The problem is now I can't seem to call any of the methods in the
> > cookies extension
>
> > var newCookie = {'url:': 'http://*/*', 'name': 'routeCookie', 'value':
> > route.tag[document.boxForm.routeBox.options.selectedIndex]};
> > chrome.cookies.set(newCookie);
> > Error: UnCaught TypeError: Cannot call method 'set' of undefined
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org.