WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
182370
Fix race-condition in fast/forms/ios/ipad/select-form-run-twice.html
https://bugs.webkit.org/show_bug.cgi?id=182370
Summary
Fix race-condition in fast/forms/ios/ipad/select-form-run-twice.html
Jonathan Bedard
Reported
2018-01-31 18:24:58 PST
fast/forms/ios/ipad/select-form-run-twice.html should wait for it's promise to be fulfilled before finishing the test. If it does not, the subsequent test may crash.
Attachments
Patch
(2.26 KB, patch)
2018-01-31 18:34 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(6.27 KB, patch)
2018-02-01 16:46 PST
,
Megan Gardner
thorton
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2018-01-31 18:34:03 PST
Created
attachment 332830
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2018-01-31 18:34:21 PST
<
rdar://problem/37098169
>
Jonathan Bedard
Comment 3
2018-02-01 08:10:39 PST
Comment on
attachment 332830
[details]
Patch We need to go through and audit layout tests for outstanding promises when the test ends. I will not have time to do this thoroughly in the next few weeks, before I do the audit, I've asked the bot watchers to send me these sorts of test failures as they are found. This is another one of them.
Wenson Hsieh
Comment 4
2018-02-01 09:04:36 PST
Comment on
attachment 332830
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=332830&action=review
> LayoutTests/fast/forms/ios/ipad/select-form-run-twice.html:37 > + Promise.all(promises).then(function() {
`promises` is empty when we Promise.all here, so wouldn't this just resolve on the next runloop?
Jonathan Bedard
Comment 5
2018-02-01 09:10:26 PST
Comment on
attachment 332830
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=332830&action=review
>> LayoutTests/fast/forms/ios/ipad/select-form-run-twice.html:37 >> + Promise.all(promises).then(function() { > > `promises` is empty when we Promise.all here, so wouldn't this just resolve on the next runloop?
For some reason I had thought that the other js functions had run already, but you are correct. I'll re-work this change.
Megan Gardner
Comment 6
2018-02-01 16:46:58 PST
Created
attachment 332924
[details]
Patch
Tim Horton
Comment 7
2018-02-01 17:30:08 PST
Comment on
attachment 332924
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=332924&action=review
> LayoutTests/ChangeLog:8 > + Multiple potential button clicked, due to looping function calls can cause threads to be running in the next
I think you grammared here. Threads?
Megan Gardner
Comment 8
2018-02-01 18:14:09 PST
https://trac.webkit.org/r227992
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