+2017-08-15 Youenn Fablet <youenn@apple.com>
+
+ [Cache API] Ensure ResourceResponse is not null when redirected/tainting/type fields are set
+ https://bugs.webkit.org/show_bug.cgi?id=175538
+
+ Reviewed by Chris Dumez.
+
+ No change of behavior.
+ This change ensures that response type is preserved when encoding/decoding ResourceResponse, in particular the error type.
+ This will allow Cache API to preserve responses when reading them from a different process.
+
+ * platform/network/ResourceResponseBase.cpp:
+ (WebCore::ResourceResponseBase::setType):
+ * platform/network/ResourceResponseBase.h:
+ (WebCore::ResourceResponseBase::setType):
+
2017-08-15 Chris Dumez <cdumez@apple.com>
Update CachedResourceLoader::requestResource() to return a WTF::Expected
return 1280;
}
+ void setType(Type);
Type type() const { return m_type; }
- void setType(Type type) { m_type = type; }
- bool isRedirected() const { return m_isRedirected; }
+
void setRedirected(bool isRedirected) { m_isRedirected = isRedirected; }
+ bool isRedirected() const { return m_isRedirected; }
void setTainting(Tainting tainting) { m_tainting = tainting; }
Tainting tainting() const { return m_tainting; }