WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170658
[WK2] Add infrastructure to perform actions after an asynchronous position information request finishes
https://bugs.webkit.org/show_bug.cgi?id=170658
Summary
[WK2] Add infrastructure to perform actions after an asynchronous position in...
Wenson Hsieh
Reported
2017-04-09 16:15:19 PDT
<
rdar://problem/31431450
>
Attachments
Patch
(15.63 KB, patch)
2017-04-09 16:48 PDT
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Try to fix OpenSource iOS build
(15.80 KB, patch)
2017-04-09 21:48 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Patch for landing
(15.75 KB, patch)
2017-04-09 22:43 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Additional tweaks to the test
(6.39 KB, patch)
2017-04-10 14:12 PDT
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for landing
(7.65 KB, patch)
2017-04-10 14:38 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2017-04-09 16:48:44 PDT
Created
attachment 306636
[details]
Patch
Tim Horton
Comment 2
2017-04-09 20:09:20 PDT
Comment on
attachment 306636
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=306636&action=review
Very cool.
> Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:374 > + EXPECT_LT([NSDate timeIntervalSinceReferenceDate] - startTime, 1);
Did this actually fail before? I thought the timeout was 500ms. Also I hope this isn't flaky on contended bots... we'll see.
Wenson Hsieh
Comment 3
2017-04-09 21:00:21 PDT
Thanks! (In reply to Tim Horton from
comment #2
)
> Comment on
attachment 306636
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=306636&action=review
> > Very cool. > > > Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:374 > > + EXPECT_LT([NSDate timeIntervalSinceReferenceDate] - startTime, 1); > > Did this actually fail before? I thought the timeout was 500ms. Also I hope > this isn't flaky on contended bots... we'll see.
Oh, interesting -- when I ran it locally before my change, I got 1s (+2ms or so), so I set it to this value as the threshold. I don't think this will be flaky, since very little work is now done when preparing for data interaction, but if many other tests are running simultaneously and this isn't getting any execution time, another better way to test this might be to add hooks in the web view configs to disable the responsiveness timer altogether before beginning to spin the WP, forcing this test to time out if it does make a sync request to the web process. I'll see how well the bots cope with this, and introduce some testing SPI with the above approach if I see any failures.
Wenson Hsieh
Comment 4
2017-04-09 21:48:01 PDT
Created
attachment 306648
[details]
Try to fix OpenSource iOS build
Wenson Hsieh
Comment 5
2017-04-09 22:43:02 PDT
Created
attachment 306658
[details]
Patch for landing
WebKit Commit Bot
Comment 6
2017-04-09 23:25:25 PDT
Comment on
attachment 306658
[details]
Patch for landing Clearing flags on attachment: 306658 Committed
r215171
: <
http://trac.webkit.org/changeset/215171
>
Wenson Hsieh
Comment 7
2017-04-10 14:12:02 PDT
Created
attachment 306740
[details]
Additional tweaks to the test
Wenson Hsieh
Comment 8
2017-04-10 14:38:56 PDT
Created
attachment 306743
[details]
Patch for landing
WebKit Commit Bot
Comment 9
2017-04-10 15:22:43 PDT
Comment on
attachment 306743
[details]
Patch for landing Clearing flags on attachment: 306743 Committed
r215207
: <
http://trac.webkit.org/changeset/215207
>
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