Commit 06348726 authored by eustas@chromium.org's avatar eustas@chromium.org

Avoid (theorethical) NPE.

All forwarded methods, expect didReceiveResponse, contains m_client check.

Added check to didReceiveResponse for consistency.

BUG=356654

Review URL: https://codereview.chromium.org/213383008

git-svn-id: svn://svn.chromium.org/blink/trunk@170279 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 21d9f621
......@@ -201,6 +201,9 @@ void AssociatedURLLoader::ClientAdapter::didSendData(unsigned long long bytesSen
void AssociatedURLLoader::ClientAdapter::didReceiveResponse(unsigned long, const ResourceResponse& response)
{
if (!m_client)
return;
// Try to use the original ResourceResponse if possible.
WebURLResponse validatedResponse = WrappedResourceResponse(response);
HTTPResponseHeaderValidator validator(m_options.crossOriginRequestPolicy == WebURLLoaderOptions::CrossOriginRequestPolicyUseAccessControl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment