1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:28:00 +01:00

Fix :saveas naming bug.

--HG--
extra : rebase_source : 5f85f68a25499827943f07a182de6af70eee4461
This commit is contained in:
Kris Maglione
2011-02-01 18:07:40 -05:00
parent 386749a0a9
commit 4d26e38a94
2 changed files with 4 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ var Buffer = Module("buffer", {
getDefaultNames: function getDefaultNames(node) { getDefaultNames: function getDefaultNames(node) {
let url = node.href || node.src || node.documentURI; let url = node.href || node.src || node.documentURI;
let currExt = url.replace(/.*(?:\.([a-z0-9]+))?$/, "$1").toLowerCase(); let currExt = url.replace(/^.*?(?:\.([a-z0-9]+))?$/i, "$1").toLowerCase();
if (isinstance(node, [Document, HTMLImageElement])) { if (isinstance(node, [Document, HTMLImageElement])) {
let type = node.contentType || node.QueryInterface(Ci.nsIImageLoadingContent) let type = node.contentType || node.QueryInterface(Ci.nsIImageLoadingContent)
@@ -173,7 +173,7 @@ var Buffer = Module("buffer", {
ext = "." + currExt; ext = "." + currExt;
else else
ext = ""; ext = "";
let re = ext ? RegExp("(\\." + currExt + ")?$") : /$/; let re = ext ? RegExp("(\\." + currExt + ")?$", "i") : /$/;
var names = []; var names = [];
if (node.title) if (node.title)

View File

@@ -32,7 +32,8 @@ function checkPopup(event) {
let elem = doc.getAnonymousElementByAttribute(binding, "anonid", "stillworks"); let elem = doc.getAnonymousElementByAttribute(binding, "anonid", "stillworks");
if (elem && elem.nextSibling) { if (elem && elem.nextSibling) {
elem.nextSibling.disabled = true; elem.nextSibling.disabled = true;
elem.nextSibling.setAttribute("tooltiptext", "Developer has opted out of incompatibility reports"); elem.nextSibling.setAttribute("tooltiptext", "Developer has opted out of incompatibility reports\n"+
"Development versions are available with updated support");
} }
} }
} }