RESOLVED FIXED 196031
REGRESSION (r243153): [iPhone] TestWebKitAPI.FocusPreservationTests.ChangingFocusedNodeResetsFocusPreservationState is failing
https://bugs.webkit.org/show_bug.cgi?id=196031
Summary REGRESSION (r243153): [iPhone] TestWebKitAPI.FocusPreservationTests.ChangingF...
Ryan Haddad
Reported 2019-03-20 13:56:49 PDT
The following API test is failing on iOS bots: TestWebKitAPI.FocusPreservationTests.ChangingFocusedNodeResetsFocusPreservationState /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/ios/FocusPreservationTests.mm:100 Value of: [webView stringByEvaluatingJavaScript:@"document.activeElement == document.querySelector('select')"].boolValue Actual: true Expected: false https://build.webkit.org/builders/Apple%20iOS%2012%20Simulator%20Release%20WK2%20%28Tests%29/builds/3212/steps/run-api-tests/logs/stdio
Attachments
Patch (1.96 KB, patch)
2019-03-20 15:28 PDT, Daniel Bates
thorton: review+
Ryan Haddad
Comment 1 2019-03-20 13:57:45 PDT
This appears to have started with: "[iOS] Focus not preserved when switching between tabs" https://trac.webkit.org/changeset/243153/webkit Dan, would you please take a look?
Radar WebKit Bug Importer
Comment 2 2019-03-20 14:13:29 PDT
Daniel Bates
Comment 3 2019-03-20 14:36:19 PDT
(In reply to Ryan Haddad from comment #0) > The following API test is failing on iOS bots: > > > TestWebKitAPI.FocusPreservationTests. > ChangingFocusedNodeResetsFocusPreservationState > > > /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/ > ios/FocusPreservationTests.mm:100 > Value of: [webView > stringByEvaluatingJavaScript:@"document.activeElement == > document.querySelector('select')"].boolValue > Actual: true > Expected: false > > https://build.webkit.org/builders/ > Apple%20iOS%2012%20Simulator%20Release%20WK2%20%28Tests%29/builds/3212/steps/ > run-api-tests/logs/stdio Progression. Will update test.
Daniel Bates
Comment 4 2019-03-20 14:47:17 PDT
(In reply to Daniel Bates from comment #3) > (In reply to Ryan Haddad from comment #0) > > The following API test is failing on iOS bots: > > > > > > TestWebKitAPI.FocusPreservationTests. > > ChangingFocusedNodeResetsFocusPreservationState > > > > > > /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/ > > ios/FocusPreservationTests.mm:100 > > Value of: [webView > > stringByEvaluatingJavaScript:@"document.activeElement == > > document.querySelector('select')"].boolValue > > Actual: true > > Expected: false > > > > https://build.webkit.org/builders/ > > Apple%20iOS%2012%20Simulator%20Release%20WK2%20%28Tests%29/builds/3212/steps/ > > run-api-tests/logs/stdio > > Progression. Will update test. This would be a progression on iPad, but these tests are run using an iPhone I think so this is a regression.
Daniel Bates
Comment 5 2019-03-20 14:59:47 PDT
Test needs to be updated. It was written with blackbox knowledge of the fact that -[WKWebView resignFirstResponder] is what is called when the <select> picker is dismissed when the Done button is pressed. The test wants to press the Done button, but does it in an indirect way. Need to fix test to do what it actually wants to do.
Daniel Bates
Comment 6 2019-03-20 15:28:38 PDT
Daniel Bates
Comment 7 2019-03-20 15:48:11 PDT
Note You need to log in before you can comment on or make changes to this bug.