Skip to content

HTMLImageElement::finish_reacting_to_environment_change is swapping refs instead of the actual data #38777

@sagudev

Description

@sagudev

Per #36818 (comment) this code is probably wrong:

mem::swap(&mut this.current_request.borrow_mut(), &mut pending_request);

we are just swapping refs instead of actual content.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions