Changeset 87005 in webkit


Ignore:
Timestamp:
May 20, 2011 5:48:10 PM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-05-20 Jeremy Noble <jer.noble@apple.com>

Reviewed by Mark Rowe.

Crash in WebFullScreenManager::didExitFullScreen when closing a window in Safari.
https://bugs.webkit.org/show_bug.cgi?id=61228

Do not attempt to exit full screen if we aren't in full screen to begin with, as the WebProcess
won't be expecting will/didExitFullScreen notifications.

  • UIProcess/mac/WKFullScreenWindowController.mm: (-[WKFullScreenWindowController close]):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r86995 r87005  
     12011-05-20  Jeremy Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        Crash in WebFullScreenManager::didExitFullScreen when closing a window in Safari.
     6        https://bugs.webkit.org/show_bug.cgi?id=61228
     7
     8        Do not attempt to exit full screen if we aren't in full screen to begin with, as the WebProcess
     9        won't be expecting will/didExitFullScreen notifications.
     10
     11        * UIProcess/mac/WKFullScreenWindowController.mm:
     12        (-[WKFullScreenWindowController close]):
     13
    1142011-05-20  Andy Estes  <aestes@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm

    r86995 r87005  
    429429    // normal exit full screen sequence, but don't wait to be called back
    430430    // in response.
    431     [self exitFullScreen];
    432     [self beganExitFullScreenAnimation];
    433     [self finishedExitFullScreenAnimation:YES];
     431    if (_isFullScreen) {
     432        [self exitFullScreen];
     433        [self beganExitFullScreenAnimation];
     434    }
     435   
     436    if (_isExitingFullScreen)
     437        [self finishedExitFullScreenAnimation:YES];
    434438}
    435439
Note: See TracChangeset for help on using the changeset viewer.