Title: [251460] trunk
- Revision
- 251460
- Author
- [email protected]
- Date
- 2019-10-22 14:49:22 -0700 (Tue, 22 Oct 2019)
Log Message
media/W3C/video/networkState/networkState_during_progress.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=76280
Reviewed by Eric Carlson.
The onprogress event must be received when networkState is
NETWORK_LOADING, make sure in the transition from loading to idle
that the progress event is fired synchronously, so that it is
received before the networkState changes to NETWORK_IDLE.
Source/WebCore:
Tested by media/W3C/video/networkState/networkState_during_progress.html
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::changeNetworkStateFromLoadingToIdle):
LayoutTests:
* TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/win/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (251459 => 251460)
--- trunk/LayoutTests/ChangeLog 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/LayoutTests/ChangeLog 2019-10-22 21:49:22 UTC (rev 251460)
@@ -1,3 +1,20 @@
+2019-10-22 Charlie Turner <[email protected]>
+
+ media/W3C/video/networkState/networkState_during_progress.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=76280
+
+ Reviewed by Eric Carlson.
+
+ The onprogress event must be received when networkState is
+ NETWORK_LOADING, make sure in the transition from loading to idle
+ that the progress event is fired synchronously, so that it is
+ received before the networkState changes to NETWORK_IDLE.
+
+ * TestExpectations:
+ * platform/gtk/TestExpectations:
+ * platform/mac/TestExpectations:
+ * platform/win/TestExpectations:
+
2019-10-22 Russell Epstein <[email protected]>
[ iOS ] Three editing/pasteboard/smart-paste-paragraph tests have been flaky since they landed in r243124 (203264)
Modified: trunk/LayoutTests/TestExpectations (251459 => 251460)
--- trunk/LayoutTests/TestExpectations 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/LayoutTests/TestExpectations 2019-10-22 21:49:22 UTC (rev 251460)
@@ -831,9 +831,6 @@
webkit.org/b/139862 editing/spelling/editing-multiple-words-with-markers.html [ Timeout Pass ]
webkit.org/b/139903 editing/spelling/grammar-paste.html [ Timeout Pass ]
-# media/W3C/video/networkState/networkState_during_progress.html is flaky
-webkit.org/b/76280 media/W3C/video/networkState/networkState_during_progress.html [ Pass Failure ]
-
# This test will run slowly in debug mode, but is plenty fast in release.
[ Debug ] js/slow-stress/emscripten-memops.html [ Skip ]
Modified: trunk/LayoutTests/platform/gtk/TestExpectations (251459 => 251460)
--- trunk/LayoutTests/platform/gtk/TestExpectations 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/LayoutTests/platform/gtk/TestExpectations 2019-10-22 21:49:22 UTC (rev 251460)
@@ -1566,8 +1566,6 @@
webkit.org/b/133000 js/slow-stress/call-spread.html [ Pass Timeout ]
webkit.org/b/133001 fast/workers/worker-context-gc.html [ Pass Timeout ]
-webkit.org/b/133865 media/W3C/video/networkState/networkState_during_progress.html [ Failure Pass ]
-
webkit.org/b/133869 media/video-seek-after-end.html [ Failure Pass ]
webkit.org/b/36642 fast/replaced/border-radius-clip.html [ Failure Pass ]
Modified: trunk/LayoutTests/platform/mac/TestExpectations (251459 => 251460)
--- trunk/LayoutTests/platform/mac/TestExpectations 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/LayoutTests/platform/mac/TestExpectations 2019-10-22 21:49:22 UTC (rev 251460)
@@ -781,7 +781,6 @@
## --- Start flaky media tests ---
webkit.org/b/34331 http/tests/media/video-referer.html [ Pass Timeout ]
webkit.org/b/35297 media/video-display-aspect-ratio.html [ Pass Failure ]
-webkit.org/b/82976 media/W3C/video/networkState/networkState_during_progress.html [ Pass Failure ]
webkit.org/b/85525 media/video-played-reset.html [ Pass Failure ]
webkit.org/b/112659 media/video-playing-and-pause.html [ Failure Timeout ]
webkit.org/b/114744 media/video-layer-crash.html [ Pass Timeout Failure ]
Modified: trunk/LayoutTests/platform/win/TestExpectations (251459 => 251460)
--- trunk/LayoutTests/platform/win/TestExpectations 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/LayoutTests/platform/win/TestExpectations 2019-10-22 21:49:22 UTC (rev 251460)
@@ -897,8 +897,6 @@
media/encrypted-media/encrypted-media-not-loaded.html [ Skip ] # [ WontFix ]
media/encrypted-media/encrypted-media-syntax.html [ Skip ] # [ WontFix ]
-webkit.org/b/103442 media/W3C/video/networkState/networkState_during_progress.html [ Skip ]
-
# No CORS support for media elements is implemented yet.
webkit.org/b/176626 http/tests/security/canvas-remote-read-remote-video-allowed-anonymous.html [ Crash Failure ]
webkit.org/b/176653 http/tests/security/canvas-remote-read-remote-video-allowed-with-credentials.html [ Crash Failure ]
Modified: trunk/Source/WebCore/ChangeLog (251459 => 251460)
--- trunk/Source/WebCore/ChangeLog 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/Source/WebCore/ChangeLog 2019-10-22 21:49:22 UTC (rev 251460)
@@ -1,3 +1,20 @@
+2019-10-22 Charlie Turner <[email protected]>
+
+ media/W3C/video/networkState/networkState_during_progress.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=76280
+
+ Reviewed by Eric Carlson.
+
+ The onprogress event must be received when networkState is
+ NETWORK_LOADING, make sure in the transition from loading to idle
+ that the progress event is fired synchronously, so that it is
+ received before the networkState changes to NETWORK_IDLE.
+
+ Tested by media/W3C/video/networkState/networkState_during_progress.html
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::changeNetworkStateFromLoadingToIdle):
+
2019-10-22 Peng Liu <[email protected]>
[Picture-in-Picture Web API] The implementation needs runtime logging
Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (251459 => 251460)
--- trunk/Source/WebCore/html/HTMLMediaElement.cpp 2019-10-22 21:28:42 UTC (rev 251459)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp 2019-10-22 21:49:22 UTC (rev 251460)
@@ -2370,11 +2370,16 @@
if (hasMediaControls() && m_player->didLoadingProgress())
mediaControls()->bufferingProgressed();
- // Schedule one last progress event so we guarantee that at least one is fired
- // for files that load very quickly.
- scheduleEvent(eventNames().progressEvent);
+ // Schedule one last *synchronous* progress event so we guarantee
+ // that at least one is fired for files that load very
+ // quickly. This must be synchronous since it's very easy for the
+ // async queue to dispatch this to JS after we set m_networkState
+ // to IDLE below, which breaks the invariant of onprogress
+ // happening during NETWORK_LOADING.
+ dispatchEvent(Event::create(eventNames().progressEvent, Event::CanBubble::No, Event::IsCancelable::Yes));
+
+ m_networkState = NETWORK_IDLE;
scheduleEvent(eventNames().suspendEvent);
- m_networkState = NETWORK_IDLE;
}
void HTMLMediaElement::mediaPlayerReadyStateChanged(MediaPlayer*)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes