It should be working assuming your "function StartTorch() { .. }" exists in the background page. Try doing a simple reduction test extension, and submit a bug report in http://crbug.com/new a reduction could be:
background.html: <html> <script> function foo() { console.log('bar'); } </script> </html> popup.html: <html> <script> var bkg = chrome.extension.getBackgroundPage(); bkg.foo(); </script> </html> If the above simple extension doesn't work, there is a bug, so submitting a bug report would be great (search if it doesn't exist first) -Mohamed Mansour On Sun, Jan 10, 2010 at 1:42 PM, tazz_ben <b...@wbpsystems.com> wrote: > Yeah, that's what I meant by including it in the JSON. > > On Jan 10, 10:34 am, Amina <aminad...@gmail.com> wrote: > > In the manifest.json you must include: > > "background_page":"backgroud.html" > > > > On Jan 10, 8:04 pm, tazz_ben <b...@wbpsystems.com> wrote: > > > > > > > > > So, I'm just getting down to testing my extensions (I'm a mac user and > > > was waiting for the developer update to be able to test). I've got a > > > popup that does the following: > > > > > var background = chrome.extension.getBackgroundPage(); > > > var start = background.StartTorch(); > > > > > Chrome doesn't like this, claiming that it is null. StartTorch very > > > much exists in the background view. However, looking at the resource > > > list, I get the impression that the background page isn't running (the > > > developer tools list resources that are referenced in popup, but none > > > that are referenced in background). Is there something beside > > > referencing the background page in the JSON you have to do to get it > > > to start? > > -- > 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...@googlegroups.com. > To unsubscribe from this group, send email to > chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > >--
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...@googlegroups.com.
To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.