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 52816650ae
commit 4395dc2dd4

View File

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