Bug 1187056 - Dispatch the meta tag mutation events sooner so that any meta-viewport changes can be processed before scripts continue running. r=smaug

This commit is contained in:
Kartikaya Gupta
2015-07-31 13:08:40 -04:00
parent b72e191135
commit b12eada99e

View File

@@ -115,7 +115,7 @@ HTMLMetaElement::CreateAndDispatchEvent(nsIDocument* aDoc,
nsRefPtr<AsyncEventDispatcher> asyncDispatcher =
new AsyncEventDispatcher(this, aEventName, true, true);
asyncDispatcher->PostDOMEvent();
asyncDispatcher->RunDOMEventWhenSafe();
}
JSObject*