Title: [252290] tags/Safari-609.1.10.1
- Revision
- 252290
- Author
- [email protected]
- Date
- 2019-11-08 16:52:10 -0800 (Fri, 08 Nov 2019)
Log Message
Cherry-pick r252156. rdar://problem/55821375
Screen locks while watching previously-muted-then-unmuted video
https://bugs.webkit.org/show_bug.cgi?id=203906
<rdar://problem/55821375>
Reviewed by Eric Carlson.
Source/WebCore:
Test: media/video-unmuted-after-play-holds-sleep-assertion.html
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::setMuted):
LayoutTests:
* media/video-unmuted-after-play-holds-sleep-assertion-expected.txt: Added.
* media/video-unmuted-after-play-holds-sleep-assertion.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Added Paths
Diff
Modified: tags/Safari-609.1.10.1/LayoutTests/ChangeLog (252289 => 252290)
--- tags/Safari-609.1.10.1/LayoutTests/ChangeLog 2019-11-09 00:52:07 UTC (rev 252289)
+++ tags/Safari-609.1.10.1/LayoutTests/ChangeLog 2019-11-09 00:52:10 UTC (rev 252290)
@@ -1,5 +1,41 @@
2019-11-07 Alan Coon <[email protected]>
+ Cherry-pick r252156. rdar://problem/55821375
+
+ Screen locks while watching previously-muted-then-unmuted video
+ https://bugs.webkit.org/show_bug.cgi?id=203906
+ <rdar://problem/55821375>
+
+ Reviewed by Eric Carlson.
+
+ Source/WebCore:
+
+ Test: media/video-unmuted-after-play-holds-sleep-assertion.html
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::setMuted):
+
+ LayoutTests:
+
+ * media/video-unmuted-after-play-holds-sleep-assertion-expected.txt: Added.
+ * media/video-unmuted-after-play-holds-sleep-assertion.html: Added.
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-11-06 Jer Noble <[email protected]>
+
+ Screen locks while watching previously-muted-then-unmuted video
+ https://bugs.webkit.org/show_bug.cgi?id=203906
+ <rdar://problem/55821375>
+
+ Reviewed by Eric Carlson.
+
+ * media/video-unmuted-after-play-holds-sleep-assertion-expected.txt: Added.
+ * media/video-unmuted-after-play-holds-sleep-assertion.html: Added.
+
+2019-11-07 Alan Coon <[email protected]>
+
Cherry-pick r252146. rdar://problem/56425901
[ Mac Debug WK1 ] REGRESSION (r251262?): fast/scrolling/latching/scroll-select-bottom-test.html is a Flaky Failure
Added: tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion-expected.txt (0 => 252290)
--- tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion-expected.txt (rev 0)
+++ tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion-expected.txt 2019-11-09 00:52:10 UTC (rev 252290)
@@ -0,0 +1,11 @@
+
+RUN(video.src = "" "content/test"))
+EVENT(canplaythrough)
+RUN(video.play())
+EVENT(playing)
+EXPECTED (internals.elementIsBlockingDisplaySleep(video) == 'false') OK
+RUN(video.muted = false)
+EVENT(volumechange)
+EXPECTED (internals.elementIsBlockingDisplaySleep(video) == 'true') OK
+END OF TEST
+
Added: tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion.html (0 => 252290)
--- tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion.html (rev 0)
+++ tags/Safari-609.1.10.1/LayoutTests/media/video-unmuted-after-play-holds-sleep-assertion.html 2019-11-09 00:52:10 UTC (rev 252290)
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>video-muted-holds-sleep-assertion</title>
+ <script src=""
+ <script src=""
+ <script>
+ window.addEventListener('load', async event => {
+ findMediaElement();
+
+ run('video.src = "" "content/test")');
+ await waitFor(video, 'canplaythrough');
+
+ run('video.play()');
+ await waitFor(video, 'playing');
+
+ testExpected('internals.elementIsBlockingDisplaySleep(video)', false);
+ runWithKeyDown('video.muted = false');
+ await waitFor(video, 'volumechange');
+
+ testExpected('internals.elementIsBlockingDisplaySleep(video)', true);
+
+ endTest();
+ }, {once: true});
+ </script>
+</head>
+<body>
+ <video controls muted></video>
+</body>
+</html>
Modified: tags/Safari-609.1.10.1/Source/WebCore/ChangeLog (252289 => 252290)
--- tags/Safari-609.1.10.1/Source/WebCore/ChangeLog 2019-11-09 00:52:07 UTC (rev 252289)
+++ tags/Safari-609.1.10.1/Source/WebCore/ChangeLog 2019-11-09 00:52:10 UTC (rev 252290)
@@ -1,5 +1,43 @@
2019-11-07 Alan Coon <[email protected]>
+ Cherry-pick r252156. rdar://problem/55821375
+
+ Screen locks while watching previously-muted-then-unmuted video
+ https://bugs.webkit.org/show_bug.cgi?id=203906
+ <rdar://problem/55821375>
+
+ Reviewed by Eric Carlson.
+
+ Source/WebCore:
+
+ Test: media/video-unmuted-after-play-holds-sleep-assertion.html
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::setMuted):
+
+ LayoutTests:
+
+ * media/video-unmuted-after-play-holds-sleep-assertion-expected.txt: Added.
+ * media/video-unmuted-after-play-holds-sleep-assertion.html: Added.
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-11-06 Jer Noble <[email protected]>
+
+ Screen locks while watching previously-muted-then-unmuted video
+ https://bugs.webkit.org/show_bug.cgi?id=203906
+ <rdar://problem/55821375>
+
+ Reviewed by Eric Carlson.
+
+ Test: media/video-unmuted-after-play-holds-sleep-assertion.html
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::setMuted):
+
+2019-11-07 Alan Coon <[email protected]>
+
Cherry-pick r252077. rdar://problem/56891110
Adding logging to diagnose crashes resulting from provisional document loader unexpectedly being nullptr
Modified: tags/Safari-609.1.10.1/Source/WebCore/html/HTMLMediaElement.cpp (252289 => 252290)
--- tags/Safari-609.1.10.1/Source/WebCore/html/HTMLMediaElement.cpp 2019-11-09 00:52:07 UTC (rev 252289)
+++ tags/Safari-609.1.10.1/Source/WebCore/html/HTMLMediaElement.cpp 2019-11-09 00:52:10 UTC (rev 252290)
@@ -3817,6 +3817,7 @@
scheduleUpdateMediaState();
#endif
m_mediaSession->canProduceAudioChanged();
+ updateSleepDisabling();
}
schedulePlaybackControlsManagerUpdate();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes