Title: [195111] releases/WebKitGTK/webkit-2.10/Source/WebCore
- Revision
- 195111
- Author
- [email protected]
- Date
- 2016-01-15 02:37:16 -0800 (Fri, 15 Jan 2016)
Log Message
Merge r193798 - Changing <video> src during 'ended' event can leave screen sleep disabled
https://bugs.webkit.org/show_bug.cgi?id=152018
Reviewed by Eric Carlson.
Resetting a HTMLMediaElement's src during 'ended' introduces a race condition: whether
the 'mediaPlayerRateChanged()' notification will fire before createMediaPlayer() destroys
the old MediaPlayer firing said notification.
To break the race condition, always update the sleep disabling assertion after destroying
the media player (by creating a new one).
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::createMediaPlayer):
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog (195110 => 195111)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-01-15 10:35:47 UTC (rev 195110)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-01-15 10:37:16 UTC (rev 195111)
@@ -1,3 +1,20 @@
+2015-12-08 Jer Noble <[email protected]>
+
+ Changing <video> src during 'ended' event can leave screen sleep disabled
+ https://bugs.webkit.org/show_bug.cgi?id=152018
+
+ Reviewed by Eric Carlson.
+
+ Resetting a HTMLMediaElement's src during 'ended' introduces a race condition: whether
+ the 'mediaPlayerRateChanged()' notification will fire before createMediaPlayer() destroys
+ the old MediaPlayer firing said notification.
+
+ To break the race condition, always update the sleep disabling assertion after destroying
+ the media player (by creating a new one).
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::createMediaPlayer):
+
2015-12-08 Zalan Bujtas <[email protected]>
Do not insert positioned renderers to multiple gPositionedDescendantsMap.
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/html/HTMLMediaElement.cpp (195110 => 195111)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/html/HTMLMediaElement.cpp 2016-01-15 10:35:47 UTC (rev 195110)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/html/HTMLMediaElement.cpp 2016-01-15 10:37:16 UTC (rev 195111)
@@ -5753,6 +5753,8 @@
enqueuePlaybackTargetAvailabilityChangedEvent(); // Ensure the event listener gets at least one event.
}
#endif
+
+ updateSleepDisabling();
}
#if ENABLE(WEB_AUDIO)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes