зеркало из https://github.com/mozilla/gecko-dev.git
Bug 923332 - Use loadURIWithFlags instead of contentDocument.location when loading about:blank (r=ttaubert)
This commit is contained in:
Родитель
685acc3b5a
Коммит
ef04d439df
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче