Bug 1431021 - Remove unused isContentFrame from contentAreaUtils.js. r?florian
MozReview-Commit-ID: GE8b3YPR0ZO
--- 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)