Skip to content

script: propagate &mut JSContext in Extractable::extract#44531

Merged
sagudev merged 1 commit into
servo:mainfrom
elomscansio:port-Extractable-extract
Apr 27, 2026
Merged

script: propagate &mut JSContext in Extractable::extract#44531
sagudev merged 1 commit into
servo:mainfrom
elomscansio:port-Extractable-extract

Conversation

@elomscansio

Copy link
Copy Markdown
Contributor

Propagate &mut JSContext in Extractable::extract and related call sites.

Testing: Successful build is enough
Fixes: Part of #42638

Opened to reduces the complexity of #44254

Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
@elomscansio elomscansio requested a review from gterzian as a code owner April 27, 2026 09:01
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 27, 2026
Comment on lines 93 to 98
fn new_with_proto(
global: &GlobalScope,
proto: Option<HandleObject>,
can_gc: CanGc,
) -> DomRoot<Response> {
reflect_dom_object_with_proto(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cx: &mut js::context::JSContext,
data: Option<DocumentOrXMLHttpRequestBodyInit>,
) -> ErrorResult {
let can_gc = CanGc::from_cx(cx);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, this should not exists as all CanGc::from_cx(cx) needs to be inlined. Anyway this is not your fault, but it is a good follow up.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 27, 2026
@sagudev sagudev added this pull request to the merge queue Apr 27, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 27, 2026
Merged via the queue into servo:main with commit c9994b2 Apr 27, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants