Hi
I'm writing a devtools extension ;
http://code.google.com/chrome/extensions/dev/devtools.panels.html
states that an extension panel has access to chrome.extension API.
I have a panel.js file , which is loaded from panel.html, panel.html
being loaded from chrome.devtools.panels.create("Font Picker",
"icon.png",
"panel.html"
);
However, when I do the following in panel.js : var BG =
chrome.extension.getBackgroundPage();, the extension simply does hang,
no error is shown in the console, even following alert() statements
are not shown. It seams the simple fact of trying to access
chrome.extension.getBackgroundPage(); hangs the extension.
Are we supposed to be able to access
chrome.extension.getBackgroundPage(); within a js loaded from a
devtools extension panel ? What is the preferred way for a devtools
extension to access the background page ?
Thanks
laurent
--
http://laurentperez.fr
J2EE tips and best practices