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

Fix typo.

This commit is contained in:
Kris Maglione
2010-10-04 12:17:55 -04:00
parent 226e411420
commit f141d3921b

View File

@@ -983,7 +983,7 @@ const Buffer = Module("buffer", {
let webNav = window.getWebNavigation(); let webNav = window.getWebNavigation();
try { try {
webNav = doc.defaultView.QueryInterface(Ci.nsIInterfaceRequestor) webNav = doc.defaultView.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(nsIWebNavigation); .getInterface(Ci.nsIWebNavigation);
} }
catch (e) {} catch (e) {}
let descriptor = null; let descriptor = null;
@@ -1007,14 +1007,14 @@ const Buffer = Module("buffer", {
.QueryInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIWebPageDescriptor) .QueryInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIWebPageDescriptor)
.QueryInterface(Ci.nsIWebProgress); .QueryInterface(Ci.nsIWebProgress);
this.docShell.create(); this.docShell.create();
this.docShell.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT); this.docShell.addProgressListener(this, this.docShell.NOTIFY_STATE_DOCUMENT);
this.docShell.loadPage(descriptor, Ci.nsIWebPageDescriptor.DISPLAY_AS_SOURCE); this.docShell.loadPage(descriptor, this.docShell.DISPLAY_AS_SOURCE);
} }
else { else {
this.file = io.createTempFile(); this.file = io.createTempFile();
var webBrowserPersist = Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"] var webBrowserPersist = Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"]
.createInstance(Ci.nsIWebBrowserPersist); .createInstance(Ci.nsIWebBrowserPersist);
webBrowserPersist.persistFlags = Ci.nsIWebBrowserPersist.PERSIST_FLAGS_REPLACE_EXISTING_FILES; webBrowserPersist.persistFlags = webBrowserPersist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
webBrowserPersist.progressListener = this; webBrowserPersist.progressListener = this;
webBrowserPersist.saveURI(uri, null, null, null, null, this.file); webBrowserPersist.saveURI(uri, null, null, null, null, this.file);
} }