merge mozilla-inbound to mozilla-central. r=merge a=merge

MozReview-Commit-ID: JhesEg4Bxjy
This commit is contained in:
Sebastian Hengst
2017-08-04 19:28:27 +02:00
124 changed files with 2033 additions and 780 deletions

View File

@@ -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");