mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
CanGc fixes from constantsourcenode.rs & window.rs (#33931)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
c75f6627ba
commit
4d11b2dc84
15 changed files with 216 additions and 156 deletions
|
@ -21,6 +21,7 @@ use crate::dom::htmlformelement::HTMLFormElement;
|
|||
use crate::dom::htmllinkelement::HTMLLinkElement;
|
||||
use crate::dom::node::document_from_node;
|
||||
use crate::dom::types::{Element, GlobalScope};
|
||||
use crate::script_runtime::CanGc;
|
||||
use crate::task_source::TaskSource;
|
||||
|
||||
bitflags::bitflags! {
|
||||
|
@ -432,7 +433,7 @@ pub fn follow_hyperlink(
|
|||
let target = Trusted::new(target_window);
|
||||
let task = task!(navigate_follow_hyperlink: move || {
|
||||
debug!("following hyperlink to {}", load_data.url);
|
||||
target.root().load_url(replace, false, load_data);
|
||||
target.root().load_url(replace, false, load_data, CanGc::note());
|
||||
});
|
||||
target_window
|
||||
.task_manager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue