Changeset 206185 in webkit


Ignore:
Timestamp:
Sep 20, 2016 4:56:38 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

[media-source] Fix imported/w3c/web-platform-tests/media-source/mediasource-preload.html
https://bugs.webkit.org/show_bug.cgi?id=162304

Reviewed by Darin Adler.

Source/WebCore:

If an error occurs while loading a URL on behalf of MediaPlayerPrivateAVFObjC, make sure to signal
that error to AVFoundation, so that the HTMLMediaElement is notified of the error.

  • platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:

(WebCore::WebCoreAVFResourceLoader::notifyFinished):

LayoutTests:

  • platform/mac/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r206170 r206185  
     12016-09-20  Jer Noble  <jer.noble@apple.com>
     2
     3        [media-source] Fix imported/w3c/web-platform-tests/media-source/mediasource-preload.html
     4        https://bugs.webkit.org/show_bug.cgi?id=162304
     5
     6        Reviewed by Darin Adler.
     7
     8        * platform/mac/TestExpectations:
     9
    1102016-09-20  Nan Wang  <n_wang@apple.com>
    211
  • trunk/LayoutTests/platform/mac/TestExpectations

    r206146 r206185  
    10631063[ Yosemite+ ] imported/w3c/web-platform-tests/media-source/mediasource-play-then-seek-back.html [ Pass ]
    10641064[ Yosemite+ ] imported/w3c/web-platform-tests/media-source/mediasource-play.html [ Pass ]
     1065[ Yosemite+ ] imported/w3c/web-platform-tests/media-source/mediasource-preload.html [ Pass ]
    10651066[ Yosemite+ ] imported/w3c/web-platform-tests/media-source/mediasource-redundant-seek.html [ Pass ]
    10661067[ Yosemite+ ] imported/w3c/web-platform-tests/media-source/mediasource-remove.html [ Pass ]
  • trunk/Source/WebCore/ChangeLog

    r206181 r206185  
     12016-09-20  Jer Noble  <jer.noble@apple.com>
     2
     3        [media-source] Fix imported/w3c/web-platform-tests/media-source/mediasource-preload.html
     4        https://bugs.webkit.org/show_bug.cgi?id=162304
     5
     6        Reviewed by Darin Adler.
     7
     8        If an error occurs while loading a URL on behalf of MediaPlayerPrivateAVFObjC, make sure to signal
     9        that error to AVFoundation, so that the HTMLMediaElement is notified of the error.
     10
     11        * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
     12        (WebCore::WebCoreAVFResourceLoader::notifyFinished):
     13
    1142016-09-20  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm

    r206016 r206185  
    147147            [[m_avRequest.get() contentInformationRequest] setContentType:@""];
    148148
    149         [m_avRequest.get() finishLoadingWithError:0];
     149        NSError* error = resource->errorOccurred() ? resource->resourceError().nsError() : nil;
     150        [m_avRequest.get() finishLoadingWithError:error];
    150151    } else {
    151152        fulfillRequestWithResource(resource);
Note: See TracChangeset for help on using the changeset viewer.