Replace CanGC note calls with arguments passed by callers (#33978)

Signed-off-by: Wulan Seruniati Salim <wulanseruniati@gmail.com>
Co-authored-by: Wulan Seruniati Salim <lauwwulan1806@gmail.com>
This commit is contained in:
Wulan Seruniati Salim 2024-10-24 05:19:20 +07:00 committed by GitHub
parent 9d75862c7d
commit 3ed778150f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -2280,7 +2280,7 @@ impl Window {
load_data.url.clone(),
replace,
));
doc.check_and_scroll_fragment(fragment, CanGc::note());
doc.check_and_scroll_fragment(fragment, can_gc);
let this = Trusted::new(self);
let old_url = doc.url().into_string();
let new_url = load_data.url.clone().into_string();