mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:47:58 +01:00
Fix some :cd problems. Remove special treatement of ,, in 'cdpath'.
This commit is contained in:
@@ -670,7 +670,7 @@ const Buffer = Module("buffer", {
|
||||
try {
|
||||
window.urlSecurityCheck(url, doc.nodePrincipal);
|
||||
// we always want to save that link relative to the current working directory
|
||||
options.setPref("browser.download.lastDir", io.getCurrentDirectory().path);
|
||||
options.setPref("browser.download.lastDir", io.cwd);
|
||||
window.saveURL(url, text, null, true, skipPrompt, makeURI(url, doc.characterSet));
|
||||
}
|
||||
catch (e) {
|
||||
@@ -1232,7 +1232,7 @@ const Buffer = Module("buffer", {
|
||||
// if browser.download.useDownloadDir = false then the "Save As"
|
||||
// dialog is used with this as the default directory
|
||||
// TODO: if we're going to do this shouldn't it be done in setCWD or the value restored?
|
||||
options.setPref("browser.download.lastDir", io.getCurrentDirectory().path);
|
||||
options.setPref("browser.download.lastDir", io.cwd);
|
||||
|
||||
try {
|
||||
var contentDisposition = window.content
|
||||
|
||||
Reference in New Issue
Block a user