mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
entry_realm() was using the topmost execution context, but the spec defines the entry execution context as the most recently pushed *realm* execution context — the one owned by the environment settings object. In a synchronous cross-window call, JS function calls push additional execution contexts above the entry realm, causing the wrong realm to be returned. Fix this by walking the stack to find the context that matches its environment settings object's realm execution context.
31 KiB
31 KiB