From 8c91b6a48388d8b5e2dbe0dafc9c5669d0bf3dbd Mon Sep 17 00:00:00 2001 From: Gian-Carlo Pascutto Date: Thu, 18 Jul 2013 14:05:33 +0200 Subject: [PATCH] Bug 894938 - Content permission prompts don't work when prompt requestor is an iframe. r=mfinkle --- mobile/android/components/ContentPermissionPrompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/components/ContentPermissionPrompt.js b/mobile/android/components/ContentPermissionPrompt.js index 6599bca218cd..831c9ad71a76 100644 --- a/mobile/android/components/ContentPermissionPrompt.js +++ b/mobile/android/components/ContentPermissionPrompt.js @@ -58,7 +58,7 @@ ContentPermissionPrompt.prototype = { return; let chromeWin = this.getChromeForRequest(request); - let tab = chromeWin.BrowserApp.getTabForWindow(request.window); + let tab = chromeWin.BrowserApp.getTabForWindow(request.window.top); if (!tab) return;