mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
dom: Append stream chunks in the correct order. (#33487)
* Append stream chunks in the correct order. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Run mimesniff tests in CI. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Delete tests/wpt/meta/mimesniff/media/media-sniff.window.js.ini Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
313fc663a6
commit
aa5bf94b35
5 changed files with 6563 additions and 2 deletions
|
@ -470,8 +470,7 @@ impl ExternalUnderlyingSourceController {
|
|||
fn enqueue_chunk(&self, cx: SafeJSContext, stream: HandleObject, mut chunk: Vec<u8>) {
|
||||
let available = {
|
||||
let mut buffer = self.buffer.borrow_mut();
|
||||
chunk.append(&mut buffer);
|
||||
*buffer = chunk;
|
||||
buffer.append(&mut chunk);
|
||||
buffer.len()
|
||||
};
|
||||
self.maybe_signal_available_bytes(cx, stream, available);
|
||||
|
|
2
tests/wpt/include.ini
vendored
2
tests/wpt/include.ini
vendored
|
@ -191,6 +191,8 @@ skip: true
|
|||
skip: false
|
||||
[mediasession]
|
||||
skip: false
|
||||
[mimesniff]
|
||||
skip: false
|
||||
[navigation-timing]
|
||||
skip: false
|
||||
[old-tests]
|
||||
|
|
48
tests/wpt/meta/mimesniff/mime-types/charset-parameter.window.js.ini
vendored
Normal file
48
tests/wpt/meta/mimesniff/mime-types/charset-parameter.window.js.ini
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
[charset-parameter.window.html]
|
||||
[text/html;x=(;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html ;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset= gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;test;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;test=;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;';charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;";charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html ; ; charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;;;;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset= ";charset=GBK]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset=";charset=foo";charset=GBK]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset="gbk]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset="\\ gbk"]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset="\\g\\b\\k"]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;charset="gbk"x]
|
||||
expected: FAIL
|
||||
|
||||
[text/html;test=ÿ;charset=gbk]
|
||||
expected: FAIL
|
6506
tests/wpt/meta/mimesniff/mime-types/parsing.any.js.ini
vendored
Normal file
6506
tests/wpt/meta/mimesniff/mime-types/parsing.any.js.ini
vendored
Normal file
File diff suppressed because it is too large
Load diff
6
tests/wpt/meta/mimesniff/sniffing/html.window.js.ini
vendored
Normal file
6
tests/wpt/meta/mimesniff/sniffing/html.window.js.ini
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[html.window.html]
|
||||
[HTML is not sniffed for a "feed": atom]
|
||||
expected: FAIL
|
||||
|
||||
[HTML is not sniffed for a "feed": rss]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue