Skip to content

Commit

Permalink
e10s: fix security check
Browse files Browse the repository at this point in the history
(still doesn't work, but now doesn't throw about security errors)
(#162)
  • Loading branch information
Infocatcher committed Jul 24, 2015
1 parent 06eab93 commit a5af254
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a5af254

Please sign in to comment.