Embedded Macros Run Only Once + Close Tabs (Regression of Old Issue)

Follow-up to: Embedded Macros Now Close the Page (Thread #4957)

Issue Description

The bug where embedded macros close the host tab (reported in 2021) appears to have regressed in recent UI.Vision versions (using V9.5.3)

  1. Current Behavior:
  • Firefox: Runs once (tab stays open).

  • Chrome/Edge:

    • Runs only once.
    • Closes the tab if other tabs are open (same behavior as the original bug).
  • Demo Page (ui.vision/demo/runweb): Works correctly (multiple runs allowed, no tab closure).

  1. Expected Behavior:
  • Embedded macros should never close the host tab (like the demo page).
  • Multiple executions should be allowed without reloading.

Reproduction Steps

  1. Save Demo page as HTML.
  2. Open it in:
  • Firefox → Runs once (tab remains).
  • Chrome/Edge → Runs once, then closes the tab if others are open.
  1. Compare to https://ui.vision/demo/runweb (works perfectly).