Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/elemHide.js

Issue 29329554: Issue 3208 - Send Private Browsing flag separately from the frame structure (Closed)
Patch Set: Fixed PrivateBrowsingUtils call Created Nov. 2, 2015, 6:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/child/utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/elemHide.js
===================================================================
--- a/lib/elemHide.js
+++ b/lib/elemHide.js
@@ -217,17 +217,17 @@ let ElemHide = exports.ElemHide =
location: {
href: message.frames[i].location
},
document: {
documentElement: {}
},
QueryInterface: function() {return this;},
getInterface: function() {return this;},
- usePrivateBrowsing: (fakeFrame ? fakeFrame.usePrivateBrowsing : message.frames[i].privateBrowsing)
+ usePrivateBrowsing: message.isPrivate
};
fakeFrame.top = fakeFrame.parent || fakeFrame;
if (!fakeFrame.parent)
fakeFrame.parent = fakeFrame;
let sitekey = message.frames[i].sitekey || null;
fakeFrame.document.documentElement.getAttribute = function(attr)
{
« no previous file with comments | « lib/child/utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld