blob: feffd2c6344f7c74ad2cdb732cc871627752ece7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- toolkit/mozapps/extensions/src/nsExtensionManager.js.in.orig Tue Jul 27 15:35:12 2004
+++ toolkit/mozapps/extensions/src/nsExtensionManager.js.in Tue Jul 27 15:36:02 2004
@@ -1568,9 +1568,14 @@
_checkForGlobalInstalls: function (aPath, aItemType)
{
+ var fPrefix = "file://";
// First see if the path supplied is a file path
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
+ if (aPath.substr(0, fPrefix.length) == fPrefix) {
+ // Strip out the file:// prefix if it exists
+ aPath = aPath.substr(fPrefix.length, aPath.length);
+ }
try {
file.initWithPath(aPath);
}
|