RESOLVED FIXED 159526
Fix crash when sending failure message to closed WebProcess
https://bugs.webkit.org/show_bug.cgi?id=159526
Summary Fix crash when sending failure message to closed WebProcess
Alex Christensen
Reported 2016-07-07 15:22:20 PDT
Fix crash when sending failure message to closed WebProcess
Attachments
Patch (1.52 KB, patch)
2016-07-07 15:23 PDT, Alex Christensen
beidson: review+
Alex Christensen
Comment 1 2016-07-07 15:23:19 PDT
Brady Eidson
Comment 2 2016-07-07 15:28:24 PDT
Comment on attachment 283064 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283064&action=review Please explain how this could be testable if we had HTTP tests in TestWebKitAPI > Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:409 > + } else if (messageSenderConnection()) > + messageSenderConnection()->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0); } else if (auto* connection = messageSenderConnection()) connection->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0);
Alex Christensen
Comment 3 2016-07-07 15:43:34 PDT
Alex Christensen
Comment 4 2016-07-07 16:00:45 PDT
Chris Dumez
Comment 5 2016-07-13 14:57:38 PDT
Comment on attachment 283064 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283064&action=review >> Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:409 >> + messageSenderConnection()->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0); > > } else if (auto* connection = messageSenderConnection()) > connection->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0); I don't think messageSenderConnection() can return null unless |this| has been destroyed.
Chris Dumez
Comment 6 2016-07-13 15:02:17 PDT
Comment on attachment 283064 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283064&action=review >>> Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:409 >>> + messageSenderConnection()->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0); >> >> } else if (auto* connection = messageSenderConnection()) >> connection->send(Messages::WebResourceLoader::DidFailResourceLoad(error), 0, 0); > > I don't think messageSenderConnection() can return null unless |this| has been destroyed. My bet is that we were getting here with a destroyed NetworkResourceLoader because of https://bugs.webkit.org/show_bug.cgi?id=159691
Note You need to log in before you can comment on or make changes to this bug.