Bug 204472 - Simplify VisitedLinkStore process registration logic
Summary: Simplify VisitedLinkStore process registration logic
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:
Blocks:
 
Reported: 2019-11-21 14:03 PST by Chris Dumez
Modified: 2019-11-22 15:53 PST (History)
6 users (show)

See Also:


Attachments
Patch (7.51 KB, patch)
2019-11-21 14:06 PST, 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 2019-11-21 14:03:00 PST
Simplify VisitedLinkStore process registration logic.
Comment 1 Chris Dumez 2019-11-21 14:06:31 PST
Created attachment 384089 [details]
Patch
Comment 2 youenn fablet 2019-11-22 10:19:28 PST
Comment on attachment 384089 [details]
Patch

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

> Source/WebKit/UIProcess/WebProcessProxy.cpp:-386
> -    m_visitedLinkStoresWithUsers.clear();

This means the visitedLinkStore will keep shutdown but still existing processes.
Can this create some changes of behavior?
Comment 3 Geoffrey Garen 2019-11-22 14:34:52 PST
Comment on attachment 384089 [details]
Patch

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

r=me

> Source/WebKit/UIProcess/VisitedLinkStore.cpp:46
> +    RELEASE_ASSERT(m_processes.computesEmpty());

FWIW, I think this function was supposed to be named computeIsEmpty().

>> Source/WebKit/UIProcess/WebProcessProxy.cpp:-386
>> -    m_visitedLinkStoresWithUsers.clear();
> 
> This means the visitedLinkStore will keep shutdown but still existing processes.
> Can this create some changes of behavior?

Interesting point -- but I can't think of any consequence. We might try to send a message to shut a process -- and then the message should be dropped.
Comment 4 Chris Dumez 2019-11-22 14:40:49 PST
(In reply to youenn fablet from comment #2)
> Comment on attachment 384089 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=384089&action=review
> 
> > Source/WebKit/UIProcess/WebProcessProxy.cpp:-386
> > -    m_visitedLinkStoresWithUsers.clear();
> 
> This means the visitedLinkStore will keep shutdown but still existing
> processes.
> Can this create some changes of behavior?

This is explained in the change log. It does not matter because IPC send() is a no-op for processes that are no longer running. So the VisitedLinkStore may now try to send IPC to processes that are no longer running but it will not matter.
Comment 5 Chris Dumez 2019-11-22 15:52:21 PST
Comment on attachment 384089 [details]
Patch

Clearing flags on attachment: 384089

Committed r252812: <https://trac.webkit.org/changeset/252812>
Comment 6 Chris Dumez 2019-11-22 15:52:22 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2019-11-22 15:53:25 PST
<rdar://problem/57444053>