Skip to content

script: Inherit initiator origin when loading about:blank and about:srcdoc - #47630

Merged
mrobinson merged 2 commits into
servo:mainfrom
mrobinson:inherit-origin
Sep 5, 2026
Merged

mrobinson merged 2 commits into
servo:mainfrom
mrobinson:inherit-origin

Conversation

@mrobinson

@mrobinson mrobinson commented Aug 29, 2026 •

Copy link
Copy Markdown
Member

The specification says that about:blank and about:srcdoc should
inherit their source origin. This means that instead of always creating
a new opaque origin in the parser for these kind of pages, we should try
harder to preserve the source origin.

Testing: This will cause more tests to pass once #47632 lands.

@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Aug 29, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 29, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#33262851349) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#33262851349):

Flaky unexpected result (29)
  • OK /IndexedDB/idbtransaction-oncomplete.any.worker.html (#42804)
    • FAIL [expected PASS] subtest: IDBTransaction - complete event

      assert_array_equals: lengths differ, expected array ["upgradeneeded", "complete", "success", "opencursor"] length 4, got ["upgradeneeded", "complete", "success"] length 3
      

  • CRASH [expected OK] /_webgl/conformance/context/context-hidden-alpha.html
  • OK /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • FAIL [expected PASS] subtest: WebGL test #45

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #47

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #49

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #51

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • PASS [expected FAIL] subtest: WebGL test #53
    • PASS [expected FAIL] subtest: WebGL test #55
    • PASS [expected FAIL] subtest: WebGL test #57
    • PASS [expected FAIL] subtest: WebGL test #59
    • FAIL [expected PASS] subtest: WebGL test #61

      assert_true: Texture was smaller than the expected size 2x2 expected true got false
      

    • FAIL [expected PASS] subtest: WebGL test #63

      assert_true: getError expected: INVALID_VALUE. Was NO_ERROR : when calling texSubImage2D with the same texture upload with offset 1, 1 expected true got false
      

    • And 10 more unexpected results...
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-07.html
    • NOTRUN [expected PASS] subtest: Overall test
  • CRASH [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-14.html
  • CRASH [expected OK] /_webgl/conformance/uniforms/no-over-optimization-on-uniform-array-16.html
  • TIMEOUT [expected OK] /_webgl/conformance2/state/gl-object-get-calls.html
  • CRASH [expected OK] /_webgl/conformance2/transform_feedback/transform_feedback.html
  • CRASH [expected OK] /content-security-policy/gen/top.http-rp/worker-src-self/sharedworker-import-data.http.html
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '430' should prefer '340 398' over '501 550'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

    • FAIL [expected PASS] subtest: Matching font-weight: '500' should prefer '500' over '450 460'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

    • FAIL [expected PASS] subtest: Matching font-style: 'oblique -21deg' should prefer 'oblique -21deg' over 'oblique -60deg -40deg'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • OK /css/css-text-decor/parsing/text-decoration-inset-computed.html (#47617)
    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0px 0px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0.5em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1px 2px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'calc(1em / 4) calc(-1ch)'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'auto'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '10%'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • And 5 more unexpected results...
  • PASS [expected FAIL] /css/css-text-decor/text-underline-position-from-font-variable.html (#45615)
  • TIMEOUT [expected OK] /fetch/content-encoding/gzip/big-gzip-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large gzip data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large gzip data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.html
    • TIMEOUT [expected PASS] subtest: large zstd data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large zstd data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large zstd data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large zstd data should be decompressed successfully with byte stream
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html (#44099)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by submitButton.click()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20const%20button%20%3D%20document.createElement(%22button%22)%3B%0A%20%20%20%20button.type%20%3D%20%22submit%22%3B%0A%20%20%20%20form.append(button)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20button.click()%3B%0A%20%20"
      

  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit.html (#44028)
  • CRASH [expected OK] /html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-interface.html
  • OK /html/dom/render-blocking/remove-attr-unblocks-rendering.optional.html
    • PASS [expected FAIL] subtest: Render-blocking on script-inserted module script is cancellable
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /resize-observer/observer-in-cross-origin-frame.sub.html
    • FAIL [expected PASS] subtest: Cross-origin observer responds to explicitly set physical size

      assert_equals: expected 200 but got 284
      

  • OK /sanitizer-api/sanitizer-inert-document.html (#45260)
    • PASS [expected FAIL] subtest: Test whether setHTML loads the image.
    • FAIL [expected PASS] subtest: Test whether setHTMLUnsafe loads the image.

      promise_test: Unhandled rejection with value: "The server observed a request. It shouldn't have."
      

  • CRASH [expected OK] /trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html
  • OK /upgrade-insecure-requests/gen/sharedworker-classic-data.meta/upgrade/websocket.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to cross-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to same-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

  • OK /upgrade-insecure-requests/gen/sharedworker-module-data.meta/unset/fetch.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

  • TIMEOUT [expected OK] /webstorage/storage_local_setitem_quotaexceedederr.window.html
  • TIMEOUT [expected OK] /webstorage/storage_session_setitem_quotaexceedederr.window.html
  • OK /xhr/send-redirect.htm (#32026)
    • FAIL [expected PASS] subtest: XMLHttpRequest: send() - Redirects (basics) (308, GET, content.py)

      assert_equals: expected (string) "GET" but got (object) null
      

Stable unexpected results that are known to be intermittent (22)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • OK /beacon/beacon-basic.https.window.html (#41723)
    • FAIL [expected PASS] subtest: Payload size restriction should be accumulated: type = string

      assert_false: expected false got true
      

    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = arraybuffer
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = blob
  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • PASS [expected FAIL] subtest: .flexbox > div 1
    • PASS [expected FAIL] subtest: .flexbox > div 2
    • PASS [expected FAIL] subtest: .flexbox > div 5
    • PASS [expected FAIL] subtest: .flexbox > div 8
    • PASS [expected FAIL] subtest: .flexbox > div 11
  • ERROR [expected TIMEOUT] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allowed=wildcard,expect=400 (#47268)
  • ERROR [expected OK] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allowed=wildcard,expect=400 (#47268)
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove new parent

      assert_equals: iframe does not fire a second load event expected 1 but got 0
      

  • TIMEOUT /fetch/metadata/generated/css-images.https.sub.tentative.html (#42229)
    • FAIL [expected PASS] subtest: content sec-fetch-site - Same site

      assert_unreached: Reached unreachable code
      

    • FAIL [expected PASS] subtest: content sec-fetch-site - Cross-Site -> Cross-Site

      assert_unreached: Reached unreachable code
      

  • CRASH [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
  • TIMEOUT /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/location-setter.html (#47571)
    • TIMEOUT [expected FAIL] subtest: href

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: search
    • NOTRUN [expected TIMEOUT] subtest: hash
  • ERROR [expected CRASH] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • CRASH [expected OK] /html/browsers/origin/cross-origin-objects/cross-origin-objects.html (#47543)
  • OK /html/browsers/windows/browsing-context-names/duplicate-name-order.html (#34623)
    • PASS [expected FAIL] subtest: Duplicate name lookup order
  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-disabled-by-permissions-policy.https.sub.html (#46012, #46804)
    • TIMEOUT [expected FAIL] subtest: Permissions-Policy header: autoplay "none" disallows same-origin iframes.

      Test timed out
      

  • OK /html/webappapis/user-prompts/print-during-unload.html (#35944)
    • FAIL [expected PASS] subtest: print() during unload

      assert_array_equals: expected property 1 to be "destination" but got "error: window.print is not a function" (expected array ["start", "destination"] got ["start", "error: window.print is not a function"])
      

  • ERROR [expected OK] /intersection-observer/v2/animated-opacity.html (#40827)
  • OK /pointerevents/pointerevent_change-touch-action-onpointerdown_touch.html (#46781)
    • FAIL [expected PASS] subtest: scroll should be received before the test finishes

      assert_true: scroll should be received before the test finishes expected true got false
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?touch (#45445)
    • PASS [expected FAIL] subtest: Test touchpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /resource-timing/buffer-full-then-increased.html (#44408)
    • FAIL [expected PASS] subtest: Test that overflowing the buffer and immediately increasing its limit does not trigger the resourcetimingbufferfull event

      assert_equals: Number of entries does not match the expected value. expected 3 but got 1
      

  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)

      assert_equals: expected 10.070000000000007 but got 10.07
      

  • OK /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected FAIL] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: buffer-stitching-1

      assert_approx_equals: Stitched sine-wave buffers at sample rate 44100 sample[16620] |-5.528004630451664e-34 - -0.8962811827659607| = 0.8962811827659607 > 0.000090957 expected -0.8962811827659607 +/- 0.000090957 but got -5.528004630451664e-34
      

    • FAIL [expected PASS] subtest: buffer-stitching-2

      assert_approx_equals: Stitched sine-wave buffers at sample rate 43800 sample[5196] |-1.9408316311713123e-34 - -0.8369202017784119| = 0.8369202017784119 > 0.0038986 expected -0.8369202017784119 +/- 0.0038986 but got -1.9408316311713123e-34
      

@github-actions

Copy link
Copy Markdown

✨ Try run (#33262851349) succeeded.

Comment on lines +1400 to +1405
LoadOrigin::Script(ref snapshot) => {
Some(MutableOrigin::from_snapshot(snapshot.clone()))
},
LoadOrigin::Script(ref snapshot) => Some(
self.parent_info
.and_then(ScriptThread::find_document)
.map(|document| document.origin().clone())
.unwrap_or_else(|| MutableOrigin::from_snapshot(snapshot.clone())),
),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am very confused why this change is correct, since we're supposed to be using the snapshot of the initiator's origin, not whatever the document's origin currently is. I think this actually points to some code that initiated the navigation providing the wrong origin in the LoadOrigin.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change isn't quite correct, because we should probably be using creator_pipeline_id here rather than parent_info. This is trying to fix the concepts summarized by these two notes in the specification:

From https://html.spec.whatwg.org/multipage/browsers.html#concept-origin:

Origins can be shared, e.g., among multiple Document objects. Furthermore, origins are generally immutable. Only the domain of a tuple origin can be changed, and only through the document.domain API.

From https://html.spec.whatwg.org/multipage/document-sequences.html#determining-the-origin:

The cases that return sourceOrigin result in two Documents that end up with the same underlying origin, meaning that document.domain affects both.

The cases where sourceOrigin is returned from determining the origin (called immediately after this code) are for about:blank and about:srcdoc. In these cases, if either the creating page or the child page modifies document.domain, both origins should be updated (they are aliased and not clones). So it's a snapshot typically, but not in these cases. I believe these are the tests that start failing with the increased security from #47632. This should also be the case for javascript: URLs, but via a different mechanism that I'm still trying to wrap my head around.

@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Aug 30, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 30, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#33299558616) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#33299558616):

Flaky unexpected result (27)
  • TIMEOUT [expected OK] /IndexedDB/idbfactory-origin-isolation.html
    • TIMEOUT [expected PASS] subtest: Test to make sure that origins have separate locking schemes

      Test timed out
      

  • OK [expected TIMEOUT] /_webgl/conformance/textures/misc/tex-video-using-tex-unit-non-zero.html (#39735)
    • PASS [expected NOTRUN] subtest: Overall test
    • PASS [expected FAIL] subtest: WebGL test #0
  • CRASH [expected OK] /content-security-policy/frame-ancestors/frame-ancestors-sandbox-same-origin-self.html
  • FAIL [expected PASS] /css/css-backgrounds/background-size-042.html
  • OK /css/css-text-decor/parsing/text-decoration-inset-computed.html (#47617)
    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0px 0px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0.5em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1px 2px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'calc(1em / 4) calc(-1ch)'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'auto'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '10%'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • And 5 more unexpected results...
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove new parent

      assert_equals: iframe does not fire a second load event expected 1 but got 0
      

  • TIMEOUT [expected OK] /fetch/content-encoding/br/big-br-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large br data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large br data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/gzip/big-gzip-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large gzip data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large gzip data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.html
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-requestsubmit.html (#44098)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by formElement.requestSubmit()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20form.requestSubmit()%3B%0A%20%20"
      

  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html (#44099)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by submitButton.click()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20const%20button%20%3D%20document.createElement(%22button%22)%3B%0A%20%20%20%20button.type%20%3D%20%22submit%22%3B%0A%20%20%20%20form.append(button)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20button.click()%3B%0A%20%20"
      

  • CRASH [expected OK] /html/dom/partial-updates/tentative/fragment/sanitize-default.html
  • OK /html/semantics/embedded-content/media-elements/media_fragment_seek.html (#24114)
    • FAIL [expected PASS] subtest: Video should seek to time specified in media fragment syntax

      assert_equals: expected 4 but got 0
      

  • OK /html/semantics/forms/form-submission-0/jsurl-form-submit.tentative.html (#36489)
    • PASS [expected FAIL] subtest: Verifies that form submissions scheduled inside javascript: urls take precedence over the javascript: url's return value.
  • CRASH [expected ERROR] /html/semantics/forms/the-select-element/customizable-select/select-appearance-button-after-span.html
  • TIMEOUT [expected OK] /html/user-activation/navigation-state-reset-sameorigin.html (#45151)
    • TIMEOUT [expected FAIL] subtest: Post-navigation state reset.

      Test timed out
      

  • OK /infrastructure/testdriver/click_iframe.html
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • OK /mixed-content/tentative/autoupgrades/video-upgrade.https.sub.html (#41135)
    • FAIL [expected PASS] subtest: Video autoupgraded

      assert_equals: Length. expected 1 but got Infinity
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /resource-timing/buffer-full-add-then-clear.html (#40819)
    • PASS [expected FAIL] subtest: Test that if the buffer is cleared after entries were added to the secondary buffer, those entries make it into the primary one
  • OK /touch-events/single-tap-when-touchend-listener-use-sync-xhr.html (#41175)
    • PASS [expected FAIL] subtest: Click event should be fired when touchend opens synchronous XHR
  • CRASH [expected OK] /trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?06-10 (#37920)
    • PASS [expected TIMEOUT] subtest: Navigate a frame via anchor with javascript:-urls in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via anchor with javascript:-urls w/ default policy in report-only mode.
    • FAIL [expected NOTRUN] subtest: Navigate a window via anchor with javascript:-urls w/ a default policy throwing an exception in enforcing mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
      

    • FAIL [expected NOTRUN] subtest: Navigate a window via anchor with javascript:-urls w/ a default policy throwing an exception in report-only mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
      

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?31-35 (#38034)
    • TIMEOUT [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in enforcing mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode.
  • OK /upgrade-insecure-requests/gen/sharedworker-module-data.meta/unset/fetch.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to cross-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects blocked for fetch to same-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'blocked'. expected "blocked" but got "allowed"
      

  • OK /visual-viewport/resize-event-order.html (#41981)
    • PASS [expected FAIL] subtest: Popup: DOMWindow resize fired before VisualViewport.
  • OK /webdriver/tests/classic/perform_actions/wheel_events.py
    • FAIL [expected PASS] subtest: test_scroll_on_iframe_with_overflow_scroll[delta-x]

      webdriver.error.TimeoutException: timeout (500): Timed out after 0.5 seconds with message: Didn't receive all events: expected at least 1, got 0
      

Stable unexpected results that are known to be intermittent (31)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • OK /beacon/beacon-basic.https.window.html (#41723)
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = arraybuffer
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = blob
  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • PASS [expected FAIL] subtest: .flexbox > div 1
    • PASS [expected FAIL] subtest: .flexbox > div 2
    • PASS [expected FAIL] subtest: .flexbox > div 5
    • PASS [expected FAIL] subtest: .flexbox > div 8
    • PASS [expected FAIL] subtest: .flexbox > div 11
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'oblique -21deg' should prefer 'oblique 0deg' over 'oblique 30deg 60deg'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • ERROR [expected TIMEOUT] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allowed=wildcard,expect=400 (#47268)
  • ERROR [expected OK] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allowed=wildcard,expect=400 (#47268)
  • PASS [expected FAIL] /css/css-text-decor/text-underline-position-from-font-variable.html (#45615)
  • OK /fetch/content-length/api-and-duplicate-headers.any.worker.html (#35197)
    • FAIL [expected PASS] subtest: fetch() and duplicate Content-Length/Content-Type headers

      promise_test: Unhandled rejection with value: object "TypeError: Network error: HTTP failure: client error (SendRequest)"
      

  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • FAIL [expected PASS] subtest: content sec-fetch-dest - Not sent to non-trustworthy same-origin destination

      assert_unreached: Reached unreachable code
      

  • TIMEOUT [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/location-assign.html (#47571)
    • TIMEOUT [expected FAIL] subtest: Replace before load, triggered by location.assign()

      Test timed out
      

  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • PASS [expected FAIL] subtest: traversing history must also traverse hash changes
  • ERROR [expected CRASH] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • OK /html/browsers/origin/cross-origin-objects/cross-origin-objects.html (#47543)
    • PASS [expected FAIL] subtest: Basic sanity-checking (cross-origin)
    • PASS [expected FAIL] subtest: Basic sanity-checking (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[GetPrototypeOf]] should return null (cross-origin)
    • PASS [expected FAIL] subtest: [[GetPrototypeOf]] should return null (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[SetPrototypeOf]] should return false (cross-origin)
    • PASS [expected FAIL] subtest: [[SetPrototypeOf]] should return false (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[PreventExtensions]] should return false cross-origin objects (cross-origin)
    • PASS [expected FAIL] subtest: [[PreventExtensions]] should return false cross-origin objects (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (cross-origin)
    • PASS [expected FAIL] subtest: [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (same-origin + document.domain)
    • And 26 more unexpected results...
  • OK /html/browsers/windows/browsing-context-names/duplicate-name-order.html (#34623)
    • PASS [expected FAIL] subtest: Duplicate name lookup order
  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/autoplay-allowed-by-permissions-policy.https.sub.html (#46803)
    • PASS [expected TIMEOUT] subtest: Permissions-Policy header: autoplay * allows same-origin iframes.
  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/autoplay-disabled-by-permissions-policy.https.sub.html (#46012, #46804)
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
  • OK /html/syntax/speculative-parsing/expect-no-linked-resources/no-speculative-fetch.tentative.optional.html (#47290)
    • PASS [expected FAIL] subtest: expect-no-linked-resources hint was ignored
  • OK /html/webappapis/user-prompts/print-during-unload.html (#35944)
    • FAIL [expected PASS] subtest: print() during unload

      assert_array_equals: expected property 1 to be "destination" but got "error: window.print is not a function" (expected array ["start", "destination"] got ["start", "error: window.print is not a function"])
      

  • OK /infrastructure/testdriver/click_window.html (#47303)
    • FAIL [expected PASS] subtest: TestDriver click method in window

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • OK /pointerevents/pointerevent_change-touch-action-onpointerdown_touch.html (#46781)
    • FAIL [expected PASS] subtest: scroll should be received before the test finishes

      assert_true: scroll should be received before the test finishes expected true got false
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?touch (#45445)
    • PASS [expected FAIL] subtest: Test touchpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /resource-timing/buffer-full-then-increased.html (#44408)
    • FAIL [expected PASS] subtest: Test that overflowing the buffer and immediately increasing its limit does not trigger the resourcetimingbufferfull event

      assert_equals: Number of entries does not match the expected value. expected 3 but got 1
      

  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (iframe)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (link)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)

      assert_equals: expected 12.170000000000002 but got 12.17
      

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?01-05 (#38975)
    • TIMEOUT [expected PASS] subtest: Navigate a window via anchor with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a window via anchor with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via anchor with javascript:-urls in enforcing mode.
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?11-15 (#44834)
    • TIMEOUT [expected PASS] subtest: Navigate a window via area with javascript:-urls in report-only mode.

      Test timed out
      

  • OK /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected FAIL] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
  • OK /user-timing/measure_associated_with_navigation_timing.html (#47273)
    • PASS [expected FAIL] subtest: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a".
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: buffer-stitching-1

      assert_approx_equals: Stitched sine-wave buffers at sample rate 44100 sample[16620] |-9.0328481611034e+26 - -0.8962811827659607| = 9.0328481611034e+26 > 0.000090957 expected -0.8962811827659607 +/- 0.000090957 but got -9.0328481611034e+26
      

  • OK [expected TIMEOUT] /webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.html (#29053)
    • FAIL [expected TIMEOUT] subtest: StorageKey: test 3P about:blank window opened from a 3P iframe

      assert_true: about:blank window opened by 3P iframe does not inherit 3P iframe's StorageKey expected true got false
      

Stable unexpected results (8)
  • OK /html/browsers/origin/inheritance/about-blank-iframe.html
    • PASS [expected FAIL] subtest: about:blank in child browsing context aliases security origin
  • OK /html/browsers/origin/inheritance/about-srcdoc.html
    • PASS [expected FAIL] subtest: about:srcdoc aliases security origin
  • OK /html/browsers/origin/inheritance/javascript-url.html
    • PASS [expected FAIL] subtest: javascript: aliases security origin
  • OK /html/browsers/origin/origin-keyed-agent-clusters/regression-1399759.https.sub.html?pipe=header(Origin-Agent-Cluster,%3F0)
    • FAIL [expected PASS] subtest: Check the baseURL of an about:blank document cross-origin with its parent

      promise_test: Unhandled rejection with value: object "SecurityError: The operation is insecure."
      

    • PASS [expected FAIL] subtest: Check that about:srcdoc navigation does not follow about:blank rules.
  • OK /html/browsers/origin/origin-keyed-agent-clusters/regression-1399759.https.sub.html?pipe=header(Origin-Agent-Cluster,%3F1)
    • FAIL [expected PASS] subtest: Check the baseURL of an about:blank document cross-origin with its parent

      promise_test: Unhandled rejection with value: object "SecurityError: The operation is insecure."
      

    • PASS [expected FAIL] subtest: Check that about:srcdoc navigation does not follow about:blank rules.
  • OK /html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter_srcdoc.html
    • PASS [expected FAIL] subtest: srcdoc can access with valid 'document.domain'.
    • PASS [expected FAIL] subtest: srcdoc can access when parent modifies 'document.domain'.
  • OK /html/browsers/windows/document-domain-nested-set.window.html
    • PASS [expected FAIL] subtest: Initial about:blank frame and document.domain in the frame
  • OK /html/browsers/windows/document-domain-nested.window.html
    • PASS [expected FAIL] subtest: Initial about:blank frame and document.domain

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#33299558616) failed!

@mrobinson mrobinson changed the title script: Inherit origins properly when loading pages from script script: Inherit initiator origin when loading about:blank and about:srcdoc Aug 30, 2026
@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Aug 30, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Aug 30, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#33305511631) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#33305511631):

Flaky unexpected result (36)
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-continuePrimaryKey-exception-order.any.sharedworker.html
    • TIMEOUT [expected FAIL] subtest: InvalidStateError(deleted source) v.s. InvalidAccessError(incorrect source)

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(keys are lower then current one) in 'next' direction

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: DataError(keys are larger then current one) in 'prev' direction

      Test timed out
      

  • TIMEOUT [expected OK] /_webgl/conformance2/sync/sync-webgl-specific.html
    • NOTRUN [expected PASS] subtest: Overall test
  • CRASH [expected OK] /content-security-policy/frame-ancestors/frame-ancestors-nested-same-in-same-star-allow.html
  • CRASH [expected OK] /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html
  • FAIL [expected PASS] /css/css-backgrounds/background-size-041.html
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '399' should prefer '400' over '450 460'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

    • FAIL [expected PASS] subtest: Matching font-style: 'oblique 0deg' should prefer 'oblique 5deg' over 'oblique 15deg 20deg'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • OK /css/css-text-decor/parsing/text-decoration-inset-computed.html (#47617)
    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0px 0px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '0.5em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1em'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '-1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1px 2px'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '1ch -1ch'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'calc(1em / 4) calc(-1ch)'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value 'auto'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-decoration-inset value '10%'

      assert_true: text-decoration-inset doesn't seem to be supported in the computed style expected true got false
      

    • And 5 more unexpected results...
  • PASS [expected FAIL] /css/css-text-decor/text-underline-position-from-font-variable.html (#45615)
  • TIMEOUT [expected OK] /fetch/content-encoding/br/big-br-body.https.any.html
    • TIMEOUT [expected PASS] subtest: large br data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large br data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/br/big-br-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large br data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large br data should be decompressed successfully with byte stream
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-window-zstd-body.tentative.https.any.worker.html
    • TIMEOUT [expected FAIL] subtest: Consuming the body of a resource with too large of a zstd window size should reject

      Test timed out
      

  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.html
  • TIMEOUT [expected OK] /fetch/content-encoding/zstd/big-zstd-body.https.any.worker.html
    • TIMEOUT [expected PASS] subtest: large zstd data should be decompressed successfully

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: large zstd data should be decompressed successfully with byte stream
  • CRASH [expected ERROR] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • PASS [expected FAIL] subtest: Link with onclick navigation and href navigation
  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • PASS [expected FAIL] subtest: traversing history must also traverse hash changes
  • CRASH [expected OK] /html/browsers/history/the-location-interface/security_location_0.htm
  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • PASS [expected FAIL] subtest: Verifies that location navigations take precedence when following form submissions.
  • OK /html/semantics/forms/form-submission-0/jsurl-form-submit.tentative.html (#36489)
    • PASS [expected FAIL] subtest: Verifies that form submissions scheduled inside javascript: urls take precedence over the javascript: url's return value.
  • CRASH [expected FAIL] /html/semantics/interestfor/interestfor-plain-inline-element.tentative.html
  • CRASH [expected OK] /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/remove-initial-about-blankness.window.html (#47638)
  • OK /infrastructure/testdriver/click_iframe.html
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • ERROR [expected OK] /intersection-observer/v2/animated-opacity.html (#40827)
  • OK /paint-timing/with-lcp/fcp-document-opacity-image.html (#43068)
    • FAIL [expected PASS] subtest: Test that FCP after opacity change is not a larger value than LCP

      assert_equals: First contentful paint marked too early.  expected 0 but got 1
      

  • ERROR [expected TIMEOUT] /performance-timeline/not-restored-reasons/abort-block-bfcache.window.html (#42802)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /preload/prefetch-document.html (#37210)
    • FAIL [expected PASS] subtest: different-site document prefetch with 'as=document' should not be consumed

      assert_equals: expected 2 but got 1
      

  • OK /resource-timing/buffer-full-then-increased.html (#44408)
    • FAIL [expected PASS] subtest: Test that overflowing the buffer and immediately increasing its limit does not trigger the resourcetimingbufferfull event

      assert_equals: Number of entries does not match the expected value. expected 3 but got 1
      

  • OK /touch-events/hover-state-caused-by-compatibility-mouse-events.tentative.html (#46277)
    • PASS [expected FAIL] subtest: The compatibility mouse events should set :hover, but shouldn't be preserved after the target is replaced: The compatibility mouse events should be fired
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?31-35 (#38034)
    • TIMEOUT [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in enforcing mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode.
  • CRASH [expected OK] /trusted-types/trusted-types-report-only.html
  • OK /uievents/order-of-events/mouse-events/mousemove-between.html
    • FAIL [expected PASS] subtest: Mousemove events between elements should fire in the correct order.

      assert_true: expected true got false
      

  • OK /visual-viewport/resize-event-order.html (#41981)
    • PASS [expected FAIL] subtest: Popup: DOMWindow resize fired before VisualViewport.
  • OK /webdriver/tests/classic/set_window_rect/user_prompts.py
    • ERROR [expected PASS] subtest: test_accept[alert-None]

      teardown error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[confirm-False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[prompt-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 8 more unexpected results...
  • CRASH [expected OK] /webstorage/storage_local_setitem_quotaexceedederr.window.html
  • CRASH [expected OK] /webstorage/storage_session_setitem_quotaexceedederr.window.html
Stable unexpected results that are known to be intermittent (26)
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • OK /beacon/beacon-basic.https.window.html (#41723)
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = arraybuffer
    • PASS [expected FAIL] subtest: Payload size restriction should be accumulated: type = blob
  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • PASS [expected FAIL] subtest: .flexbox > div 1
    • PASS [expected FAIL] subtest: .flexbox > div 2
    • PASS [expected FAIL] subtest: .flexbox > div 5
    • PASS [expected FAIL] subtest: .flexbox > div 8
    • PASS [expected FAIL] subtest: .flexbox > div 11
  • ERROR [expected TIMEOUT] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allowed=wildcard,expect=400 (#47268)
  • ERROR [expected OK] /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allowed=wildcard,expect=400 (#47268)
  • TIMEOUT /fetch/metadata/generated/css-images.https.sub.tentative.html (#42229)
    • FAIL [expected PASS] subtest: content sec-fetch-site - Same-Origin -> Same-Site

      assert_unreached: Reached unreachable code
      

  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • TIMEOUT [expected PASS] subtest: background-image sec-fetch-site - Not sent to non-trustworthy same-site destination

      Test timed out
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • PASS [expected FAIL] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation
  • ERROR [expected CRASH] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • OK /html/browsers/origin/cross-origin-objects/cross-origin-objects.html (#47543)
    • PASS [expected FAIL] subtest: Basic sanity-checking (cross-origin)
    • PASS [expected FAIL] subtest: Basic sanity-checking (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[GetPrototypeOf]] should return null (cross-origin)
    • PASS [expected FAIL] subtest: [[GetPrototypeOf]] should return null (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[SetPrototypeOf]] should return false (cross-origin)
    • PASS [expected FAIL] subtest: [[SetPrototypeOf]] should return false (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[PreventExtensions]] should return false cross-origin objects (cross-origin)
    • PASS [expected FAIL] subtest: [[PreventExtensions]] should return false cross-origin objects (same-origin + document.domain)
    • PASS [expected FAIL] subtest: [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (cross-origin)
    • PASS [expected FAIL] subtest: [[GetOwnProperty]] - Subframes should be visible cross-origin only if their names don't match the names of cross-origin-exposed IDL properties (same-origin + document.domain)
    • And 26 more unexpected results...
  • OK /html/browsers/windows/browsing-context-names/duplicate-name-order.html (#34623)
    • PASS [expected FAIL] subtest: Duplicate name lookup order
  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-allowed-by-permissions-policy.https.sub.html (#46803)
    • TIMEOUT [expected PASS] subtest: Permissions-Policy header: autoplay * allows the top-level document.

      Test timed out
      

  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-disabled-by-permissions-policy.https.sub.html (#46012, #46804)
    • TIMEOUT [expected FAIL] subtest: Permissions-Policy header: autoplay "none" disallows same-origin iframes.

      Test timed out
      

  • OK /html/semantics/embedded-content/media-elements/media_fragment_seek.html (#24114)
    • FAIL [expected PASS] subtest: Video should seek to time specified in media fragment syntax

      assert_equals: expected 3 but got 0
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/media-elements/src_object_blob.html (#40340)
    • PASS [expected TIMEOUT] subtest: HTMLMediaElement.srcObject blob
  • TIMEOUT [expected OK] /html/semantics/embedded-content/media-elements/track/track-element/track-cues-seeking.html (#46789)
    • TIMEOUT [expected FAIL] subtest: TextTrack's activeCues are indexed and updated during video playback

      Test timed out
      

  • OK /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html (#47595)
    • FAIL [expected PASS] subtest: Location sets should cancel current navigation and prevent later document.open() from doing anything

      assert_equals: Should not have FAIL in our textContent expected "PASS" but got "FAIL"
      

  • OK /pointerevents/pointerevent_change-touch-action-onpointerdown_touch.html (#46781)
    • FAIL [expected PASS] subtest: scroll should be received before the test finishes

      assert_true: scroll should be received before the test finishes expected true got false
      

  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?touch (#45445)
    • PASS [expected FAIL] subtest: Test touchpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
  • OK /resource-timing/test_resource_timing.html (#25720)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)
  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • FAIL [expected PASS] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)

      assert_equals: expected 6.010000000000005 but got 6.01
      

    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (xmlhttprequest)
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?01-05 (#38975)
    • TIMEOUT [expected PASS] subtest: Navigate a window via anchor with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a window via anchor with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via anchor with javascript:-urls in enforcing mode.
  • OK /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected FAIL] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?26-30 (#38807)
    • TIMEOUT [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a window via form-submission with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls in enforcing mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in enforcing mode.
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: buffer-stitching-1

      assert_approx_equals: Stitched sine-wave buffers at sample rate 44100 sample[16620] |-188323 - -0.8962811827659607| = 188322.10371881723 > 0.000090957 expected -0.8962811827659607 +/- 0.000090957 but got -188323
      

Stable unexpected results (7)
  • OK /html/browsers/origin/inheritance/about-blank-iframe.html
    • PASS [expected FAIL] subtest: about:blank in child browsing context aliases security origin
  • OK /html/browsers/origin/inheritance/about-blank-window.html
    • PASS [expected FAIL] subtest: about:blank in auxiliary browsing context aliases security origin
  • OK /html/browsers/origin/inheritance/about-srcdoc.html
    • PASS [expected FAIL] subtest: about:srcdoc aliases security origin
  • OK /html/browsers/origin/inheritance/javascript-url.html
    • PASS [expected FAIL] subtest: javascript: aliases security origin
  • OK /html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter_srcdoc.html
    • PASS [expected FAIL] subtest: srcdoc can access with valid 'document.domain'.
    • PASS [expected FAIL] subtest: srcdoc can access when parent modifies 'document.domain'.
  • OK /html/browsers/windows/document-domain-nested-set.window.html
    • PASS [expected FAIL] subtest: Initial about:blank frame and document.domain in the frame
  • OK /html/browsers/windows/document-domain-nested.window.html
    • PASS [expected FAIL] subtest: Initial about:blank frame and document.domain

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#33305511631) failed!

@mrobinson

mrobinson commented Aug 30, 2026 •

Copy link
Copy Markdown
Member Author

I've reworked this change to read creator_pipeline_id and to resolve the origin readily (as soon as InProgressLoad is created). This should really be done when setting up NavigationParams, but we don't really have support for that yet. It looks like this fixes the issues most of the issues with origin inheritance revealed by #47632. It can land before #47632, but won't result in any test differences in that order (since these tests are all passing for the wrong reason now).

@TimvdLippe TimvdLippe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit abd693a LGTM. Taking a look at the WindowProxy PR that is the prerequisite, but I am not well-versed in that part of Servo yet.

janeoa pushed a commit to janeoa/servo that referenced this pull request Sep 3, 2026
…cation (servo#47632)

This change re-implements the `ProxyTraps` for `WindowProxy` according
to the specification which says that they should always take into
account same origin concerns. In addition to fixing security and
correctness issues, this means that now there is only a single type of
`WindowProxy` `ProxyTrap` instead of two, simplifying the code.

This change exposes quite a few places that we should be inheriting
the `Origin`, but are not properly doing so. servo#47630 is an example
of a fix necessary to get more of these tests passing.

Testing: This gets many tests passing and reveal quite a few new
fails that are progressions.
Fixes: servo#28556.
Fixes: servo#44669.
Fixes: servo#47548.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Josh Bowman-Matthews <[email protected]>
@mrobinson
mrobinson marked this pull request as ready for review September 3, 2026 11:43
@mrobinson
mrobinson requested a review from gterzian as a code owner September 3, 2026 11:43
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 3, 2026
@mrobinson
mrobinson enabled auto-merge September 3, 2026 11:43
@mrobinson
mrobinson added this pull request to the merge queue Sep 3, 2026
Comment thread components/script/navigation.rs Outdated
.unwrap_or_else(|| MutableOrigin::from_snapshot(snapshot.clone())),
),
_ => None,
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've worked through the logic that is behind this PR, and it makes sense to me. My only concern is this block right here: I find the logic difficult to follow, because it's trying to account for both the origin aliasing behaviours as well as the origin snapshot case for normal navigations, and this is necessary in this branch because we create the InProgressLoad before branching into the logic for about:blank/about:srcdoc/normal navigation.

I've been playing around with a branch where I replaced ParserContext::load_origin with a Option<MutableOrigin>, and I moved the logic that decides what origin to provide right before each ParserContext::new. This makes the normal navigation logic very straightforward:

        let source_origin = match incomplete.load_data.load_origin {
            LoadOrigin::Script(ref snapshot) => {
                Some(MutableOrigin::from_snapshot(snapshot.clone()))
            },
            _ => None,
        };

It then becomes easier to focus on the logic for when to use origin aliasing. I'm relatively confident that we can make something that is less complex than the logic right here, but I wouldn't mind if I took that on as a followup.

What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the ParserContext hold the origin sounds good to me and that was actually the original approach I tried to take. I ran into issues because ParserContext implements FetchResponseListener which needs Send. Since MutableOrigin holds Rc it can't implement send. This approach felt cleaner than putting a Mutex around the origin or making MutableOrigin work across threads.

That said, if you have a better approach I'm all for it. My main concern is ensuring that the behavior is correct (fixing the tests that I broke when working on WindowProxy) and also that things are readable. I think long term, pages like about:blank and javascript: URLs shouldn't even use the ParserContext (once we more faithfully implement the navigation specification), so in a sense making this work properly for ParserContext is a temporary change.

It wasn't clear from your message how you'd like things to land and if you'd like to work on the followup or if you'd like me to, but either thing is absolutely fine with me. I'm just a little nervous about having this behavior be broken by my change for too long.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changes in #47777 removed the issue with FetchResponseListener, so the changes to store the origin are now striaghtforward!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're ok with following my suggestion, I can do the followup of trying to simplify the logic for the about:blank and about:srcdoc cases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I've tried to follow your suggestion in the latest version of this change. PTAL.

The [specification] says that `about:blank` and `about:srcdoc` should
inherit their source origin. This means that instead of always creating
a new opaque origin in the parser for these kind of pages, we should try
harder to preserve the source origin.

[specification]: https://html.spec.whatwg.org/multipage/#determining-the-origin

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Sep 5, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

🔨 Triggering try run (#33951463550) for Linux (WPT)

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; I find this revision much clearer to follow!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

⚠️ Try run (#33951463550) failed!

@jdm

jdm commented Sep 5, 2026

Copy link
Copy Markdown
Member

Ok, if you would rather merge the known-good previous version, I don't mind. I can look at trying to get this version to work as a follow up.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 5, 2026
@mrobinson

Copy link
Copy Markdown
Member Author

Ok, if you would rather merge the known-good previous version, I don't mind. I can look at trying to get this version to work as a follow up.

I think the issue was that I neglected to fall back to the snapshotted origin in the javascript: URL case (it doesn't seem to set the creator_pipeline_id properly). That's probably an issue but we should fall back regardless, I think. In any case the future changes we discussed will make this irrelevant hopefully!

@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Sep 5, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

🔨 Triggering try run (#33978685590) for Linux (WPT)

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

✨ Try run (#33978685590) succeeded.

@mrobinson
mrobinson added this pull request to the merge queue Sep 5, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 5, 2026
Merged via the queue into servo:main with commit fb160c4 Sep 5, 2026
75 checks passed
@mrobinson
mrobinson deleted the inherit-origin branch September 5, 2026 21:30
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 5, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…cation (servo#47632)

This change re-implements the `ProxyTraps` for `WindowProxy` according
to the specification which says that they should always take into
account same origin concerns. In addition to fixing security and
correctness issues, this means that now there is only a single type of
`WindowProxy` `ProxyTrap` instead of two, simplifying the code.

This change exposes quite a few places that we should be inheriting
the `Origin`, but are not properly doing so. servo#47630 is an example
of a fix necessary to get more of these tests passing.

Testing: This gets many tests passing and reveal quite a few new
fails that are progressions.
Fixes: servo#28556.
Fixes: servo#44669.
Fixes: servo#47548.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Josh Bowman-Matthews <[email protected]>
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…t:srcdoc` (servo#47630)

The [specification] says that `about:blank` and `about:srcdoc` should
inherit their source origin. This means that instead of always creating
a new opaque origin in the parser for these kind of pages, we should try
harder to preserve the source origin.

[specification]:
https://html.spec.whatwg.org/multipage/#determining-the-origin

Testing: This will cause more tests to pass once servo#47632 lands.

---------

Signed-off-by: Martin Robinson <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
…cation (servo#47632)

This change re-implements the `ProxyTraps` for `WindowProxy` according
to the specification which says that they should always take into
account same origin concerns. In addition to fixing security and
correctness issues, this means that now there is only a single type of
`WindowProxy` `ProxyTrap` instead of two, simplifying the code.

This change exposes quite a few places that we should be inheriting
the `Origin`, but are not properly doing so. servo#47630 is an example
of a fix necessary to get more of these tests passing.

Testing: This gets many tests passing and reveal quite a few new
fails that are progressions.
Fixes: servo#28556.
Fixes: servo#44669.
Fixes: servo#47548.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Josh Bowman-Matthews <[email protected]>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
…t:srcdoc` (servo#47630)

The [specification] says that `about:blank` and `about:srcdoc` should
inherit their source origin. This means that instead of always creating
a new opaque origin in the parser for these kind of pages, we should try
harder to preserve the source origin.

[specification]:
https://html.spec.whatwg.org/multipage/#determining-the-origin

Testing: This will cause more tests to pass once servo#47632 lands.

---------

Signed-off-by: Martin Robinson <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
jschwe added a commit to jschwe/servo that referenced this pull request Nov 5, 2026
… and `about:srcdoc` (servo#47630) (linux-wpt)

{"fail_fast": false, "matrix": [{"name": "Linux (WPT)", "workflow": "linux", "wpt": true, "profile": "checked-release", "unit_tests": false, "devtools_tests": false, "build_libservo": false, "bencher": false, "coverage": false, "capi": false, "build_args": "", "wpt_args": "", "number_of_wpt_chunks": 20}]}
jschwe pushed a commit that referenced this pull request Nov 9, 2026
…to specification (#47632)

This change re-implements the `ProxyTraps` for `WindowProxy` according
to the specification which says that they should always take into
account same origin concerns. In addition to fixing security and
correctness issues, this means that now there is only a single type of
`WindowProxy` `ProxyTrap` instead of two, simplifying the code.

This change exposes quite a few places that we should be inheriting
the `Origin`, but are not properly doing so. #47630 is an example
of a fix necessary to get more of these tests passing.

Testing: This gets many tests passing and reveal quite a few new
fails that are progressions.
Fixes: #28556.
Fixes: #44669.
Fixes: #47548.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Josh Bowman-Matthews <[email protected]>
(cherry picked from commit dfac8fa)
jschwe pushed a commit that referenced this pull request Nov 9, 2026
… and `about:srcdoc` (#47630)

The [specification] says that `about:blank` and `about:srcdoc` should
inherit their source origin. This means that instead of always creating
a new opaque origin in the parser for these kind of pages, we should try
harder to preserve the source origin.

[specification]:
https://html.spec.whatwg.org/multipage/#determining-the-origin

Testing: This will cause more tests to pass once #47632 lands.

---------

Signed-off-by: Martin Robinson <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
(cherry picked from commit fb160c4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants