WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2016-07-07 15:23:19 PDT
Created
attachment 283064
[details]
Patch
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
https://trac.webkit.org/changeset/202939
Alex Christensen
Comment 4
2016-07-07 16:00:45 PDT
Followed up in
https://trac.webkit.org/changeset/202940
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.
Top of Page
Format For Printing
XML
Clone This Bug