Bug 175538 - [Cache API] Ensure ResourceResponse is not null when redirected/tainting/type fields are set
Summary: [Cache API] Ensure ResourceResponse is not null when redirected/tainting/type...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-14 10:06 PDT by youenn fablet
Modified: 2017-08-15 15:39 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.25 KB, patch)
2017-08-14 10:10 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (2.61 KB, patch)
2017-08-15 14:58 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2017-08-14 10:06:52 PDT
[Cache API] Ensure ResourceResponse is not null when redirected/tainting/type fields are set
Comment 1 youenn fablet 2017-08-14 10:10:24 PDT
Created attachment 318046 [details]
Patch
Comment 2 Chris Dumez 2017-08-14 16:19:36 PDT
Comment on attachment 318046 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=318046&action=review

> Source/WebCore/platform/network/ResourceResponseBase.cpp:237
> +    lazyInit(CommonFieldsOnly);

I don't think this is needed since m_type is not used to initialize the underlying network object. m_type is a Webkit concept at this point, not an underlying network layer concept.

> Source/WebCore/platform/network/ResourceResponseBase.cpp:242
> +void ResourceResponseBase::setRedirected(bool isRedirected)

Is this one really needed? I'd expect such responses to have a URL.

> Source/WebCore/platform/network/ResourceResponseBase.cpp:249
> +void ResourceResponseBase::setTainting(Tainting tainting)

Is this one really needed? I'd expect such responses to have a URL.
Comment 3 youenn fablet 2017-08-15 14:58:35 PDT
Created attachment 318178 [details]
Patch
Comment 4 WebKit Commit Bot 2017-08-15 15:38:28 PDT
Comment on attachment 318178 [details]
Patch

Clearing flags on attachment: 318178

Committed r220764: <http://trac.webkit.org/changeset/220764>
Comment 5 WebKit Commit Bot 2017-08-15 15:38:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2017-08-15 15:39:45 PDT
<rdar://problem/33906142>