mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Propagate CanGc
from Document::new()
(#33386)
* Add canGc as a parameter to autogenerated trait methods Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com> * Propagate CanGc from Document::new() Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com> --------- Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
This commit is contained in:
parent
10e5bb72d9
commit
e5150dbda1
41 changed files with 704 additions and 393 deletions
|
@ -72,7 +72,7 @@ use crate::dom::window::Window;
|
|||
use crate::dom::worker::TrustedWorkerAddress;
|
||||
use crate::network_listener::{self, NetworkListener, PreInvoke, ResourceTimingListener};
|
||||
use crate::realms::{enter_realm, AlreadyInRealm, InRealm};
|
||||
use crate::script_runtime::JSContext as SafeJSContext;
|
||||
use crate::script_runtime::{CanGc, JSContext as SafeJSContext};
|
||||
use crate::task::TaskBox;
|
||||
use crate::task_source::TaskSourceName;
|
||||
|
||||
|
@ -1091,7 +1091,7 @@ impl FetchResponseListener for ModuleContext {
|
|||
if let Some(window) = global.downcast::<Window>() {
|
||||
window
|
||||
.Document()
|
||||
.finish_load(LoadType::Script(self.url.clone()));
|
||||
.finish_load(LoadType::Script(self.url.clone()), CanGc::note());
|
||||
}
|
||||
|
||||
// Step 9-1 & 9-2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue