greasemonkey/greasemonkey — Issue #1446: Metadata @require key fails for local file
Author: matthewkastor
Created: 2011-10-14 06:14:37+00:00
State: open

October 14, 2011

I'm writing a script and trying to require another script located on my local machine. I've put @require arrayMatch.js in the metadata of my script and it looks like the path resolves properly from the error message I'm getting but, the error message says something about failure code: 0x80004005 (NS_ERROR_FAILURE) and gives some location where the error occurs.

I did a google search and found the exact same issue from july 27 of this year, and it was marked as fixed and closed. I don't understand the error message I'm getting. I'll put the error message at the bottom of this post to assist the developers and anyone searching the web. In the meantime I'll put the scripts on my server and see if everything works out.

Note: I do use the noscript extension which sometimes raises issues. I don't know if maybe this is some security measure preventing greasemonkey from getting to file:/// urls. I'd hate to waste your time chasing bugs if it's some security setting I could change . . .

greasemonkey: metadata require key fails for local file and gives this error:

Error loading dependency file:///C:/My%20documents/scripts/js/greasemonkey/generic/arraysMatch.js
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebBrowserPersist.saveChannel]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://greasemonkey/content/scriptdownloader.js :: :: line 181" data: no]