Backed out changeset b20e5de65e51 (bug 1239420) for m(bc) failures in browser_usercontext.js

--HG--
extra : commitid : HbBPWGSMxWu
This commit is contained in:
Wes Kocher 2016-01-15 12:13:51 -08:00
Родитель ca7a00aeb6
Коммит 6d1e417938
1 изменённых файлов: 0 добавлений и 11 удалений

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

@ -3999,7 +3999,6 @@ nsDocShell::AddChild(nsIDocShellTreeItem* aChild)
}
}
childDocShell->SetChildOffset(dynamic ? -1 : mChildList.Length() - 1);
childDocShell->SetUserContextId(mUserContextId);
/* Set the child's global history if the parent has one */
if (mUseGlobalHistory) {
@ -13858,16 +13857,6 @@ NS_IMETHODIMP
nsDocShell::SetUserContextId(uint32_t aUserContextId)
{
mUserContextId = aUserContextId;
nsTObserverArray<nsDocLoader*>::ForwardIterator iter(mChildList);
while (iter.HasMore()) {
nsCOMPtr<nsIDocShell> docshell = do_QueryObject(iter.GetNext());
if (!docshell) {
continue;
}
docshell->SetUserContextId(aUserContextId);
}
return NS_OK;
}