Bug 1084502, <template>'s document should inherit mHasHadScriptHandlingObject from the OwnerDoc(), r=bholley

--HG--
extra : rebase_source : 6991665b5d8a494285d632a3b96b10aed43a7b1c
This commit is contained in:
Olli Pettay 2014-10-22 17:25:56 +03:00
Родитель b1a59b2c15
Коммит d791610ba4
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -9627,12 +9627,13 @@ nsDocument::GetTemplateContentsOwner()
NS_ENSURE_TRUE(mTemplateContentsOwner, nullptr);
nsDocument* doc = static_cast<nsDocument*>(mTemplateContentsOwner.get());
doc->mHasHadScriptHandlingObject = hasHadScriptObject;
if (!scriptObject) {
mTemplateContentsOwner->SetScopeObject(GetScopeObject());
}
doc->mHasHadScriptHandlingObject = hasHadScriptObject;
// Set |doc| as the template contents owner of itself so that
// |doc| is the template contents owner of template elements created
// by |doc|.