Changeset 168201 in webkit
- Timestamp:
- May 2, 2014, 3:41:24 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r168199 r168201 1 2014-05-02 Alexey Proskuryakov <ap@apple.com> 2 3 Remove Blob contentDisposition handling 4 https://bugs.webkit.org/show_bug.cgi?id=132490 5 6 Reviewed by Sam Weinig. 7 8 Dead code. 9 10 * platform/network/BlobData.h: 11 (WebCore::BlobData::contentDisposition): Deleted. 12 (WebCore::BlobData::setContentDisposition): Deleted. 13 * platform/network/BlobRegistryImpl.cpp: 14 (WebCore::BlobRegistryImpl::registerBlobURL): 15 (WebCore::BlobRegistryImpl::registerBlobURLForSlice): 16 * platform/network/BlobResourceHandle.cpp: 17 (WebCore::BlobResourceHandle::notifyResponseOnSuccess): 18 * platform/network/BlobStorageData.h: 19 (WebCore::BlobStorageData::create): 20 (WebCore::BlobStorageData::contentType): 21 (WebCore::BlobStorageData::BlobStorageData): 22 (WebCore::BlobStorageData::contentDisposition): Deleted. 23 1 24 2014-05-02 Anders Carlsson <andersca@apple.com> 2 25 -
trunk/Source/WebCore/platform/network/BlobData.h
r168032 r168201 168 168 void setContentType(const String&); 169 169 170 const String& contentDisposition() const { return m_contentDisposition; }171 void setContentDisposition(const String& contentDisposition) { m_contentDisposition = contentDisposition; }172 173 170 const BlobDataItemList& items() const { return m_items; } 174 171 void swapItems(BlobDataItemList&); -
trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp
r168126 r168201 122 122 registerBlobResourceHandleConstructor(); 123 123 124 RefPtr<BlobStorageData> blobStorageData = BlobStorageData::create(blobData->contentType() , blobData->contentDisposition());124 RefPtr<BlobStorageData> blobStorageData = BlobStorageData::create(blobData->contentType()); 125 125 126 126 // The blob data is stored in the "canonical" way. That is, it only contains a list of Data and File items. … … 209 209 210 210 unsigned long long newLength = end - start; 211 RefPtr<BlobStorageData> newStorageData = BlobStorageData::create(originalStorageData->contentType() , originalStorageData->contentDisposition());211 RefPtr<BlobStorageData> newStorageData = BlobStorageData::create(originalStorageData->contentType()); 212 212 213 213 appendStorageItems(newStorageData.get(), originalStorageData->items(), start, newLength); -
trunk/Source/WebCore/platform/network/BlobResourceHandle.cpp
r162139 r168201 583 583 response.setHTTPStatusCode(isRangeRequest ? httpPartialContent : httpOK); 584 584 response.setHTTPStatusText(isRangeRequest ? httpPartialContentText : httpOKText); 585 if (!m_blobData->contentDisposition().isEmpty()) 586 response.setHTTPHeaderField("Content-Disposition", m_blobData->contentDisposition()); 585 // FIXME: If a resource identified with a blob: URL is a File object, user agents must use that file's name attribute, 586 // as if the response had a Content-Disposition header with the filename parameter set to the File's name attribute. 587 // Notably, this will affect a name suggested in "File Save As". 587 588 588 589 // BlobResourceHandle cannot be used with downloading, and doesn't even wait for continueDidReceiveResponse. -
trunk/Source/WebCore/platform/network/BlobStorageData.h
r144372 r168201 40 40 class BlobStorageData : public RefCounted<BlobStorageData> { 41 41 public: 42 static PassRefPtr<BlobStorageData> create(const String& contentType , const String& contentDisposition)42 static PassRefPtr<BlobStorageData> create(const String& contentType) 43 43 { 44 return adoptRef(new BlobStorageData(contentType , contentDisposition));44 return adoptRef(new BlobStorageData(contentType)); 45 45 } 46 46 47 47 const String& contentType() const { return m_data.contentType(); } 48 const String& contentDisposition() const { return m_data.contentDisposition(); }49 48 const BlobDataItemList& items() const { return m_data.items(); } 50 49 … … 52 51 friend class BlobRegistryImpl; 53 52 54 BlobStorageData(const String& contentType , const String& contentDisposition)53 BlobStorageData(const String& contentType) 55 54 { 56 55 m_data.setContentType(contentType); 57 m_data.setContentDisposition(contentDisposition);58 56 } 59 57 -
trunk/Source/WebKit2/ChangeLog
r168196 r168201 1 2014-05-02 Alexey Proskuryakov <ap@apple.com> 2 3 Remove Blob contentDisposition handling 4 https://bugs.webkit.org/show_bug.cgi?id=132490 5 6 Reviewed by Sam Weinig. 7 8 * Shared/FileAPI/BlobRegistrationData.cpp: 9 (WebKit::BlobRegistrationData::encode): 10 (WebKit::BlobRegistrationData::decode): 11 1 12 2014-05-02 Benjamin Poulain <benjamin@webkit.org> 2 13 -
trunk/Source/WebKit2/Shared/FileAPI/BlobRegistrationData.cpp
r168032 r168201 74 74 { 75 75 encoder << m_data->contentType(); 76 encoder << m_data->contentDisposition();77 76 78 77 const BlobDataItemList& items = m_data->items(); … … 114 113 return false; 115 114 result.m_data->setContentType(contentType); 116 117 String contentDisposition;118 if (!decoder.decode(contentDisposition))119 return false;120 result.m_data->setContentDisposition(contentDisposition);121 115 122 116 uint64_t itemCount;
Note:
See TracChangeset
for help on using the changeset viewer.