LibWeb: Make TemporaryExecutionContext take a Realm&

This commit is contained in:
Shannon Booth
2024-10-24 20:39:18 +13:00
committed by Andrew Kaster
parent f7a4d94b24
commit cc91473f4d
34 changed files with 106 additions and 107 deletions

View File

@@ -1126,8 +1126,7 @@ WebIDL::ExceptionOr<void> Window::window_post_message_steps(JS::Value message, W
auto& source = verify_cast<WindowProxy>(incumbent_settings.realm().global_environment().global_this_value());
// 4. Let deserializeRecord be StructuredDeserializeWithTransfer(serializeWithTransferResult, targetRealm).
auto& settings_object = Bindings::host_defined_environment_settings_object(target_realm);
auto temporary_execution_context = TemporaryExecutionContext { settings_object };
auto temporary_execution_context = TemporaryExecutionContext { target_realm };
auto deserialize_record_or_error = structured_deserialize_with_transfer(vm(), serialize_with_transfer_result);
// If this throws an exception, catch it, fire an event named messageerror at targetWindow, using MessageEvent,