Changeset 635
- Timestamp:
- 01/20/08 06:11:55 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/jhs1/chrome/chromeFiles/content/scriptdownloader.js
r634 r635 90 90 ScriptDownloader.prototype.fetchDependencies = function(){ 91 91 GM_log("Fetching Dependencies"); 92 var deps = this.script.requires.concat(this.script.resources); 93 for (var i = 0; i < deps.length; i++) { 94 var dep = deps[i]; 92 var dep, deps = this.script.requires.concat(this.script.resources); 93 while ((dep = deps.shift())) { 95 94 if (this.checkDependencyURL(dep.url)) { 96 95 this.depQueue_.push(dep); 97 96 } else { 98 this.errorInstallDependency(this.script, dep, 99 "SecurityException: Request to local and chrome url's is forbidden"); 97 var error = new Error("SecurityException: " + 98 "Request to local and chrome urls is forbidden"); 99 this.errorInstallDependency(error, dep); 100 100 return; 101 101 } … … 288 288 289 289 args.unshift(this, onOK, file, channel); 290 onOK = GM_hitch.apply( args);290 onOK = GM_hitch.apply(this, args); 291 291 var progressListener = new PersistProgressListener(onOK); 292 292 progressListener.persist.saveChannel(channel, file); … … 294 294 GM_log("Download exception " + e); 295 295 args.unshift(this, onFail, e); 296 onFail = GM_hitch.apply( args);296 onFail = GM_hitch.apply(this, args); 297 297 onFail(); 298 298 }
