Title: [288462] trunk
- Revision
- 288462
- Author
- [email protected]
- Date
- 2022-01-24 13:11:01 -0800 (Mon, 24 Jan 2022)
Log Message
[ iOS Release ] fast/mediastream/mediaElement-gc.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=231601
<rdar://problem/84158942>
Reviewed by Eric Carlson.
Source/WebCore:
Covered by existing test.
* testing/Internals.cpp:
Looking at https://build.webkit.org/results/Apple-iOS-15-Simulator-Debug-WK2-Tests/r287831%20(1192)/fast/mediastream/mediaElement-gc-pretty-diff.html,
we can see the number of media elements is 2 while the test has created only 1 element.
We update Internals.mediaElementCount to only count elements of the current document
LayoutTests:
* fast/mediastream/mediaElement-gc.html: add more precise checks to get better error information if test continues to be flaky.
* platform/ios-wk2/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (288461 => 288462)
--- trunk/LayoutTests/ChangeLog 2022-01-24 20:33:52 UTC (rev 288461)
+++ trunk/LayoutTests/ChangeLog 2022-01-24 21:11:01 UTC (rev 288462)
@@ -1,3 +1,14 @@
+2022-01-24 Youenn Fablet <[email protected]>
+
+ [ iOS Release ] fast/mediastream/mediaElement-gc.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=231601
+ <rdar://problem/84158942>
+
+ Reviewed by Eric Carlson.
+
+ * fast/mediastream/mediaElement-gc.html: add more precise checks to get better error information if test continues to be flaky.
+ * platform/ios-wk2/TestExpectations:
+
2022-01-24 Simon Fraser <[email protected]>
Add pixel tolerance to some compositing tests
Modified: trunk/LayoutTests/fast/mediastream/mediaElement-gc.html (288461 => 288462)
--- trunk/LayoutTests/fast/mediastream/mediaElement-gc.html 2022-01-24 20:33:52 UTC (rev 288461)
+++ trunk/LayoutTests/fast/mediastream/mediaElement-gc.html 2022-01-24 21:11:01 UTC (rev 288462)
@@ -33,13 +33,17 @@
promise_test(async (test) => {
if (!window.internals)
return;
+ assert_equals(internals.mediaElementCount, 1, "test 1");
await createMediaElement(true);
let counter = 0;
- while (++counter < 100 && internals.mediaElementCount !== 1) {
+ while (++counter < 100) {
gc();
+ if (internals.mediaElementCount === 1)
+ break;
+ assert_equals(internals.mediaElementCount, 2, "test 2");
await new Promise(resolve => setTimeout(resolve, 50));
}
- assert_true(counter < 100);
+ assert_equals(internals.mediaElementCount, 1, "test 3");
}, "GC a video element with a live srcObject, then srcObject set to null");
</script>
</head>
Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (288461 => 288462)
--- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2022-01-24 20:33:52 UTC (rev 288461)
+++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2022-01-24 21:11:01 UTC (rev 288462)
@@ -1448,8 +1448,6 @@
webkit.org/b/231618 [ Release ] fast/mediastream/apply-constraints-video.html [ Pass Failure ]
-webkit.org/b/231601 [ Release ] fast/mediastream/mediaElement-gc.html [ Pass Failure ]
-
webkit.org/b/230012 media/modern-media-controls/media-documents/media-document-invalid.html [ Pass Crash ]
webkit.org/b/229810 fast/mediastream/get-display-media-capabilities.html [ Skip ]
Modified: trunk/Source/WebCore/ChangeLog (288461 => 288462)
--- trunk/Source/WebCore/ChangeLog 2022-01-24 20:33:52 UTC (rev 288461)
+++ trunk/Source/WebCore/ChangeLog 2022-01-24 21:11:01 UTC (rev 288462)
@@ -1,3 +1,18 @@
+2022-01-24 Youenn Fablet <[email protected]>
+
+ [ iOS Release ] fast/mediastream/mediaElement-gc.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=231601
+ <rdar://problem/84158942>
+
+ Reviewed by Eric Carlson.
+
+ Covered by existing test.
+
+ * testing/Internals.cpp:
+ Looking at https://build.webkit.org/results/Apple-iOS-15-Simulator-Debug-WK2-Tests/r287831%20(1192)/fast/mediastream/mediaElement-gc-pretty-diff.html,
+ we can see the number of media elements is 2 while the test has created only 1 element.
+ We update Internals.mediaElementCount to only count elements of the current document
+
2022-01-24 Antoine Quint <[email protected]>
Pass the Document through bindings to KeyframeEffect::setKeyframes()
Modified: trunk/Source/WebCore/testing/Internals.cpp (288461 => 288462)
--- trunk/Source/WebCore/testing/Internals.cpp 2022-01-24 20:33:52 UTC (rev 288461)
+++ trunk/Source/WebCore/testing/Internals.cpp 2022-01-24 21:11:01 UTC (rev 288462)
@@ -3931,7 +3931,17 @@
unsigned Internals::mediaElementCount()
{
- return HTMLMediaElement::allMediaElements().size();
+ Document* document = contextDocument();
+ if (!document)
+ return 0;
+
+ unsigned number = 0;
+ for (auto* mediaElement : HTMLMediaElement::allMediaElements()) {
+ if (&mediaElement->document() == document)
+ ++number;
+ }
+
+ return number;
}
Vector<String> Internals::mediaResponseSources(HTMLMediaElement& media)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes