ladybird/Tests/LibWeb/Text/expected/wpt-import/workers
Shannon Booth cc871620e6 LibWeb/Bindings: Preserve object EventHandler assignments
EventHandler attributes are nullable callback function attributes with
[LegacyTreatNonObjectAsNull]. Assigning a non-object value should
produce null, but assigning an object value should preserve that object
as the callback value, even when the object is not callable.

Previously, object values such as `{ handleEvent() {} }` could pass the
nullable conversion and then be converted to null by the inner callback
function conversion. This made MessagePort.onmessage in the fixed test
return null after such an assignment.

Handle the non-object-to-null rule in nullable conversion, and let the
legacy callback conversion wrap object values without rejecting them for
not being callable.

Fixes a regression in the python port of the IDL generator.
2026-06-11 21:33:58 +02:00
..
constructors LibWeb/Bindings: Preserve object EventHandler assignments 2026-06-11 21:33:58 +02:00
semantics/run-a-worker
data-url.txt
nested_worker.worker.txt
nested_worker_close_from_parent_worker.txt
nested_worker_close_self.worker.txt
nested_worker_importScripts.worker.txt
nested_worker_sync_xhr.worker.txt
nested_worker_terminate_from_document.txt
Worker_ErrorEvent_type.txt LibWeb: Fire unhandled dedicated worker exceptions on the parent global 2026-04-05 23:38:38 +02:00