Bug 187200 - Add utility methods to WebResourceLoadStatisticsStore to hop back and forth between threads
Summary: Add utility methods to WebResourceLoadStatisticsStore to hop back and forth b...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on: 187247
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-29 16:00 PDT by Chris Dumez
Modified: 2018-07-02 08:28 PDT (History)
8 users (show)

See Also:


Attachments
Patch (40.24 KB, patch)
2018-06-29 16:02 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews106 for mac-sierra-wk2 (1.57 MB, application/zip)
2018-06-29 16:51 PDT, EWS Watchlist
no flags Details
Patch (40.26 KB, patch)
2018-06-29 16:54 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2018-06-29 16:00:01 PDT
Add utility methods to WebResourceLoadStatisticsStore to hop back and forth between threads, in order the simplify the code a little bit.
Comment 1 Chris Dumez 2018-06-29 16:02:18 PDT
Created attachment 343962 [details]
Patch
Comment 2 Brent Fulgham 2018-06-29 16:30:59 PDT
Comment on attachment 343962 [details]
Patch

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

Looks much tidier! r=me.

> Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:86
>      ASSERT(RunLoop::isMain());

We can get rid of this ASSERT here, can't we?

> Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:96
>      ASSERT(RunLoop::isMain());

Ditto.

> Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:106
>      ASSERT(RunLoop::isMain());

Ditto.
Comment 3 Chris Dumez 2018-06-29 16:40:07 PDT
Comment on attachment 343962 [details]
Patch

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

>> Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp:86
>>      ASSERT(RunLoop::isMain());
> 
> We can get rid of this ASSERT here, can't we?

It is documenting, I kind of like them.
Comment 4 EWS Watchlist 2018-06-29 16:51:55 PDT
Comment on attachment 343962 [details]
Patch

Attachment 343962 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/8388725

Number of test failures exceeded the failure limit.
Comment 5 EWS Watchlist 2018-06-29 16:51:56 PDT
Created attachment 343971 [details]
Archive of layout-test-results from ews106 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 6 Chris Dumez 2018-06-29 16:54:20 PDT
Created attachment 343974 [details]
Patch
Comment 7 WebKit Commit Bot 2018-06-29 17:35:36 PDT
Comment on attachment 343974 [details]
Patch

Clearing flags on attachment: 343974

Committed r233381: <https://trac.webkit.org/changeset/233381>
Comment 8 WebKit Commit Bot 2018-06-29 17:35:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-07-02 08:27:39 PDT
<rdar://problem/41723818>