Bug 1666485 - Make BrowsingContext::CreatedDynamically non-synced, r=nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D89223
This commit is contained in:
@@ -2943,8 +2943,7 @@ nsDocShell::AddChild(nsIDocShellTreeItem* aChild) {
|
||||
"child list must not be empty after a successful add");
|
||||
|
||||
nsCOMPtr<nsIDocShell> childDocShell = do_QueryInterface(aChild);
|
||||
bool dynamic = false;
|
||||
childDocShell->GetCreatedDynamically(&dynamic);
|
||||
bool dynamic = nsDocShell::Cast(childDocShell)->GetCreatedDynamically();
|
||||
if (!dynamic) {
|
||||
nsCOMPtr<nsISHEntry> currentSH;
|
||||
bool oshe = false;
|
||||
@@ -3125,20 +3124,6 @@ nsresult nsDocShell::AddChildSHEntryToParent(nsISHEntry* aNewEntry,
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::SetCreatedDynamically(bool aDynamic) {
|
||||
if (mBrowsingContext) {
|
||||
Unused << mBrowsingContext->SetCreatedDynamically(aDynamic);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetCreatedDynamically(bool* aDynamic) {
|
||||
*aDynamic = mBrowsingContext && mBrowsingContext->GetCreatedDynamically();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetCurrentSHEntry(nsISHEntry** aEntry, bool* aOSHE) {
|
||||
*aOSHE = false;
|
||||
|
||||
Reference in New Issue
Block a user