RESOLVED FIXED 192970
[curl] Move cookiePersistentStorageFile from NetworkProcessCreationParameters to NetworkSessionCreationParameters
https://bugs.webkit.org/show_bug.cgi?id=192970
Summary [curl] Move cookiePersistentStorageFile from NetworkProcessCreationParameters...
Fujii Hironori
Reported 2018-12-20 19:14:13 PST
[curl] Move cookiePersistentStorageFile from NetworkProcessCreationParameters to NetworkSessionCreationParameters [webkit-dev] Reducing globals https://lists.webkit.org/pipermail/webkit-dev/2018-December/030267.html
Attachments
Patch (7.59 KB, patch)
2018-12-20 20:00 PST, Fujii Hironori
no flags
WIP Patch (9.44 KB, patch)
2018-12-24 19:54 PST, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2018-12-20 20:00:45 PST
Alex Christensen
Comment 2 2018-12-21 09:44:38 PST
Comment on attachment 357921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357921&action=review r=me. Thanks > Source/WebKit/NetworkProcess/curl/NetworkSessionCurl.cpp:43 > + NetworkProcess::singleton().supplement<WebCookieManager>()->setCookiePersistentStorage(parameters.cookiePersistentStorageFile); This is a great step in the right direction. Thanks! The next step would be to stop using the NetworkProcess::singleton() for this.
Alex Christensen
Comment 3 2018-12-21 10:17:00 PST
Comment on attachment 357921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357921&action=review >> Source/WebKit/NetworkProcess/curl/NetworkSessionCurl.cpp:43 >> + NetworkProcess::singleton().supplement<WebCookieManager>()->setCookiePersistentStorage(parameters.cookiePersistentStorageFile); > > This is a great step in the right direction. Thanks! The next step would be to stop using the NetworkProcess::singleton() for this. Instead, this should probably be a member of the NetworkSessionCurl or even better, the NetworkStorageSession.
Fujii Hironori
Comment 4 2018-12-24 19:32:27 PST
Comment on attachment 357921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357921&action=review Thank you for the review. >>> Source/WebKit/NetworkProcess/curl/NetworkSessionCurl.cpp:43 >>> + NetworkProcess::singleton().supplement<WebCookieManager>()->setCookiePersistentStorage(parameters.cookiePersistentStorageFile); >> >> This is a great step in the right direction. Thanks! The next step would be to stop using the NetworkProcess::singleton() for this. > > Instead, this should probably be a member of the NetworkSessionCurl or even better, the NetworkStorageSession. I get the idea. I will revise this patch.
Fujii Hironori
Comment 5 2018-12-24 19:49:49 PST
Fujii Hironori
Comment 6 2018-12-24 19:54:15 PST
Created attachment 358051 [details] WIP Patch
Alex Christensen
Comment 7 2019-01-03 09:45:49 PST
Comment on attachment 358051 [details] WIP Patch Looks good to me.
WebKit Commit Bot
Comment 8 2019-01-04 11:07:23 PST
Comment on attachment 358051 [details] WIP Patch Clearing flags on attachment: 358051 Committed r239624: <https://trac.webkit.org/changeset/239624>
WebKit Commit Bot
Comment 9 2019-01-04 11:07:25 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10 2019-01-04 11:08:49 PST
Note You need to log in before you can comment on or make changes to this bug.