WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
204472
Simplify VisitedLinkStore process registration logic
https://bugs.webkit.org/show_bug.cgi?id=204472
Summary
Simplify VisitedLinkStore process registration logic
Chris Dumez
Reported
2019-11-21 14:03:00 PST
Simplify VisitedLinkStore process registration logic.
Attachments
Patch
(7.51 KB, patch)
2019-11-21 14:06 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-11-21 14:06:31 PST
Created
attachment 384089
[details]
Patch
youenn fablet
Comment 2
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?
Geoffrey Garen
Comment 3
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.
Chris Dumez
Comment 4
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.
Chris Dumez
Comment 5
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
>
Chris Dumez
Comment 6
2019-11-22 15:52:22 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2019-11-22 15:53:25 PST
<
rdar://problem/57444053
>
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