Skip to content

Own the guest browser lifecycle - #4317

Draft
Ji-One1 wants to merge 2 commits into
jb/storefront-e2e-v2-09-event-recorderfrom
jb/storefront-e2e-v2-10-browser-lifecycle
Draft

Ji-One1 wants to merge 2 commits into
jb/storefront-e2e-v2-09-event-recorderfrom
jb/storefront-e2e-v2-10-browser-lifecycle

Conversation

@Ji-One1

@Ji-One1 Ji-One1 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

The buyer needs a fresh guest browser whose lifetime and navigation controls belong to the harness, not the agent SDK.

What this changes

  • Launch an owned headless Chromium process with a temporary profile. Resolve an explicit executable, an environment override, or a known local installation.
  • Install browser-wide document interception before page loading. Apply the preceding checkout/account policy to tabs, popups, frames, and redirect hops.
  • Stop the browser if the policy connection fails or a request cannot be blocked.
  • Record the first checkout block outside an embedded frame as a handoff diagnostic, including its raw URL. Keep embedded checkout frames blocked without treating them as a handoff. Capture does not itself stop the buyer.
  • Install the preceding Standard Event recorder with the selected names; default to none.
  • Add bounded browser/profile cleanup and a screenshot helper that can save a supplied SDK PNG.
  • Add the integration-test script and local browser fixtures.

Developer impact

Internal tooling only; no published Hydrogen changes or changeset. Chromium must be installed or configured. This is the browser layer, not the buyer CLI.

Risk

Document interception is not a block on all network traffic. Raw checkout URLs and unmasked screenshots are private owner data. Browser country and language are not read or monitored.

Stack: 09/15. Previous: #4316. Next: #4318.

@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from 5a77648 to 389cf1d Compare November 5, 2026 16:23
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from d5219d3 to 5e226d3 Compare November 5, 2026 16:23
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from 389cf1d to f096991 Compare November 5, 2026 18:41
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 5e226d3 to 98de12f Compare November 5, 2026 18:42
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from f096991 to fe754ea Compare November 6, 2026 00:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 98de12f to 576904c Compare November 6, 2026 00:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from fe754ea to c191d46 Compare November 6, 2026 01:36
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 576904c to 734359c Compare November 6, 2026 01:36
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from c191d46 to f45bfde Compare November 6, 2026 01:45
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 734359c to 900b21b Compare November 6, 2026 01:45
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from f45bfde to fdaee75 Compare November 6, 2026 14:27
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 900b21b to 5e3daad Compare November 6, 2026 14:27
@Ji-One1 Ji-One1 changed the title Own guest browser and locale lifecycle Own the guest browser lifecycle Nov 6, 2026
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 5e3daad to 9d1ffc1 Compare November 6, 2026 15:08
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from 0828ac4 to f79c545 Compare November 6, 2026 16:20
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 9d1ffc1 to 5f3c634 Compare November 6, 2026 16:20
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from f79c545 to 781a667 Compare November 6, 2026 19:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 5f3c634 to 731ec61 Compare November 6, 2026 19:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from 781a667 to a021aaf Compare November 6, 2026 20:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 731ec61 to 5bb49ea Compare November 6, 2026 20:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from a021aaf to f321c14 Compare November 6, 2026 20:32
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch 2 times, most recently from 77a741f to 9e8c131 Compare November 6, 2026 20:59
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from f321c14 to ea65c24 Compare November 9, 2026 00:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 9e8c131 to d75930e Compare November 9, 2026 00:01
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from ea65c24 to de85acd Compare November 9, 2026 00:37
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from d75930e to b5f4e39 Compare November 9, 2026 00:37
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from de85acd to da112e8 Compare November 9, 2026 04:23
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from b5f4e39 to 6ecdbef Compare November 9, 2026 04:23
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-09-event-recorder branch from da112e8 to ed92f97 Compare November 9, 2026 06:55
@Ji-One1
Ji-One1 force-pushed the jb/storefront-e2e-v2-10-browser-lifecycle branch from 6ecdbef to d2b9663 Compare November 9, 2026 06:55

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant