Changeset 249141 in webkit
- Timestamp:
- Aug 27, 2019, 8:23:46 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/media/presentationmodechanged-fired-once-expected.txt (added)
-
LayoutTests/media/presentationmodechanged-fired-once.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249135 r249141 1 2019-08-27 Peng Liu <peng.liu6@apple.com> 2 3 webkitpresentationmodechanged is fired twice when exiting picture in picture 4 https://bugs.webkit.org/show_bug.cgi?id=193765 5 6 Reviewed by Jer Noble. 7 8 * media/presentationmodechanged-fired-once-expected.txt: Added. 9 * media/presentationmodechanged-fired-once.html: Added. 10 1 11 2019-08-27 Carlos Garcia Campos <cgarcia@igalia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r249140 r249141 1 2019-08-27 Peng Liu <peng.liu6@apple.com> 2 3 webkitpresentationmodechanged is fired twice when exiting picture in picture 4 https://bugs.webkit.org/show_bug.cgi?id=193765 5 6 Reviewed by Jer Noble. 7 8 This patch removes the extra "webkitpresentationmodechanged" event when the browser switches from 9 picture-in-picture or fullscreen to inline. 10 11 The bug was introduced by the fix for bug 12 https://bugs.webkit.org/show_bug.cgi?id=181095 13 But now we are using modern media controls and the fix is not necessary. 14 Reverting that fix can fix the issue. 15 16 Also, this patch gets rid of the unnecessary try to call a JavaScript function which is not available 17 in the modern media controls. 18 19 Test: media/presentationmodechanged-fired-once.html 20 21 * html/HTMLMediaElement.cpp: 22 (WebCore::HTMLMediaElement::exitFullscreen): 23 (WebCore::HTMLMediaElement::updateMediaControlsAfterPresentationModeChange): 24 1 25 2019-08-27 Wenson Hsieh <wenson_hsieh@apple.com> 2 26 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r248846 r249141 6122 6122 document().page()->chrome().client().exitVideoFullscreenForVideoElement(downcast<HTMLVideoElement>(*this)); 6123 6123 scheduleEvent(eventNames().webkitendfullscreenEvent); 6124 scheduleEvent(eventNames().webkitpresentationmodechangedEvent);6125 6124 } 6126 6125 } … … 7434 7433 // stopped/suspended the object. 7435 7434 if (!m_mediaControlsHost || document().activeDOMObjectsAreSuspended() || document().activeDOMObjectsAreStopped()) 7435 return; 7436 7437 if (RuntimeEnabledFeatures::sharedFeatures().modernMediaControlsEnabled()) 7436 7438 return; 7437 7439
Note:
See TracChangeset
for help on using the changeset viewer.