mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Propagate CanGc when interacting with readable streams. (#33975)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
f553bda7eb
commit
12e6ec25aa
10 changed files with 80 additions and 57 deletions
|
@ -870,6 +870,7 @@ impl HTMLFormElement {
|
|||
enctype,
|
||||
encoding,
|
||||
target_window,
|
||||
can_gc,
|
||||
);
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#submit-get-action
|
||||
|
@ -920,6 +921,7 @@ impl HTMLFormElement {
|
|||
enctype: FormEncType,
|
||||
encoding: &'static Encoding,
|
||||
target: &Window,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
let boundary = generate_boundary();
|
||||
let bytes = match enctype {
|
||||
|
@ -957,7 +959,7 @@ impl HTMLFormElement {
|
|||
let global = self.global();
|
||||
|
||||
let request_body = bytes
|
||||
.extract(&global)
|
||||
.extract(&global, can_gc)
|
||||
.expect("Couldn't extract body.")
|
||||
.into_net_request_body()
|
||||
.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue