trigger-corp / browser-extensions

Build and run cross-platform browser extensions from one codebase.
Other
312 stars 52 forks source link

Changes to unsafeWindow in Firefox >= 30 #36

Closed antoinevg closed 9 years ago

antoinevg commented 10 years ago

Interim term workaround is to add the following to package.json:

"permissions": { "unsafe-content-script": true }

Longer term fix:

https://blog.mozilla.org/addons/2014/04/10/changes-to-unsafewindow-for-the-add-on-sdk/

vikaspatahi commented 9 years ago

I m implementing browser extension, this function is not working anymore in FF30: forge.message.broadcastBackground() help me

reicolina commented 9 years ago

I can confirm that adding the following to firefox/tempate-app/package.json and rebuilding/packaging your extension fixes the problem for now. At least for me.

"permissions": {
      "unsafe-content-script": true
}
vijayasaitalluri commented 9 years ago

Hi, I have the same problem, I didn't get any package.json file in my extension folder, I modified firefox\resources\f\data\forge\app_config.js with "permissions": { "unsafe-content-script": true } but facing the same problem

thanks in advance

reicolina commented 9 years ago

The change has to be made not in your extension folder but in the browser-extensions source code. Specifically here: https://github.com/trigger-corp/browser-extensions/blob/master/firefox/template-app/package.json