Bug 1250033 - DocShell shouldn't have any child when setting userContextId. r=sicking

This commit is contained in:
Yoshi Huang
2016-05-06 11:09:44 +08:00
parent 297d7e3b23
commit 09153b4916

View File

@@ -14092,6 +14092,8 @@ nsDocShell::GetOriginAttributes(JSContext* aCx,
void
nsDocShell::SetOriginAttributes(const DocShellOriginAttributes& aAttrs)
{
MOZ_ASSERT(mChildList.Length() == 0);
// TODO: Bug 1273058 - mContentViewer should be null when setting origin
// attributes.
if (mContentViewer) {