views:

154

answers:

1

We're writing an extension for Google Chrome, which only consists of inserting a Flash object in the HTML content. This FLash object generate public external events that can be trapped in JavaScript. Events are correctly trapped if in a normal HTML page, but inside the Chrome extension, it doesn't work.

It's like Chrome is blocking any events generated from a Flash application when inside an extension. Even if I set "allowScriptAccess" to "always", it's doesn't work.

Anyone has seen this behavior and did you found a fix?

A: 

It is because of Flash's security model. The extension page is local so Flash is blocking script access.

Go here - http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html#117502

and add this as a trusted location - chrome-extension://

It will then work. Not really ideal for users but I think it proves that it is Flash and not Chrome's security settings.

Dan Kantor