After successful upload of my addon, I download and click browser-action icon. My app starts and determines I need to do a data install to Local Storage. I do this with my getJSON routine from my app root:
myURL = “/Resources/ApplicationData.json”
The json code (below) works in Developer but not in Firefox. I suspect it might be a security issue.
MY CODE:
function getJSON(myURL, callback) {
// Return “data” to the callback routine as an object.
$.ajax({
url: myURL,
dataType: “json”,
success: callback
})
}
MY MANIFEST:
{
“manifest_version”: 2,
“name”: “W3 Bookmarks”,
“version”: “21.9.11.95”,
“description”: “FireFox addon for capturing, storing, editing and searching bookmarks.”,
“author”: “John Leicht”,
“permissions”: [“storage”, “tabs”, “downloads”],
“background”: {“page”: “/modules/background.html”},
“browser_action”: {
“default_icon”: “/resources/icons/128x128.png”,
“default_title”: “W3 Bookmarks”
}
}