Bug 1160064 - Give WatchManager an owner thread and make sure everything happens there. r=jww

This commit is contained in:
Bobby Holley
2015-04-30 16:21:14 -07:00
parent f1e2ad39fb
commit 8a43ce3ce0
4 changed files with 36 additions and 9 deletions

View File

@@ -2042,7 +2042,7 @@ HTMLMediaElement::LookupMediaElementURITable(nsIURI* aURI)
HTMLMediaElement::HTMLMediaElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
: nsGenericHTMLElement(aNodeInfo),
mWatchManager(this),
mWatchManager(this, AbstractThread::MainThread()),
mCurrentLoadID(0),
mNetworkState(nsIDOMHTMLMediaElement::NETWORK_EMPTY),
mReadyState(nsIDOMHTMLMediaElement::HAVE_NOTHING, "HTMLMediaElement::mReadyState"),