1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 15:15:46 +01:00

Fix NS_ERROR_NOT_INITIALIZED on some :write filename completions.

This commit is contained in:
Kris Maglione
2015-05-18 14:22:34 -07:00
parent 07ce319763
commit 72a4d80ad1
2 changed files with 21 additions and 4 deletions

View File

@@ -1517,7 +1517,12 @@ var Buffer = Module("Buffer", {
if (type === "text/plain")
ext = "." + (currExt || "txt");
else
ext = "." + services.mime.getPrimaryExtension(type, currExt);
try {
ext = "." + services.mime.getPrimaryExtension(type, currExt);
}
catch (e) {
ext = currExt ? "." + curExt : "";
}
}
else if (currExt)
ext = "." + currExt;