merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JhesEg4Bxjy
This commit is contained in:
@@ -508,6 +508,8 @@ HTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest* aRequest,
|
||||
RefPtr<HTMLMediaElement> element;
|
||||
element.swap(mElement);
|
||||
|
||||
AbstractThread::AutoEnter context(element->AbstractMainThread());
|
||||
|
||||
if (mLoadID != element->GetCurrentLoadID()) {
|
||||
// The channel has been cancelled before we had a chance to create
|
||||
// a decoder. Abort, don't dispatch an "error" event, as the new load
|
||||
@@ -2471,6 +2473,8 @@ void HTMLMediaElement::UpdatePreloadAction()
|
||||
|
||||
nsresult HTMLMediaElement::LoadResource()
|
||||
{
|
||||
AbstractThread::AutoEnter context(AbstractMainThread());
|
||||
|
||||
NS_ASSERTION(mDelayingLoadEvent,
|
||||
"Should delay load event (if in document) during load");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user