Bug 165590 - REGRESSION (r209490): [ios-simulator] LayoutTest fast/shadow-dom/media-shadow-manipulation.html is failing
Summary: REGRESSION (r209490): [ios-simulator] LayoutTest fast/shadow-dom/media-shadow...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 21:15 PST by Ryan Haddad
Modified: 2016-12-08 08:18 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2016-12-07 21:15:57 PST
LayoutTest fast/shadow-dom/media-shadow-manipulation.html is failing

https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/r209515%20(2211)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fshadow-dom%2Fmedia-shadow-manipulation.html

--- /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/fast/shadow-dom/media-shadow-manipulation-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/fast/shadow-dom/media-shadow-manipulation-actual.txt
@@ -1,5 +1,6 @@
-PASS bounds = video_element.getBoundingClientRect(); document.caretRangeFromPoint(bounds.left + 10, bounds.bottom - 10) is null
+FAIL bounds = video_element.getBoundingClientRect(); document.caretRangeFromPoint(bounds.left + 10, bounds.bottom - 10) should be null. Was .
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
Comment 1 Ryan Haddad 2016-12-07 21:16:09 PST
Started with https://trac.webkit.org/changeset/209490
Comment 2 Alexey Proskuryakov 2016-12-07 22:56:55 PST
Just noticed iOS EWS falling behind others because of this test failing.
Comment 3 Ryosuke Niwa 2016-12-07 23:18:50 PST
Ugh… we need to do more tweaking on this test :(

Brent, what do you think about just deleting these tests?  These tests aren’t doing anything useful after r209486.

Alternatively we can just use internals.shadowRoot to get the shadow root directly.
Comment 4 Ryosuke Niwa 2016-12-08 00:05:06 PST
It looks like this test wasn’t working even prior to my patch. The reason test is failing appears to stems from the video element being implemented differently on iOS and Mac.

I really think the best approach here is to delete the test but I’d revert my change and the check conditional for now.
Comment 5 Ryosuke Niwa 2016-12-08 00:11:04 PST
I fixed the test in https://trac.webkit.org/changeset/209529 for now but we should really just remove these tests.

e.g. if we make this test use internals.shadowRoot, then it’s gonna hit the assertion in RenderImage.cpp we just added in https://trac.webkit.org/changeset/209431/trunk/Source/WebCore/rendering/RenderImage.cpp

And this assertion is valid. Nobody should be inserting more than one mode as a direct child inside a media element’s shadow tree.  So I don’t know how we’d make this test work without hitting any assertion.
Comment 6 Brent Fulgham 2016-12-08 08:18:22 PST
(In reply to comment #5)
> I fixed the test in https://trac.webkit.org/changeset/209529 for now but we
> should really just remove these tests.
> 
> e.g. if we make this test use internals.shadowRoot, then it’s gonna hit the
> assertion in RenderImage.cpp we just added in
> https://trac.webkit.org/changeset/209431/trunk/Source/WebCore/rendering/
> RenderImage.cpp
> 
> And this assertion is valid. Nobody should be inserting more than one mode
> as a direct child inside a media element’s shadow tree.  So I don’t know how
> we’d make this test work without hitting any assertion.

I'm fine with removing the test now that you've fixed the underlying issue.