зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256468 - sessionHistory shim should QI DocShell to nsIWebNavigation automatically. r=krizsa
MozReview-Commit-ID: 8benvQvcfLO --HG-- extra : rebase_source : 37abd37a9ae0a0390a2178661271ffd756fe9a11
This commit is contained in:
Родитель
2477d37bae
Коммит
aa5fda5bce
|
@ -863,7 +863,7 @@ function getSessionHistory(browser) {
|
|||
// We may not have any messages from this tab yet.
|
||||
return null;
|
||||
}
|
||||
return remoteChromeGlobal.docShell.sessionHistory;
|
||||
return remoteChromeGlobal.docShell.QueryInterface(Ci.nsIWebNavigation).sessionHistory;
|
||||
}
|
||||
|
||||
RemoteBrowserElementInterposition.getters.contentDocument = function(addon, target) {
|
||||
|
|
|
@ -61,6 +61,7 @@ function testContentWindow()
|
|||
ok(browser.contentWindow, "contentWindow is defined");
|
||||
ok(browser.contentDocument, "contentWindow is defined");
|
||||
is(gWin.content, browser.contentWindow, "content === contentWindow");
|
||||
ok(browser.webNavigation.sessionHistory, "sessionHistory is defined");
|
||||
|
||||
ok(browser.contentDocument.getElementById("link"), "link present in document");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче