diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-07-27 20:51:02 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-07-27 20:51:02 +0000 |
commit | 9e94e6497f64e1fa3109f3c3dde102efe77dd3e0 (patch) | |
tree | df3a3611bab570aed7020cb9ccfbc1e69faad65b /mail/thunderbird3/files | |
parent | 2f3d2c4f090a766e463f47e9659a1aef11d6ce5e (diff) | |
download | ports-9e94e6497f64e1fa3109f3c3dde102efe77dd3e0.tar.gz ports-9e94e6497f64e1fa3109f3c3dde102efe77dd3e0.zip |
Fix global extension and theme installation by making sure the path to the
XPI file does no contain a leading "file://" when passed to the extension
manager.
See http://bugzilla.mozilla.org/show_bug.cgi?id=250847 for more details.
Reported by: ale
Notes
Notes:
svn path=/head/; revision=114894
Diffstat (limited to 'mail/thunderbird3/files')
-rw-r--r-- | mail/thunderbird3/files/patch-toolkit_mozapps_extensions_src_nsExtensionManager.js.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/thunderbird3/files/patch-toolkit_mozapps_extensions_src_nsExtensionManager.js.in b/mail/thunderbird3/files/patch-toolkit_mozapps_extensions_src_nsExtensionManager.js.in new file mode 100644 index 000000000000..feffd2c6344f --- /dev/null +++ b/mail/thunderbird3/files/patch-toolkit_mozapps_extensions_src_nsExtensionManager.js.in @@ -0,0 +1,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); + } |