Skip to content

fix: account for the package scope test restarting its layer - #4334

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4333
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4333

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The package CSS scope test changes the page's registry, forcing a document reload. WebKit reports a caught fetch rejection from the departing document as a native page exception while the replacement loads; the health collector then fails teardown even though the revised page passes its CSS assertions. This also reproduces on a plain HTML page without Leaf, using a caught fetch while the next document's response is held.

Use the existing restarting span for this deliberate executable-layer replacement, ending after revision 2 and its CSS boundaries are asserted. Document that application of the helper. This preserves the cross-engine scope coverage added by #4295 and changes no runtime behavior.

Validation: the original WebKit case reproduced the reported teardown error locally. Holding the revision navigation reproduced it with the server still running; that controlled case passed with the span and failed again with the span removed. The final package scope test passes in Chromium, Firefox and WebKit (3 passed).

Closes #4333 — automated triage

Changing the page registry forces a new document. WebKit reports a caught fetch rejection from the departing document as a native page exception while the replacement loads; the same behavior reproduces without Leaf. Use the existing restarting span and retain the assertions proving that revision 2 preserves package CSS boundaries.

Closes #4333
@leaf-agent
leaf-agent merged commit 0c9625b into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4333 branch October 27, 2026 04:49
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.

WebKit package layout test reports a rejected user-view fetch during teardown

1 participant