зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1084502, <template>'s document should inherit mHasHadScriptHandlingObject from the OwnerDoc(), r=bholley
--HG-- extra : rebase_source : 6991665b5d8a494285d632a3b96b10aed43a7b1c
This commit is contained in:
Родитель
b1a59b2c15
Коммит
d791610ba4
|
@ -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|.
|
||||
|
|
Загрузка…
Ссылка в новой задаче