Bug 1431021 - Remove unused isContentFrame from contentAreaUtils.js. r=florian
authorMark Banner <standard8@mozilla.com>
Wed, 17 Jan 2018 09:13:43 +0000
changeset 453917 2768c5b6f28717c1180062574d7b2418d98e005e
parent 453916 76d1a0fa9eb7c5929f6bef2e68385b78260cafc0
child 453918 1e723381da62b08b15147357610b989aecc853e4
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1431021
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1431021 - Remove unused isContentFrame from contentAreaUtils.js. r=florian MozReview-Commit-ID: GE8b3YPR0ZO
toolkit/content/contentAreaUtils.js
--- a/toolkit/content/contentAreaUtils.js
+++ b/toolkit/content/contentAreaUtils.js
@@ -31,26 +31,16 @@ var ContentAreaUtils = {
       Services.strings.createBundle("chrome://global/locale/contentAreaCommands.properties");
   }
 };
 
 function urlSecurityCheck(aURL, aPrincipal, aFlags) {
   return BrowserUtils.urlSecurityCheck(aURL, aPrincipal, aFlags);
 }
 
-/**
- * Determine whether or not a given focused DOMWindow is in the content area.
- **/
-function isContentFrame(aFocusedWindow) {
-  if (!aFocusedWindow)
-    return false;
-
-  return (aFocusedWindow.top == window.content);
-}
-
 function forbidCPOW(arg, func, argname) {
   if (arg && (typeof(arg) == "object" || typeof(arg) == "function") &&
       Components.utils.isCrossProcessWrapper(arg)) {
     throw new Error(`no CPOWs allowed for argument ${argname} to ${func}`);
   }
 }
 
 // Clientele: (Make sure you don't break any of these)