[Pkg-javascript-commits] [pdf.js] 17/119: Remove obsolete CPOW code from PdfjsContentUtils.jsm (PR 5749 followup)

David Prévot taffit at moszumanska.debian.org
Wed May 13 21:27:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 133cfc78fa9776080f8cf76e4799ef054c246394
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue Mar 24 18:36:05 2015 +0100

    Remove obsolete CPOW code from PdfjsContentUtils.jsm (PR 5749 followup)
    
    This code is unused since PR 5749, and according to https://github.com/mozilla/pdf.js/pull/5749#discussion_r25931841 it should be removed.
---
 extensions/firefox/content/PdfjsContentUtils.jsm | 50 ------------------------
 1 file changed, 50 deletions(-)

diff --git a/extensions/firefox/content/PdfjsContentUtils.jsm b/extensions/firefox/content/PdfjsContentUtils.jsm
index b86bd18..0187f44 100644
--- a/extensions/firefox/content/PdfjsContentUtils.jsm
+++ b/extensions/firefox/content/PdfjsContentUtils.jsm
@@ -149,55 +149,5 @@ let PdfjsContentUtils = {
         }
         break;
     }
-  },
-
-  /*
-   * CPOWs
-   */
-
-  getChromeWindow: function (aWindow) {
-    let winmm = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIDocShell)
-                        .sameTypeRootTreeItem
-                        .QueryInterface(Ci.nsIDocShell)
-                        .QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIContentFrameMessageManager);
-    // Sync calls don't support cpow wrapping of returned results, so we
-    // send over a small container for the object we want.
-    let suitcase = {
-      _window: null,
-      setChromeWindow: function (aObj) {
-        this._window = aObj;
-      }
-    };
-    if (!winmm.sendSyncMessage('PDFJS:Parent:getChromeWindow', {},
-                               { suitcase: suitcase })[0]) {
-      Cu.reportError('A request for a CPOW wrapped chrome window ' +
-                     'failed for unknown reasons.');
-      return null;
-    }
-    return suitcase._window;
-  },
-
-  getFindBar: function (aWindow) {
-    let winmm = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIDocShell)
-                        .sameTypeRootTreeItem
-                        .QueryInterface(Ci.nsIDocShell)
-                        .QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIContentFrameMessageManager);
-    let suitcase = {
-      _findbar: null,
-      setFindBar: function (aObj) {
-        this._findbar = aObj;
-      }
-    };
-    if (!winmm.sendSyncMessage('PDFJS:Parent:getFindBar', {},
-                               { suitcase: suitcase })[0]) {
-      Cu.reportError('A request for a CPOW wrapped findbar ' +
-                     'failed for unknown reasons.');
-      return null;
-    }
-    return suitcase._findbar;
   }
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list