mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Reserve zero for not supported transfer type
Previously we were using 0 for both unsupported type and MessagePort, which led to crashing on attempt to decode unsupported transfer type as MessagePort. Fixes crashing on https://docs.mapbox.com/mapbox-gl-js/clip-layer-building-demo.html
This commit is contained in:
committed by
Alexander Kalenik
parent
e18e7d6019
commit
ea8a6b43f7
Notes:
github-actions[bot]
2025-04-14 15:02:44 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/ea8a6b43f7b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4342 Reviewed-by: https://github.com/trflynn89
@@ -65,7 +65,7 @@ HTML::TransferType ImageBitmap::primary_interface() const
|
||||
{
|
||||
// FIXME: Implement this
|
||||
dbgln("(STUBBED) ImageBitmap::primary_interface()");
|
||||
return {};
|
||||
return TransferType::Unknown;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-imagebitmap-width
|
||||
|
||||
Reference in New Issue
Block a user