Bug 771273 - Part 2: Make in-process <iframe mozbrowser>'s have their own shistory objects. r=bz

This commit is contained in:
Justin Lebar 2012-07-23 13:47:34 -04:00
parent 947894d0cf
commit ddb788ddf2

View File

@ -65,6 +65,10 @@ BrowserElementChild.prototype = {
Ci.nsIWebProgress.NOTIFY_SECURITY |
Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
docShell.QueryInterface(Ci.nsIWebNavigation)
.sessionHistory = Cc["@mozilla.org/browser/shistory;1"]
.createInstance(Ci.nsISHistory);
// This is necessary to get security web progress notifications.
var securityUI = Cc['@mozilla.org/secure_browser_ui;1']
.createInstance(Ci.nsISecureBrowserUI);