⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 233112 in webkit


Ignore:
Timestamp:
Jun 22, 2018, 5:15:51 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

[Fullscreen] Restore ASSERT_NOT_REACHED() checks in exit fullscreen handler after r231924
https://bugs.webkit.org/show_bug.cgi?id=186945
<rdar://problem/37277469>

Reviewed by Simon Fraser.

  • platform/ios/VideoFullscreenInterfaceAVKit.mm:

(VideoFullscreenInterfaceAVKit::exitFullscreen):
(VideoFullscreenInterfaceAVKit::exitFullscreenHandler):
(VideoFullscreenInterfaceAVKit::cleanupFullscreen):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r233106 r233112  
     12018-06-22  Jer Noble  <jer.noble@apple.com>
     2
     3        [Fullscreen] Restore ASSERT_NOT_REACHED() checks in exit fullscreen handler after r231924
     4        https://bugs.webkit.org/show_bug.cgi?id=186945
     5        <rdar://problem/37277469>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * platform/ios/VideoFullscreenInterfaceAVKit.mm:
     10        (VideoFullscreenInterfaceAVKit::exitFullscreen):
     11        (VideoFullscreenInterfaceAVKit::exitFullscreenHandler):
     12        (VideoFullscreenInterfaceAVKit::cleanupFullscreen):
     13
    1142018-06-22  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm

    r232479 r233112  
    10121012    } else if (m_currentMode.isFullscreen()) {
    10131013        [m_playerViewController exitFullScreenAnimated:YES completionHandler:[protectedThis = makeRefPtr(this), this] (BOOL success, NSError* error) mutable {
    1014             if (!success)
     1014            if (!success) {
    10151015                WTFLogAlways("-[AVPlayerViewController exitFullScreenAnimated:completionHandler:] failed with error %s", [[error localizedDescription] UTF8String]);
     1016                ASSERT_NOT_REACHED();
     1017            }
    10161018
    10171019            m_exitCompleted = true;
     
    10481050        [[m_playerViewController view] layoutIfNeeded];
    10491051        [m_playerViewController exitFullScreenAnimated:NO completionHandler:[] (BOOL success, NSError* error) {
    1050             if (!success)
     1052            if (!success) {
    10511053                WTFLogAlways("-[AVPlayerViewController exitFullScreenAnimated:completionHandler:] failed with error %s", [[error localizedDescription] UTF8String]);
     1054                ASSERT_NOT_REACHED();
     1055            }
    10521056        }];
    10531057    }
     
    17911795void VideoFullscreenInterfaceAVKit::exitFullscreenHandler(BOOL success, NSError* error)
    17921796{
    1793     if (!success)
     1797    if (!success) {
    17941798        WTFLogAlways("-[AVPlayerViewController exitFullScreenAnimated:completionHandler:] failed with error %s", [[error localizedDescription] UTF8String]);
     1799        ASSERT_NOT_REACHED();
     1800    }
    17951801
    17961802    LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::didExitFullscreen(%p) - %d", this, success);
Note: See TracChangeset for help on using the changeset viewer.