From 32bfd55d52f7be19d5f8ece61251bd7428a10474 Mon Sep 17 00:00:00 2001 From: Loc Date: Fri, 8 May 2026 10:56:05 -0700 Subject: [PATCH 1/2] feat: add per-window onWindowSetup hook to createWindowPool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds an additive per-window setup hook for realm-specific initialization (custom element registration, prototype patches, documentElement attribute sync) that runs once for each window the pool creates. Each pooled window is its own browsing-context realm, so anything that registers globals on the parent window (e.g. a library calling customElements.define at import time) is invisible inside the popout. Until now the only hook was the function form of injectStyles, which replaces the default auto