Bug 203020 - WKWebsiteDataStoreStatisticsResetToConsistentState() should call store.setUseITPDatabase(false)
Summary: WKWebsiteDataStoreStatisticsResetToConsistentState() should call store.setUse...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kate Cheney
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-15 18:29 PDT by Kate Cheney
Modified: 2019-10-16 15:17 PDT (History)
5 users (show)

See Also:


Attachments
Patch (197.59 KB, patch)
2019-10-16 11:57 PDT, Kate Cheney
no flags Details | Formatted Diff | Diff
Patch (14.53 KB, patch)
2019-10-16 12:31 PDT, Kate Cheney
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kate Cheney 2019-10-15 18:29:53 PDT
WKWebsiteDataStoreStatisticsResetToConsistentState() should call store.setUseITPDatabase(false) between tests to keep consistent state
Comment 1 Kate Cheney 2019-10-15 18:30:14 PDT
<rdar://problem/56314484>
Comment 2 Kate Cheney 2019-10-16 11:57:16 PDT
Created attachment 381093 [details]
Patch
Comment 3 Chris Dumez 2019-10-16 12:02:27 PDT
Comment on attachment 381093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=381093&action=review

> Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp:1793
> +void TestRunner::setUseITPDatabase(bool value, JSValueRef completionHandler)

This does not need a completion handler. It can be synchronous from TestRunner's point of view. Layout test should not have to deal with this being async.

> Tools/WebKitTestRunner/TestController.cpp:3388
> +    m_currentInvocation->didSetUseITPDatabase();

No need. This is called on a sync IPC from the WebContent process so once the WKBundlePostSynchronousMessage() returns, the caller can assume the operation has finished, given the runUntil() call above.
Comment 4 Kate Cheney 2019-10-16 12:31:36 PDT
Created attachment 381098 [details]
Patch
Comment 5 Kate Cheney 2019-10-16 14:23:00 PDT
Thanks Chris! waiting to make sure all tests pass on the bots before asking for cq+
Comment 6 WebKit Commit Bot 2019-10-16 15:16:37 PDT
Comment on attachment 381098 [details]
Patch

Clearing flags on attachment: 381098

Committed r251212: <https://trac.webkit.org/changeset/251212>
Comment 7 WebKit Commit Bot 2019-10-16 15:16:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-10-16 15:17:18 PDT
<rdar://problem/56348972>