Skip to content

net: Do not unconditionally overwrite origin when handling CORS - #48793

Merged
TimvdLippe merged 2 commits into
servo:mainfrom
TimvdLippe:fix-cors-opaque-origin
Oct 30, 2026
Merged

TimvdLippe merged 2 commits into
servo:mainfrom
TimvdLippe:fix-cors-opaque-origin

Conversation

@TimvdLippe

@TimvdLippe TimvdLippe commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

When the cors_flag would be set, we would always set the origin back to an opaque origin. This causes same-site and cross-site computation to break, since we would incorrectly reset the origin back to an opaque for perfectly fine origins.

Instead, remove that step (which also wasn't in the spec) and rewrite the logic to only perform when the request mode is actually Cors.

Closes #49262 (no longer required)
Closes #49263 (now obsolete)

Testing: most fetch metadata tests now pass

@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label Oct 10, 2026
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 10, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Oct 10, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (21)
  • OK [expected TIMEOUT] /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • PASS [expected NOTRUN] subtest: Overall test
    • PASS [expected FAIL] subtest: WebGL test #44
  • 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
      

  • TIMEOUT [expected OK] /content-security-policy/navigation/to-javascript-parent-initiated-parent-csp.html (#46400)
    • TIMEOUT [expected PASS] subtest: Should not have executed the javascript url for area[target=iframe].href

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Should not have executed the javascript url for area[target=otherTab].href
    • NOTRUN [expected PASS] subtest: Should not have executed the javascript url for a[target=otherTab].href
    • NOTRUN [expected PASS] subtest: Should not have executed the javascript url for a[target=iframe].href
  • OK /css/css-flexbox/text-as-flexitem-size-001.html (#47104)
    • FAIL [expected PASS] subtest: .flexbox > div 1

      assert_equals: 
      <div data-expected-width="70" data-expected-height="35">
              <p>xx xxx</p>
              <p>xx</p>
            </div>
      width expected 70 but got 46
      

    • FAIL [expected PASS] subtest: .flexbox > div 2

      assert_equals: 
      <div data-expected-width="50" data-expected-height="45">
              <p>xx xxx</p>
              <p>xx</p>
            </div>
      width expected 50 but got 46
      

    • FAIL [expected PASS] subtest: .flexbox > div 5

      assert_equals: 
      <div style="height: 30px" data-expected-width="70" data-expected-height="30">
              <p>xx xxx</p>
              <p>xx</p>
            </div>
      width expected 70 but got 46
      

    • FAIL [expected PASS] subtest: .flexbox > div 8

      assert_equals: 
      <div style="min-height: 40px" data-expected-width="70" data-expected-height="40">
              <p>xx xxx</p>
              <p>xx</p>
            </div>
      width expected 70 but got 46
      

    • FAIL [expected PASS] subtest: .flexbox > div 11

      assert_equals: 
      <div style="max-height: 20px" data-expected-width="70" data-expected-height="20">
              <p>xx xxx</p>
              <p>xx</p>
            </div>
      width expected 70 but got 46
      

  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove self via innerHTML

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

  • OK [expected TIMEOUT] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • PASS [expected TIMEOUT] subtest: [keepalive][iframe][load] mixed content redirect; setting up
  • OK /html/browsers/browsing-the-web/navigating-across-documents/008.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url and href navigation
  • TIMEOUT [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-with-user-activation-in-parent.window.html (#48205)
    • TIMEOUT [expected FAIL] subtest: Cross-origin top navigation is blocked without user activation, even if the parent has user activation

      Test timed out
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • PASS [expected FAIL] subtest: Cross-origin navigation started from unload handler must be ignored
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • FAIL [expected PASS] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation

      assert_equals: expected "" but got "#fragment"
      

  • TIMEOUT [expected OK] /html/browsers/windows/consume-user-activation/window-open-multi-global.html (#47399)
    • TIMEOUT [expected FAIL] subtest: window.open() and consuming user activation with multiple globals in play

      Test timed out
      

  • TIMEOUT /html/semantics/embedded-content/media-elements/autoplay-default-permissions-policy.https.sub.html (#46805)
    • TIMEOUT [expected PASS] subtest: Default "autoplay" feature policy ["self"] allows the top-level document.

      Test timed out
      

  • 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/dynamic-markup-insertion/document-write/iframe_005.html (#43671)
    • PASS [expected FAIL] subtest: document.write external script into iframe write back into parent
  • 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 /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/internal-resources-not-counted.html
    • PASS [expected FAIL] subtest: Resource timing should not include internal resources.
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?31-35 (#38034)
    • PASS [expected TIMEOUT] subtest: Navigate a frame via form-submission with javascript:-urls in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
    • FAIL [expected NOTRUN] subtest: Navigate a window via form-submission 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 form-submission 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!\""
      

    • FAIL [expected NOTRUN] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode.

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

  • 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 /webdriver/tests/classic/element_click/single_tick.py (#48249)
    • FAIL [expected PASS] subtest: test_element_click_dispatches_actions_in_a_single_tick

      assert not True
      

  • OK /webxr/xrSession_features_deviceSupport.https.html (#24357)
    • FAIL [expected PASS] subtest: Immersive XRSession requests with no supported device should reject

      assert_unreached: Should have rejected: undefined Reached unreachable code
      

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

      Test timed out
      

  • OK /css/css-overflow/scrollable-overflow-textarea.html (#47563)
    • PASS [expected FAIL] subtest: #textarea 1
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • FAIL [expected PASS] subtest: Link with onclick navigation and href navigation

      assert_equals: expected "href" but got "click"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)
    • PASS [expected FAIL] subtest: Same-Document Referrer from Refresh
  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • PASS [expected FAIL] subtest: traversing history must also traverse hash changes
  • CRASH [expected TIMEOUT] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/media-elements/autoplay-allowed-by-permissions-policy.https.sub.html (#46803)
    • TIMEOUT [expected PASS] subtest: Permissions-Policy header: autoplay * allows same-origin iframes.

      Test timed out
      

  • 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.
  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.

      assert_true: Timed out waiting for lostpointercapture expected true got false
      

    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.

      assert_array_equals: Received events: innerFrame received pointerdown,innerFrame received pointermove,innerFrame received pointerup,innerFrame received lostpointercapture lengths differ, expected array ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup"] length 3, got ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup", "innerFrame received lostpointercapture"] length 4
      

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

      assert_equals: expected 8.650000000000002 but got 8.65
      

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?06-10 (#37920)
    • TIMEOUT [expected PASS] subtest: Navigate a frame via anchor with javascript:-urls in report-only mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via anchor with javascript:-urls w/ default policy in report-only mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via anchor with javascript:-urls w/ a default policy throwing an exception in enforcing mode.
    • NOTRUN [expected FAIL] subtest: Navigate a window via anchor with javascript:-urls w/ a default policy throwing an exception in report-only mode.
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?11-15 (#44834)
    • PASS [expected TIMEOUT] subtest: Navigate a window via area with javascript:-urls in report-only mode.
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • PASS [expected TIMEOUT] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via area with javascript:-urls w/ default policy in report-only mode.
Stable unexpected results (6)
  • OK /navigation-timing/nav2-test-redirect-chain-xserver-final-original-origin.html
    • FAIL [expected PASS] subtest: Navigation Timing 2 WPT

      uncaught exception: Error: assert_equals: Expected redirectCount to be 0. expected 0 but got 3
      

  • OK /navigation-timing/nav2-test-redirect-chain-xserver-partial-opt-in.html
    • FAIL [expected PASS] subtest: Navigation Timing 2 WPT

      uncaught exception: Error: assert_equals: Expected redirectCount to be 0. expected 0 but got 3
      

  • OK /navigation-timing/nav2-test-redirect-xserver.html
    • FAIL [expected PASS] subtest: Navigation Timing 2 WPT

      uncaught exception: Error: assert_equals: Expected redirectCount to be 0. expected 0 but got 2
      

  • OK /navigation-timing/redirect-tao.html
    • FAIL [expected PASS] subtest: Hidden when the redirect opts in to a non-destination origin

      assert_equals: redirectCount is hidden expected 0 but got 2
      

    • FAIL [expected PASS] subtest: Hidden when only part of the chain opts in to the destination origin

      assert_equals: redirectCount is hidden expected 0 but got 3
      

    • FAIL [expected PASS] subtest: Hidden for a no-referrer navigation even when the redirect opts in

      assert_equals: redirectCount is hidden expected 0 but got 2
      

  • OK /navigation-timing/test-timing-xserver-redirect.html
    • FAIL [expected PASS] subtest: navigation.redirectCount == 0 on a cross-origin server redirected navigation

      assert_equals: navigation.redirectCount == 0 on a cross-origin server redirected navigation expected 0 but got 2
      

  • OK /navigation-timing/unload-event-same-origin-check.html
    • FAIL [expected PASS] subtest: Redirect chain with a partial TAO opt-in

      assert_equals: Expected redirectCount to be 0 expected 0 but got 3
      

    • FAIL [expected PASS] subtest: Same-cross-same redirect chain with no TAO opt-in

      assert_equals: Expected redirectCount to be 0 expected 0 but got 2
      

    • FAIL [expected PASS] subtest: cross-cross-same Redirect chain with no TAO opt-in

      assert_equals: Expected redirectCount to be 0 expected 0 but got 2
      

    • FAIL [expected PASS] subtest: No previous document with cross origin redirect

      assert_equals: Expected redirectCount to be 0 expected 0 but got 2
      

    • FAIL [expected PASS] subtest: No previous document with cross origin redirect with TAO

      assert_equals: Expected redirectCount to be 0 expected 0 but got 3
      

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#38040990776) failed!

@TimvdLippe
TimvdLippe marked this pull request as draft October 10, 2026 14:45
@TimvdLippe

Copy link
Copy Markdown
Contributor Author

Okay, I figured out why this is happening. Basically we are missing the following from https://www.w3.org/TR/navigation-timing-2/#performancenavigation-redirectcount :

If there is no redirect or there is any redirect that is not from the same origin as the destination document, this attribute must return zero.

That should be set by step 15 of https://html.spec.whatwg.org/multipage/document-lifecycle.html#initialise-the-document-object but we don't implement that yet. Instead, we set that timing in

context
.timing
.set_attribute(ResourceAttribute::RedirectCount(
fetch_params.request.redirect_count as u16,
));
and unconditionally set the resource timing in
document.set_resource_fetch_timing(timing);

To make that happen, we first need to implement the FetchController concept to hold this information. Working on that first. #rabbithole

TimvdLippe added a commit to TimvdLippe/servo that referenced this pull request Oct 10, 2026
This is the first step to make various information available on the
controller to be used for redirect computation. That's required to be
able to fix the current navigation timing to set the redirectCount to
zero when appropriate, see servo#48793

It also removes the unused canceller from `Document` and moves it to a
separate file in `net_traits`.

Testing: it compiles

Signed-off-by: Tim van der Lippe <[email protected]>
TimvdLippe added a commit to TimvdLippe/servo that referenced this pull request Oct 11, 2026
This is the first step to make various information available on the
controller to be used for redirect computation. That's required to be
able to fix the current navigation timing to set the redirectCount to
zero when appropriate, see servo#48793

It also removes the unused canceller from `Document` and moves it to a
separate file in `net_traits`.

Testing: it compiles

Signed-off-by: Tim van der Lippe <[email protected]>
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-servo__servo that referenced this pull request Oct 11, 2026
This is the first step to make various information available on the
controller to be used for redirect computation. That's required to be
able to fix the current navigation timing to set the redirectCount to
zero when appropriate, see servo#48793

It also removes the unused canceller from `Document` and moves it to a
separate file in `net_traits`.

Testing: it compiles

Signed-off-by: Tim van der Lippe <[email protected]>
hhhwsqhhh pushed a commit to hhhwsqhhh/servo that referenced this pull request Oct 12, 2026
This is the first step to make various information available on the
controller to be used for redirect computation. That's required to be
able to fix the current navigation timing to set the redirectCount to
zero when appropriate, see servo#48793

It also removes the unused canceller from `Document` and moves it to a
separate file in `net_traits`.

Testing: it compiles

Signed-off-by: Tim van der Lippe <[email protected]>
When the cors_flag would be set, we would always set the origin back
to an opaque origin. This causes same-site and cross-site computation
to break, since we would incorrectly reset the origin back
to an opaque for perfectly fine origins.

Instead, remove that step (which also wasn't in the spec) and rewrite
the logic to only perform when the request mode is actually Cors.

This also required clearing the `redirect_count` when the response taint
is not same-origin, since we now correctly handle origins.

Testing: most fetch metadata tests now pass

Signed-off-by: Tim van der Lippe <[email protected]>
@TimvdLippe
TimvdLippe force-pushed the fix-cors-opaque-origin branch from ea08d07 to 40c1933 Compare October 30, 2026 08:43
@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label Oct 30, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Oct 30, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

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

      assert_false: expected false got true
      

  • TIMEOUT [expected OK] /content-security-policy/inheritance/document-write-iframe.html (#47620)
    • TIMEOUT [expected PASS] subtest: document.open() keeps inherited CSPs on transient about:blank.

      Test timed out
      

  • OK /css/CSS2/linebox/inline-negative-margin-001.html (#43763)
    • FAIL [expected PASS] subtest: [data-expected-height] 3

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;123 &lt;span style="margin-left: -4ch"&gt;1234 &lt;/span&gt;&lt;/div&gt;
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 4

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;123 &lt;span style="margin-left: -4ch"&gt;123 &lt;/span&gt;&lt;/div&gt;
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 5

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;&lt;img class="w4"&gt;&lt;span style="margin-left: -4ch"&gt;123&lt;/span&gt;&lt;/div&gt;
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 6

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;&lt;img class="w5"&gt;&lt;span style="margin-left: -5ch"&gt;123&lt;/span&gt;&lt;/div&gt;
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 8

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;&lt;img class="w4"&gt;&lt;img class="w1" style="margin-left: -1ch"&gt;&lt;/div&gt;
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 10

      assert_equals: 
      &lt;div class="w4" data-expected-height="10"&gt;&lt;img class="w5"&gt;&lt;img class="w1" style="margin-left: -2ch"&gt;&lt;/div&gt;
      height expected 10 but got 20
      

  • FAIL [expected PASS] /css/css-backgrounds/background-size-041.html
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove self via innerHTML

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

  • 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)"
      

  • OK [expected ERROR] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • PASS [expected FAIL] subtest: Cross-origin navigation started from unload handler must be ignored
  • TIMEOUT [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html (#44099)
    • TIMEOUT [expected FAIL] subtest: Replace before load, triggered by submitButton.click()

      Test timed out
      

  • CRASH [expected OK] /html/browsers/browsing-the-web/overlapping-navigations-and-traversals/nav-cancelation-1.html
  • CRASH [expected OK] /html/browsers/history/the-location-interface/assign-replace-from-iframe.html (#47679)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/media-elements/track/track-element/track-cues-seeking.html (#46789)
    • TIMEOUT [expected PASS] subtest: TextTrack's activeCues are indexed and updated during video playback

      Test timed out
      

  • CRASH [expected ERROR] /html/semantics/forms/the-select-element/customizable-select/select-appearance-button-after-span.html
  • 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
  • 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 (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html
    • 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 /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."
      

  • 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 /xhr/send-redirect.htm (#32026)
    • FAIL [expected PASS] subtest: XMLHttpRequest: send() - Redirects (basics) (303, GET, content.py)

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

Stable unexpected results that are known to be intermittent (5)
  • 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)
    • FAIL [expected TIMEOUT] subtest: Permissions-Policy header: autoplay "none" disallows same-origin iframes.

      assert_false: autoplay expected false got true
      

  • 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"])
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
  • OK /mixed-content/tentative/autoupgrades/mixed-content-cors.https.sub.html (#41123)
    • FAIL [expected PASS] subtest: Cross-Origin video should get upgraded even if CORS is set

      assert_equals: Length. Other host expected 1 but got Infinity
      

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#41028402350) failed!

@TimvdLippe
TimvdLippe requested a review from jdm October 30, 2026 09:26
@TimvdLippe
TimvdLippe marked this pull request as ready for review October 30, 2026 09:26
@TimvdLippe
TimvdLippe requested a review from gterzian as a code owner October 30, 2026 09:26
@TimvdLippe

Copy link
Copy Markdown
Contributor Author

One job failed on bootstrap dependencies, but probably it's all fine. This supersedes the other PR about fetch controller and can be landed as-is without regressions like before.

Comment thread components/shared/net/lib.rs Resolved
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 30, 2026
Co-authored-by: Martin Robinson <[email protected]>
Signed-off-by: Tim van der Lippe <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 30, 2026
@TimvdLippe
TimvdLippe enabled auto-merge October 30, 2026 09:36
@TimvdLippe
TimvdLippe added this pull request to the merge queue Oct 30, 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 Oct 30, 2026
Merged via the queue into servo:main with commit 4dfd270 Oct 30, 2026
38 checks passed
@TimvdLippe
TimvdLippe deleted the fix-cors-opaque-origin branch October 30, 2026 10:56
@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 Oct 30, 2026
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.

Return FetchController from fetch

3 participants