WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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
<
rdar://problem/49078172
>
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
Created
attachment 365411
[details]
Patch
Daniel Bates
Comment 7
2019-03-20 15:48:11 PDT
Committed
r243248
: <
https://trac.webkit.org/changeset/243248
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug