mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
CanGc fixes in several files (#33958)
* few cangc fixes Signed-off-by: L Ashwin B <lashwinib@gmail.com> * few cangc fixes Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
1bf68567b8
commit
ebfea9b352
22 changed files with 170 additions and 129 deletions
|
@ -1025,7 +1025,7 @@ unsafe extern "C" fn consume_stream(
|
|||
root_from_handleobject::<Response>(RustHandleObject::from_raw(obj), *cx)
|
||||
{
|
||||
//Step 2.2 Let mimeType be the result of extracting a MIME type from response’s header list.
|
||||
let mimetype = unwrapped_source.Headers().extract_mime_type();
|
||||
let mimetype = unwrapped_source.Headers(CanGc::note()).extract_mime_type();
|
||||
|
||||
//Step 2.3 If mimeType is not `application/wasm`, return with a TypeError and abort these substeps.
|
||||
if !&mimetype[..].eq_ignore_ascii_case(b"application/wasm") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue