Changeset 690
- Timestamp:
- 03/16/08 04:24:43 (9 months ago)
- Files:
-
- trunk/src/chrome/chromeFiles/content/config.js (modified) (4 diffs)
- trunk/src/chrome/chromeFiles/content/install.js (modified) (2 diffs)
- trunk/src/chrome/chromeFiles/content/updater.js (modified) (1 diff)
- trunk/src/components/greasemonkey.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/chrome/chromeFiles/content/config.js
r688 r690 47 47 48 48 for (var i = 0, script; script = this._scripts[i]; i++) { 49 if (script._namespace.toLowerCase() == namespace 49 if (script._namespace.toLowerCase() == namespace 50 50 && script._name.toLowerCase() == name) { 51 51 return i; … … 452 452 } 453 453 454 name = name.replace(/\s+/g, '_').replace(/[^-_A-Z0-9]+/gi, ''); 455 ext = ext.replace(/\s+/g, '_').replace(/[^-_A-Z0-9]+/gi, ''); 454 name = name.replace(/\s+/g, '_').replace(/[^-_A-Z0-9]+/gi, ''); 455 ext = ext.replace(/\s+/g, '_').replace(/[^-_A-Z0-9]+/gi, ''); 456 456 457 457 // If no Latin characters found - use default … … 462 462 463 463 if (ext) name += "." + ext; 464 464 465 465 return name; 466 466 }, … … 486 486 get urlToDownload() { return this._downloadURL; }, 487 487 setDownloadedFile: function(file) { this._tempFile = file; }, 488 488 489 489 get previewURL() { 490 490 return Components.classes["@mozilla.org/network/io-service;1"] trunk/src/chrome/chromeFiles/content/install.js
r493 r690 11 11 this.setupIncludes("includes", "includes-desc", this.script_.includes); 12 12 this.setupIncludes("excludes", "excludes-desc", this.script_.excludes); 13 13 14 14 this.dialog_ = document.documentElement; 15 15 this.extraButton_ = this.dialog_.getButton("extra1"); … … 100 100 } 101 101 }, 102 102 103 103 onOK: function() { 104 104 this.scriptDownloader_.installScript(); trunk/src/chrome/chromeFiles/content/updater.js
r627 r690 132 132 return false; 133 133 } 134 134 135 135 var xulRuntime = Cc["@mozilla.org/xre/app-info;1"] 136 136 .createInstance(Ci.nsIXULRuntime); trunk/src/components/greasemonkey.js
r688 r690 28 28 // services. This didn't happen in FF 2.0.0.11; I'm not sure when it 29 29 // changed. 30 if (stack.filename != null && 30 if (stack.filename != null && 31 31 stack.filename != gmSvcFilename && 32 32 stack.filename.substr(0, 6) != 'chrome') {
