Skip to content

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

Closed

Description

@leaf-agent

tests/browser/threads/test_layout.py::test_a_packages_rules_reach_only_inside_its_widgets[webkit_browser] completes its assertions but errors in browser teardown in push CI run 40444131163, on ae78efbc142b48450d7347a4bfb6de0bae526ec9.

clean_browser rejects this captured browser problem:

Fetch API cannot load http://127.0.0.1:37595/api/user-view due to access control checks.
    at send (.../runtime/bundle-user-view2.js:107:8)
    at report (.../runtime/bundle-user-view2.js:146:7)
    at unknown (.../runtime/bundle-user-view2.js:152:10)

The same WebKit variant passed in preceding push run 40436400169. This report session established the diagnostic from CI logs without a local reproduction. The access-control message alone does not establish a CORS policy defect or a server-lifetime race: determine why the user-view report is rejected, including the page/server teardown ordering, before choosing a repair. Read earlier CI results and the introducing change, preserving its intended behavior. A passing rerun alone does not clear an intermittent failure.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    The failure reproduces during the test's deliberate document reload, with its server still running. A plain HTML page without Leaf reproduces WebKit reporting a caught fetch rejection as a native page exception while the replacement document loads.

    #4334 uses the existing restart span around that executable-layer replacement and retains the assertions proving revision 2's CSS boundaries. The controlled reproduction passes with the span and fails again without it; the final test passes in Chromium, Firefox and WebKit. CI is green at 251b2d96e, and the active tend-land run owns the merge decision.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions