Bug 1127393 - removed three now-unused helper functions for handling the window and document as CPOWs; r=mconley
authorAlex Gaynor <agaynor@mozilla.com>
Wed, 17 Oct 2018 15:47:28 +0000
changeset 490149 b94a2aa50ef2a049dace3fb54fbaf825c6503a25
parent 490148 7dfafc01cf471ed9985443d9d370ad5a00852ac8
child 490150 c29585c36177f6c1fa00049c519f89b12bd779e3
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersmconley
bugs1127393
milestone64.0a1
Bug 1127393 - removed three now-unused helper functions for handling the window and document as CPOWs; r=mconley Differential Revision: https://phabricator.services.mozilla.com/D8985
browser/base/content/tabbrowser.js
toolkit/content/widgets/editor.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -401,36 +401,28 @@ window._gBrowser = {
   get webProgress() {
     return this.selectedBrowser.webProgress;
   },
 
   get contentWindow() {
     return this.selectedBrowser.contentWindow;
   },
 
-  get contentWindowAsCPOW() {
-    return this.selectedBrowser.contentWindowAsCPOW;
-  },
-
   get sessionHistory() {
     return this.selectedBrowser.sessionHistory;
   },
 
   get markupDocumentViewer() {
     return this.selectedBrowser.markupDocumentViewer;
   },
 
   get contentDocument() {
     return this.selectedBrowser.contentDocument;
   },
 
-  get contentDocumentAsCPOW() {
-    return this.selectedBrowser.contentDocumentAsCPOW;
-  },
-
   get contentTitle() {
     return this.selectedBrowser.contentTitle;
   },
 
   get contentPrincipal() {
     return this.selectedBrowser.contentPrincipal;
   },
 
--- a/toolkit/content/widgets/editor.js
+++ b/toolkit/content/widgets/editor.js
@@ -80,20 +80,16 @@ class MozEditor extends XULFrameElement 
   get editortype() {
     return this.getAttribute("editortype");
   }
 
   get currentURI() {
     return this.webNavigation.currentURI;
   }
 
-  get contentWindowAsCPOW() {
-    return this.contentWindow;
-  }
-
   get webBrowserFind() {
     return this.docShell.QueryInterface(Ci.nsIInterfaceRequestor)
                         .getInterface(Ci.nsIWebBrowserFind);
   }
 
   get markupDocumentViewer() {
     return this.docShell.contentViewer;
   }