mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-30 16:34:56 -04:00
This fixes two things. First, it better tracks the calling context and the target context, so that if a parent frame does a document.write within a child frame, any JavaScript is executed in the child frame's context (previously, it would be executed in the parent's context). Second, it ensures that, on document.write, we force-execute any pending scripts. This is related to https://github.com/lightpanda-io/browser/pull/2542 but applies specifically to document.write.