mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ee9e1fbbd6
commit
65c866285f
26 changed files with 77 additions and 37 deletions
|
@ -132,6 +132,7 @@ impl Serializable for Blob {
|
|||
owner: &GlobalScope,
|
||||
sc_holder: &mut StructuredDataHolder,
|
||||
storage_key: StorageKey,
|
||||
can_gc: CanGc,
|
||||
) -> Result<(), ()> {
|
||||
// 1. Re-build the key for the storage location
|
||||
// of the serialized object.
|
||||
|
@ -162,7 +163,7 @@ impl Serializable for Blob {
|
|||
*blob_impls = None;
|
||||
}
|
||||
|
||||
let deserialized_blob = Blob::new(owner, blob_impl, CanGc::note());
|
||||
let deserialized_blob = Blob::new(owner, blob_impl, can_gc);
|
||||
|
||||
let blobs = blobs.get_or_insert_with(HashMap::new);
|
||||
blobs.insert(storage_key, deserialized_blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue