Bug 1576505 - Replace obsolete contentDocumentAsCPOW. r+a=jorgk
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Mon, 26 Aug 2019 11:16:00 +0200
changeset 36187 3f2d30df82df3291b31d74ab1f2b790e194c2e69
parent 36186 c5cd0eb02cd0b582b19e0ef68532a6ab8ec19dcd
child 36188 b7c5e0ad60a05e6efc93b697549f9e03eb9d3fdd
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
bugs1576505
Bug 1576505 - Replace obsolete contentDocumentAsCPOW. r+a=jorgk
common/src/viewSource.js
--- a/common/src/viewSource.js
+++ b/common/src/viewSource.js
@@ -756,17 +756,17 @@ Object.defineProperty(this, "gPageLoader
     return this.gPageLoader;
   },
 });
 
 // Strips the |view-source:| for internalSave()
 function ViewSourceSavePage() {
   internalSave(gBrowser.currentURI.spec.replace(/^view-source:/i, ""),
                null, null, null, null, null, "SaveLinkTitle",
-               null, null, gBrowser.contentDocumentAsCPOW, null,
+               null, null, gBrowser.contentDocument, null,
                gPageLoader);
 }
 
 // Below are old deprecated functions and variables left behind for
 // compatibility reasons. These will be removed soon via bug 1159293.
 
 Object.defineProperty(this, "gLastLineFound", {
   configurable: true,