Closed antoinevg closed 9 years ago
I m implementing browser extension, this function is not working anymore in FF30: forge.message.broadcastBackground() help me
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
}
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
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
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/