diff --git a/browser/metro/components/ContentPermissionPrompt.js b/browser/metro/components/ContentPermissionPrompt.js index 0c66d7bf493..bcc8e5f884c 100644 --- a/browser/metro/components/ContentPermissionPrompt.js +++ b/browser/metro/components/ContentPermissionPrompt.js @@ -60,7 +60,7 @@ ContentPermissionPrompt.prototype = { if (request.window) { let requestingWindow = request.window.top; let chromeWin = this.getChromeWindow(requestingWindow).wrappedJSObject; - let windowID = window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID; + let windowID = request.window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID; let browser = chromeWin.Browser.getBrowserForWindowId(windowID); return chromeWin.getNotificationBox(browser); }