Firefox SDK: Redirect to ressource HTML denied
问题 I'm trying to write a Firefox Addon with the Addon SDK to redirect some websites based on their URL. I have created a HTML page and put it in the data directory. I get the path with: var data = require("sdk/self").data; var myWebsite = data.url("myWebsite.html"); I'm using PageMod to start a script given an array of URLs: pageMod.PageMod({ include: ArrayOfUrls, contentScriptFile: "./myScript.js", contentScriptOptions: {"myWebsite" : myWebsite} }); In myScript.js I'm checking if some