RESOLVED FIXED 193236
Stop using NetworkStorageSession in WebProcess
https://bugs.webkit.org/show_bug.cgi?id=193236
Summary Stop using NetworkStorageSession in WebProcess
Alex Christensen
Reported 2019-01-08 08:06:31 PST
Stop using NetworkStorageSession in WebProcess
Attachments
Patch (28.61 KB, patch)
2019-01-08 08:07 PST, Alex Christensen
no flags
Patch (37.29 KB, patch)
2019-01-08 08:47 PST, Alex Christensen
no flags
Patch (38.84 KB, patch)
2019-01-08 09:15 PST, Alex Christensen
no flags
Patch (72.99 KB, patch)
2019-01-08 12:39 PST, Alex Christensen
don.olmstead: review+
Alex Christensen
Comment 1 2019-01-08 08:07:45 PST
EWS Watchlist
Comment 2 2019-01-08 08:10:36 PST
Attachment 358591 [details] did not pass style-queue: ERROR: Source/WebKitLegacy/mac/WebView/WebView.mm:3671: The parameter name "storageSession" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 3 2019-01-08 08:47:33 PST
EWS Watchlist
Comment 4 2019-01-08 08:50:38 PST
Attachment 358596 [details] did not pass style-queue: ERROR: Source/WebKitLegacy/mac/WebView/WebView.mm:3671: The parameter name "storageSession" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 5 2019-01-08 09:15:30 PST
Don Olmstead
Comment 6 2019-01-08 09:27:00 PST
Any other ports require any work for this?
Alex Christensen
Comment 7 2019-01-08 09:27:54 PST
(In reply to Don Olmstead from comment #6) > Any other ports require any work for this? I believe I already did this work for them.
Alex Christensen
Comment 8 2019-01-08 10:09:10 PST
Radar WebKit Bug Importer
Comment 9 2019-01-08 10:10:42 PST
Alex Christensen
Comment 10 2019-01-08 12:13:29 PST
Alex Christensen
Comment 11 2019-01-08 12:14:04 PST
Comment on attachment 358602 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358602&action=review > Source/WebCore/loader/CookieJar.cpp:57 > - return context ? context->storageSession() : NetworkStorageSession::defaultStorageSession(); > + return context ? *context->storageSession() : NetworkStorageSession::defaultStorageSession(); This was causing crashes like this: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [54915] VM Regions Near 0: --> __TEXT 0000000104339000-000000010433c000 [ 12K] r-x/rwx SM=COW /Users/USER/*/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent.Development Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.WebKit 0x0000000230294cfc WebCore::NetworkStorageSession::sessionID() const + 12 (NetworkStorageSession.h:87) 1 com.apple.WebKit 0x0000000230ee1d3b WebKit::WebPlatformStrategies::setCookiesFromDOM(WebCore::NetworkStorageSession const&, WTF::URL const&, WebCore::SameSiteInfo const&, WTF::URL const&, WTF::Optional<unsigned long long>, WTF::Optional<unsigned long long>, WTF::String const&) + 91 (WebPlatformStrategies.cpp:122) 2 com.apple.WebKit 0x0000000230ee1f4f non-virtual thunk to WebKit::WebPlatformStrategies::setCookiesFromDOM(WebCore::NetworkStorageSession const&, WTF::URL const&, WebCore::SameSiteInfo const&, WTF::URL const&, WTF::Optional<unsigned long long>, WTF::Optional<unsigned long long>, WTF::String const&) + 95 3 com.apple.WebCore 0x000000023a53227c WebCore::setCookies(WebCore::Document&, WTF::URL const&, WTF::String const&) + 300 (CookieJar.cpp:112) 4 com.apple.WebCore 0x0000000239c75365 WebCore::Document::setCookie(WTF::String const&) + 405 (Document.cpp:4801) 5 com.apple.WebCore 0x00000002382a21ce WebCore::setJSDocumentCookieSetter(JSC::ExecState&, WebCore::JSDocument&, JSC::JSValue, JSC::ThrowScope&)::'lambda'()::operator()() const + 62 (JSDocument.cpp:1357)
Alex Christensen
Comment 12 2019-01-08 12:39:29 PST
Alex Christensen
Comment 13 2019-01-08 12:49:52 PST
Alex Christensen
Comment 14 2019-01-09 16:12:40 PST
Note You need to log in before you can comment on or make changes to this bug.