summaryrefslogtreecommitdiffstats
path: root/webkit/blob/blob_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/blob/blob_data.cc')
-rw-r--r--webkit/blob/blob_data.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/blob/blob_data.cc b/webkit/blob/blob_data.cc
index d72750e..4afcf8a 100644
--- a/webkit/blob/blob_data.cc
+++ b/webkit/blob/blob_data.cc
@@ -33,8 +33,11 @@ BlobData::BlobData(const WebBlobData& data) {
while (data.itemAt(i++, item)) {
switch (item.type) {
case WebBlobData::Item::TypeData:
- if (!item.data.isEmpty())
+ if (!item.data.isEmpty()) {
+ // WebBlobData does not allow partial data.
+ DCHECK(!item.offset && item.length == -1);
AppendData(item.data);
+ }
break;
case WebBlobData::Item::TypeFile:
AppendFile(