Changeset 83332 in webkit
- Timestamp:
- Apr 8, 2011 1:11:32 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83329 r83332 1 2011-04-07 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Eric Carlson. 4 5 Logic error in HTMLMediaElement::exitFullscreen() 6 https://bugs.webkit.org/show_bug.cgi?id=58085 7 8 The new full screen API case could fall through to the legacy API case 9 unintentionally if a script calls exitFullscreen on an element which is 10 not the current full screen element. 11 12 * html/HTMLMediaElement.cpp: 13 (WebCore::HTMLMediaElement::enterFullscreen): 14 (WebCore::HTMLMediaElement::exitFullscreen): 15 1 16 2011-04-08 Mike Reed <reed@google.com> 2 17 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r83208 r83332 2450 2450 LOG(Media, "HTMLMediaElement::enterFullscreen"); 2451 2451 #if ENABLE(FULLSCREEN_API) 2452 if (document() ->settings() && document()->settings()->fullScreenEnabled()) {2452 if (document() && document()->settings() && document()->settings()->fullScreenEnabled()) { 2453 2453 webkitRequestFullScreen(0); 2454 2454 return; … … 2467 2467 LOG(Media, "HTMLMediaElement::exitFullscreen"); 2468 2468 #if ENABLE(FULLSCREEN_API) 2469 if (document() ->settings() && document()->settings()->fullScreenEnabled()2470 && document()->webkitIsFullScreen() && document()->webkitCurrentFullScreenElement() == this) {2471 document()->webkitCancelFullScreen();2469 if (document() && document()->settings() && document()->settings()->fullScreenEnabled()) { 2470 if (document()->webkitIsFullScreen() && document()->webkitCurrentFullScreenElement() == this) 2471 document()->webkitCancelFullScreen(); 2472 2472 return; 2473 2473 }
Note: See TracChangeset
for help on using the changeset viewer.