import change from tenfourfox:

- closes #646: M1720568 M1720031 M1666184 M1722204 +TLDs HSTS (0f33324c8)
This commit is contained in:
2021-08-10 11:42:42 +08:00
parent 6fd60b08fe
commit 960bdb954d
8 changed files with 3819 additions and 1412 deletions
+7 -1
View File
@@ -181,7 +181,13 @@ HTMLSharedObjectElement::SetAttr(int32_t aNameSpaceID, nsIAtom *aName,
if (aNotify && IsInComposedDoc() && mIsDoneAddingChildren &&
aNameSpaceID == kNameSpaceID_None && aName == URIAttrName()
&& !BlockEmbedContentLoading()) {
return LoadObject(aNotify, true);
nsContentUtils::AddScriptRunner(NS_NewRunnableFunction(
[self = RefPtr<HTMLSharedObjectElement>(this), aNotify]() {
if (self->IsInComposedDoc()) {
self->LoadObject(aNotify, true);
}
}));
return NS_OK;
}
return NS_OK;