From a5af2546b2f217f7fd422d13bb16dbe598c9ee64 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Fri, 24 Jul 2015 19:16:03 +0300 Subject: [PATCH] e10s: fix security check (still doesn't work, but now doesn't throw about security errors) (#162) --- bootstrap.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap.js b/bootstrap.js index 8a938ce..dae8d17 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -2092,11 +2092,12 @@ var privateTab = { var doc = gContextMenu.target.ownerDocument; var principal = doc.nodePrincipal; if( - "gContextMenu" in window + "gContextMenuContentData" in window + && "gContextMenu" in window && window.gContextMenu - && "_unremotePrincipal" in window.gContextMenu // Electrolysis + && window.gContextMenu.isRemote // Electrolysis ) try { - principal = window.gContextMenu._unremotePrincipal(principal); + principal = window.gContextMenuContentData.principal; } catch(e) { Components.utils.reportError(e);