Bug 923332 - Use loadURIWithFlags instead of contentDocument.location when loading about:blank (r=ttaubert)

This commit is contained in:
Bill McCloskey 2013-10-10 10:52:22 -07:00
parent 858f85d9af
commit 2659de5e12

View File

@ -2526,7 +2526,9 @@ let SessionStoreInternal = {
if (!tabData.entries || tabData.entries.length == 0) {
// make sure to blank out this tab's content
// (just purging the tab's history won't be enough)
browser.contentDocument.location = "about:blank";
browser.loadURIWithFlags("about:blank",
Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY,
null, null, null);
continue;
}