Bug 1361754 Don't propagate Navigator object on document.open() any more. r=mrbkap

This commit is contained in:
Ben Kelly 2017-05-03 13:25:05 -07:00
Родитель cfc06fe550
Коммит d9b204c062
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -3147,15 +3147,6 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
if (currentInner && currentInner->GetWrapperPreserveColor()) {
if (oldDoc == aDocument) {
// Move the navigator from the old inner window to the new one since
// this is a document.write. This is safe from a same-origin point of
// view because document.write can only be used by the same origin.
newInnerWindow->mNavigator = currentInner->mNavigator;
currentInner->mNavigator = nullptr;
if (newInnerWindow->mNavigator) {
newInnerWindow->mNavigator->SetWindow(newInnerWindow->AsInner());
}
// Make a copy of the old window's performance object on document.open.
// Note that we have to force eager creation of it here, because we need
// to grab the current document channel and whatnot before that changes.

Просмотреть файл

@ -1,8 +1,5 @@
[009.html]
type: testharness
[document.open replacing singleton navigator]
expected: FAIL
[document.open replacing singleton sessionStorage]
expected: FAIL