Bug 1431021 - Remove unused isContentFrame from contentAreaUtils.js. r?florian draft
authorMark Banner <standard8@mozilla.com>
Wed, 17 Jan 2018 09:13:43 +0000
changeset 721390 224ed52b48731009aae8ff96df223d0e959d1ff4
parent 721208 b2cb61e83ac50115a28f04aaa8a32d4db90aad23
child 746333 d07e89ba616bb87b7cefd92ff3d26a916eb11094
push id95836
push userbmo:standard8@mozilla.com
push dateWed, 17 Jan 2018 09:14:12 +0000
reviewersflorian
bugs1431021
milestone59.0a1
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)