diff options
author | Auguste Baum <52001167+augustebaum@users.noreply.github.com> | 2025-02-20 17:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 16:17:45 +0000 |
commit | 863d2ce8710fc5141b2c8fd0743697c0956412cb (patch) | |
tree | 05d3f853fa53b38a359427ac3d9ff19b7bc75db6 /components/script/dom/bluetooth/bluetoothpermissionresult.rs | |
parent | 5465bfc2af38e561df5f0a7f81250a0238520d6d (diff) | |
download | servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.tar.gz servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.zip |
Propagate `CanGc` arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/bluetooth/bluetoothpermissionresult.rs')
-rw-r--r-- | components/script/dom/bluetooth/bluetoothpermissionresult.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/bluetooth/bluetoothpermissionresult.rs b/components/script/dom/bluetooth/bluetoothpermissionresult.rs index d5d0e521262..7c0053987c7 100644 --- a/components/script/dom/bluetooth/bluetoothpermissionresult.rs +++ b/components/script/dom/bluetooth/bluetoothpermissionresult.rs @@ -48,11 +48,12 @@ impl BluetoothPermissionResult { pub(crate) fn new( global: &GlobalScope, status: &PermissionStatus, + can_gc: CanGc, ) -> DomRoot<BluetoothPermissionResult> { reflect_dom_object( Box::new(BluetoothPermissionResult::new_inherited(status)), global, - CanGc::note(), + can_gc, ) } @@ -96,7 +97,7 @@ impl BluetoothPermissionResultMethods<crate::DomTypeHolder> for BluetoothPermiss } impl AsyncBluetoothListener for BluetoothPermissionResult { - fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>, _can_gc: CanGc) { + fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>, can_gc: CanGc) { match response { // https://webbluetoothcg.github.io/web-bluetooth/#request-bluetooth-devices // Step 3, 11, 13 - 14. @@ -118,6 +119,7 @@ impl AsyncBluetoothListener for BluetoothPermissionResult { DOMString::from(device.id.clone()), device.name.map(DOMString::from), &bluetooth, + can_gc, ); device_instance_map.insert(device.id.clone(), Dom::from_ref(&bt_device)); self.global() |