mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Check if transferred ImageBitmap is exposed in target realm
This was forgotten in ed3d0d7.
This commit is contained in:
committed by
Shannon Booth
parent
28774efa22
commit
45127aee88
Notes:
github-actions[bot]
2025-07-20 12:53:15 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/45127aee88e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5531 Reviewed-by: https://github.com/kennethmyhra ✅
@@ -1115,6 +1115,8 @@ static bool is_transferable_interface_exposed_on_target_realm(TransferType name,
|
||||
return intrinsics.is_interface_exposed<Bindings::WritableStreamPrototype>(realm);
|
||||
case TransferType::TransformStream:
|
||||
return intrinsics.is_interface_exposed<Bindings::TransformStreamPrototype>(realm);
|
||||
case TransferType::ImageBitmap:
|
||||
return intrinsics.is_interface_exposed<Bindings::ImageBitmapPrototype>(realm);
|
||||
case TransferType::Unknown:
|
||||
dbgln("Unknown interface type for transfer: {}", to_underlying(name));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user