From eecc860be773604a480a7128c92283346e8061ee Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 27 Jan 2015 17:56:04 +0100 Subject: [PATCH] Firefox: use correct data for parentFrameId --- platform/firefox/frameModule.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index 5e0f74f..1124ca0 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -158,7 +158,6 @@ const contentObserver = { } let isTopLevel = context === context.top; - let frameId = isTopLevel ? 0 : this.getFrameId(context); let parentFrameId; if ( isTopLevel ) { @@ -171,7 +170,7 @@ const contentObserver = { let messageManager = getMessageManager(context); let details = { - frameId: frameId, + frameId: isTopLevel ? 0 : this.getFrameId(context), openerURL: openerURL, parentFrameId: parentFrameId, type: type,