The permissions error I get for executeScript is: Error during tabs.executeScript: Cannot access contents of url "http:// www.google.com/". Extension manifest must request permission to access this host.
So I guess I need to put "http://*/*" in my permissions list? On Jan 9, 1:16 pm, Brett Slatkin <[email protected]> wrote: > I'm having this same issue. I can't manage to cause a window to focus. > Using executeScript with that causes a security error, even though my > manifest says : > > "matches": ["http://*/*", "https://*/*", "file:///*", "ftp://*/*"], > > Now I'm sending a message to a specific tab with > chrome.tabs.sendRequest and this results in an untraceable error, > covered by this issue: > > http://code.google.com/p/chromium/issues/detail?id=21735 > > TypeError > arguments: Array > message: "Cannot read property 'focus' of undefined" > stack: "TypeError: Cannot read property 'focus' of undefined at > chrome- > extension://iiblabjehfmonfbnnkmbh…" > type: "non_object_property_load" > > I'll see if I can isolate it more. > > On Jan 6, 7:51 pm, Evan <[email protected]> wrote: > > > > > Thanks for the tip Aaron but the behavior is the same, using > > console.log() I can see that the window.focus() is executing in the > > tab but the window does not change. > > > ... any other tips out there, I really am stumped on this one :| > > > Evan
-- 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.
