Skip to content

feat: Implement display for text selection and caret - #35830

Merged
wusyong merged 1 commit into
servo:mainfrom
dklassic:feat-caret-and-text-selection
Apr 10, 2025
Merged

wusyong merged 1 commit into
servo:mainfrom
dklassic:feat-caret-and-text-selection

Conversation

@dklassic

@dklassic dklassic commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces an initial, straightforward implementation for displaying text selection and the caret.

This is achieved by passing the selection range and insertion point index down to TextFragment, along with the starting offset of each TextFragment to determine the proper range for displaying the caret and text selection. Additionally, the selected_style was passed into TextFragment to specify the background color.

During the final build phase, although whitespace is typically ignored when constructing glyphs, we still need to retrieve it to render both the caret and text selection at the correct location. This ensures that whitespace is not overlooked when the TextFragment contains an insertion point or selection range.

There are several improvements yet to be made, including:

  • The caret is static and does not flash.
  • The caret is not rendered when the input field is empty. (I suppose there should be an easy fix somewhere but I haven't found it yet)

Working Examples

macOS

2025-03-07.11.11.58.mov

Windows

20250306-1753-42.2758224.mp4

Linux

Screencast.from.03-07-2025.11_05_41.AM.webm

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix part of No blinking cursor in editable elements #33237 (But the cursor isn't blinking yet)
  • These changes do not require tests because there's no behavior change

@dklassic

dklassic commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor Author
2025-03-08.1.01.52.mov

Implemented proper caret display during selection: Previously the caret is give by selection range as well, which contains no information on where the selection started.

@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch 3 times, most recently from 3aea509 to 2514676 Compare March 8, 2025 02:42
@dklassic
dklassic marked this pull request as ready for review March 8, 2025 10:02
@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch 3 times, most recently from 1aed607 to 6dfe6ae Compare March 8, 2025 10:54
@dklassic

dklassic commented Mar 8, 2025

Copy link
Copy Markdown
Contributor Author
2025-03-08.8.09.24.mov

Switch to using containing_block's full height for unified height.

Comment thread components/layout/text_run.rs Resolved
@JoshBashed

Copy link
Copy Markdown

That's amazing, i couldn't figure out how to do that.

@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch 2 times, most recently from d7b965c to 40e5d1c Compare March 10, 2025 10:46
Comment thread components/fonts/glyph.rs Resolved
@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch from 40e5d1c to 61f6847 Compare March 11, 2025 07:37
@dklassic
dklassic requested a review from wusyong March 11, 2025 07:37
@dklassic

dklassic commented Mar 11, 2025 •

Copy link
Copy Markdown
Contributor Author

➤ Running cargo-deny checks...

| /home/runner/work/servo/servo/deny.toml:303: humantime is unmaintained: humantime 2.1.0 registry+https://github.com/rust-lang/crates.io-index

https://github.com/servo/servo/actions/runs/13782729005/job/38543813078?pr=35830

Huh I have no idea why this is happening with this lint error

@dklassic

Copy link
Copy Markdown
Contributor Author

I’ll wait for #35906 to be merged then rebase this

Comment thread components/fonts/glyph.rs Resolved
@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch 3 times, most recently from 6ce0c7b to 56d7018 Compare March 12, 2025 12:07
@dklassic
dklassic requested a review from mrobinson March 12, 2025 12:47
@dklassic

dklassic commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor Author

@mrobinson I've made changes and just to recap there are some remaining issues that requires your input:

#35830 (comment)

There are several pre-existing code labeling comments in this part of the code, should I strip them all out as well?

Well, actually, I guess I'll just strip them out as well.

#35830 (comment)

The old layout depends on this implementation, hence to minimize the code change I opted to implement a separate insertion_point instead of making then selection range directional. Should I change it do directional? Also I'm not sure what the policies are when the old layout is involved, afaik they're now there just for reference but the CI will report failure if the old layout failed to build. So should I change it to directional while making code changes to old layout?

I guess I can make it directional without problem now that old layout is being removed in:
#35943

@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 10, 2025
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (28)
  • OK /content-security-policy/embedded-enforcement/subsumption_algorithm-nonces.html
    • PASS [expected FAIL] subtest: Nonce intersection is still done on exact match - matching nonces.
    • PASS [expected FAIL] subtest: Other expressions still have to be subsumed - negative test
  • OK /content-security-policy/frame-ancestors/frame-ancestors-path-ignored.window.html
    • PASS [expected FAIL] subtest: A 'frame-ancestors' CSP directive with a URL that includes a path should be ignored.
  • OK /encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-x-euc-jp.html?1-1000 (#35697)
    • FAIL [expected PASS] subtest: U+30AE ギ %A5%AE

      assert_equals: expected "%A5%AE" but got ""
      

    • FAIL [expected PASS] subtest: U+30AF ク %A5%AF

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B0 グ %A5%B0

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B1 ケ %A5%B1

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B2 ゲ %A5%B2

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B3 コ %A5%B3

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B4 ゴ %A5%B4

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B5 サ %A5%B5

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B6 ザ %A5%B6

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B7 シ %A5%B7

      str is undefined
      

    • And 390 more unexpected results...
  • OK /encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc.html?1-1000
    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+81 � %26%23129%3B

      assert_equals: expected "%26%23129%3B" but got ""
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+82 � %26%23130%3B

      assert_equals: expected (string) "%26%23130%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+83 � %26%23131%3B

      assert_equals: expected (string) "%26%23131%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+84 � %26%23132%3B

      assert_equals: expected (string) "%26%23132%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+85 � %26%23133%3B

      assert_equals: expected (string) "%26%23133%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+86 � %26%23134%3B

      assert_equals: expected (string) "%26%23134%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+87 � %26%23135%3B

      assert_equals: expected (string) "%26%23135%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+88 � %26%23136%3B

      assert_equals: expected (string) "%26%23136%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+89 � %26%23137%3B

      assert_equals: expected (string) "%26%23137%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: latin, greek, cyrillic, etc U+8A � %26%23138%3B

      assert_equals: expected (string) "%26%23138%3B" but got (undefined) undefined
      

    • And 390 more unexpected results...
  • TIMEOUT [expected OK] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • TIMEOUT [expected PASS] subtest: [keepalive][iframe][load] mixed content redirect; setting up

      Test timed out
      

  • OK /fetch/content-length/api-and-duplicate-headers.any.html (#35873)
    • FAIL [expected PASS] subtest: fetch() and duplicate Content-Length/Content-Type headers

      promise_test: Unhandled rejection with value: object "TypeError: Network error occurred"
      

  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • PASS [expected FAIL] subtest: sec-fetch-dest
    • PASS [expected FAIL] subtest: sec-fetch-user
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Cross-site
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Same site
  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • TIMEOUT [expected PASS] subtest: background-image sec-fetch-site - Not sent to non-trustworthy cross-site destination

      Test timed out
      

  • 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
  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url with document.write and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/empty-iframe-load-event.html (#29066)
    • FAIL [expected PASS] subtest: Check execution order from nested timeout

      assert_equals: Expected nested setTimeout to run second expected true but got false
      

    • FAIL [expected PASS] subtest: Check execution order on load handler

      assert_equals: Expected onload to run first expected false but got true
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-aboutblank-navigate-immediately.html (#29048)
    • FAIL [expected PASS] subtest: Navigating to a different document with link click

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1" but got "about:blank"
      

  • OK /html/browsers/history/the-history-interface/traverse_the_history_3.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • OK [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-colorSpaceConversion.html (#34151)
  • TIMEOUT [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-flipY.html (#32745)
    • TIMEOUT [expected FAIL] subtest: createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "from-image", and drawImage on the created ImageBitmap

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "flipY", and drawImage on the created ImageBitmap
    • NOTRUN [expected FAIL] subtest: createImageBitmap from a bitmap HTMLImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap
    • NOTRUN [expected FAIL] subtest: createImageBitmap from a bitmap HTMLImageElement imageOrientation: "flipY", and drawImage on the created ImageBitmap
    • NOTRUN [expected FAIL] subtest: createImageBitmap from a vector HTMLImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap
    • NOTRUN [expected FAIL] subtest: createImageBitmap from a vector HTMLImageElement imageOrientation: "flipY", and drawImage on the created ImageBitmap
    • NOTRUN [expected TIMEOUT] subtest: createImageBitmap from a bitmap SVGImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap
  • TIMEOUT [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-premultiplyAlpha.html (#35881)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/autofocus-dialog.html (#29087)
    • TIMEOUT [expected FAIL] subtest: <dialog>-contained autofocus element gets focused when the dialog is shown

      Test timed out
      

  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/document-with-fragment-empty.html (#28259)
    • TIMEOUT [expected FAIL] subtest: Autofocus elements in top-level browsing context's documents with empty fragments should work.

      Test timed out
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • OK [expected TIMEOUT] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html (#29724)
    • PASS [expected TIMEOUT] subtest: reparent-form-during-planned-navigation-task
  • OK /html/semantics/forms/form-submission-0/urlencoded2.window.html (#28687)
    • PASS [expected FAIL] subtest: application/x-www-form-urlencoded: \r\n in value (normal form)
  • OK /html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)
    • FAIL [expected PASS] subtest: adding several types of scripts through the DOM and removing some of them confuses scheduler

      assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
      

  • OK /html/semantics/scripting-1/the-script-element/module/dynamic-import/blob-url.any.html (#33948)
    • FAIL [expected PASS] subtest: Revoking a blob URL immediately after calling import will not fail

      promise_test: Unhandled rejection with value: object "TypeError: Dynamic import failed"
      

  • OK [expected TIMEOUT] /performance-timeline/navigation-id-detached-frame.tentative.html (#34773)
    • PASS [expected TIMEOUT] subtest: The navigation_id getter does not crash a window of detached frame
  • TIMEOUT [expected OK] /resource-timing/nested-context-navigations-iframe.html (#24311)
    • TIMEOUT [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent, even after history navigations by the parent

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent, even after history navigations by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe refreshes are not observable by the parent
  • ERROR /service-workers/idlharness.https.any.html (#36250)
    • TIMEOUT [expected PASS] subtest: ServiceWorkerContainer interface: operation register((TrustedScriptURL or USVString), optional RegistrationOptions)

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation enable()

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation disable()

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation setHeaderValue(ByteString)

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation getState()

      Test timed out
      

  • CRASH [expected OK] /webaudio/the-audio-api/the-audiocontext-interface/audiocontext-state-change-after-close.http.window.html (#36368)
  • CRASH [expected OK] /webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html (#21408)
Stable unexpected results that are known to be intermittent (18)
  • OK /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • FAIL [expected PASS] subtest: WebGL test #44

      assert_true: could not create image (SVG) expected true got false
      

  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-stretch: '100%' should prefer '100%' over '110% 120%'

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

  • ERROR /fetch/metadata/generated/serviceworker.https.sub.html (#36247)
    • FAIL [expected PASS] subtest: sec-fetch-site - Same origin, no options - registration

      promise_test: Unhandled rejection with value: object "Error: Failed to query for recorded headers."
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc.html (#34819)
    • FAIL [expected PASS] subtest: form submission

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1=" but got "about:blank"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • FAIL [expected PASS] subtest: Cross-origin navigation started from unload handler must be ignored

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

  • OK /html/browsers/history/the-history-interface/traverse_the_history_5.html (#21383)
    • FAIL [expected PASS] subtest: Multiple history traversals, last would be aborted

      assert_array_equals: Pages opened during history navigation expected property 1 to be 5 but got 3 (expected array [6, 5] got [6, 3])
      

  • PASS [expected FAIL] /html/canvas/element/manual/text/canvas.2d.disconnected.html (#30063)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.html (#30164)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • TIMEOUT [expected FAIL] subtest: Element with tabindex should support autofocus

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Non-HTMLElement should not support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus should support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus including no focusable descendants should be skipped
    • NOTRUN [expected FAIL] subtest: Area element should support autofocus
  • TIMEOUT /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html (#22647)
    • TIMEOUT [expected FAIL] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      Test timed out
      

  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
  • OK [expected CRASH] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • FAIL [expected PASS] subtest: Verifies that location navigations take precedence when following form submissions.

      assert_equals: expected "/html/semantics/forms/form-submission-0/resources/location.html" but got "/html/semantics/forms/form-submission-0/resources/form.html"
      

  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • FAIL [expected PASS] subtest: Reload domComplete > Original domComplete

      assert_true: Reload domComplete > Original domComplete expected true got false
      

    • FAIL [expected PASS] subtest: Reload loadEventEnd > Original loadEventEnd

      assert_true: Reload loadEventEnd > Original loadEventEnd expected true got false
      

    • FAIL [expected PASS] subtest: Reload loadEventStart > Original loadEventStart

      assert_true: Reload loadEventStart > Original loadEventStart expected true got false
      

  • OK /resize-observer/eventloop.html (#33599)
    • PASS [expected FAIL] subtest: test0: multiple notifications inside same event loop
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}. Index Actual Expected AbsError RelError Test threshold [14680] -1.0832806547189567e+22 2.0512369275093079e-1 1.0832806547189567e+22 5.2811093647495833e+22 3.8985999999999999e-3 [14681] 1.1480505578219891e-2 1.4340442419052124e-1 1.3192391861230135e-1 9.1994315626575540e-1 3.8985999999999999e-3 Max AbsError of 1.0832806547189567e+22 at index of 14680. Max RelError of 5.2811093647495833e+22 at index of 14680.

      assert_true: expected true got false
      

    • FAIL [expected PASS] subtest: X SNR (-397.26073380721175 dB) is not greater than or equal to 65.737. Got -397.26073380721175.

      assert_true: expected true got false
      

Stable unexpected results (2)
  • TIMEOUT [expected OK] /_mozilla/mozilla/img_placeholder_load.html
    • TIMEOUT [expected PASS] subtest: Loading a placeholder image should trigger an error on the img element

      Test timed out
      

  • FAIL [expected PASS] /css/css-overflow/text-overflow-ellipsis-editing-input.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14378847958) failed.

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (1)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • TIMEOUT [expected FAIL] subtest: Contenteditable element should support autofocus

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: Element with tabindex should support autofocus
    • NOTRUN [expected PASS] subtest: Non-HTMLElement should not support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus should support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus including no focusable descendants should be skipped
    • NOTRUN [expected FAIL] subtest: Area element should support autofocus
Stable unexpected results that are known to be intermittent (2)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url with document.write and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • FAIL [expected PASS] subtest: Cross-origin navigation started from unload handler must be ignored

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

Stable unexpected results (1)
  • FAIL [expected PASS] /css/css-overflow/text-overflow-ellipsis-editing-input.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14378847958) failed.

@jdm
jdm dismissed mrobinson’s stale review April 10, 2025 12:10

Changes addressed.

@jdm
jdm added this pull request to the merge queue Apr 10, 2025
@dklassic

dklassic commented Apr 10, 2025 •

Copy link
Copy Markdown
Contributor Author

⚠️ Try run (#14378847958) failed.

hold up @jdm the WPT test failed.

Did a quick check the failing test is css/css-overflow/text-overflow-ellipsis-editing-input.html in which the text-overflow-ellipsis-editing-input.html is focused, therefore the caret is being rendered, while text-overflow-ellipsis-editing-input-ref.html is not focused an therefore the caret isn't being rendered.

<script>
input_element.offsetTop;
input_element.focus();
</script>

How do we proceed with fixing this? From what I can tell I don't think the ref shouldn't be focused?

Edit: weirdly enough I've tested WPT beforehand (weeks ago when the PR is first readied to be reviewed) and it actually passed this test .

@jdm
jdm removed this pull request from the merge queue due to a manual request Apr 10, 2025
@wusyong

wusyong commented Apr 10, 2025

Copy link
Copy Markdown
Member

@dklassic I think it's because the test set caret color to be transparent?

@dklassic

Copy link
Copy Markdown
Contributor Author

@dklassic I think it's because the test set caret color to be transparent?

I think you're right, currently the color is directly derived by fragment.parent_style.clone_color(), which is probably why it does not respect caret-color: transparent css properly, I should try to retrieve the caret color properly

@wusyong

wusyong commented Apr 10, 2025

Copy link
Copy Markdown
Member

After looking into a bit, I think it's okay to make the regression. The fragment doesn't seem to contain information about caret-color, and the only place I can find is in stylo. We can do follow-up issue to resolve it. I also plan to make tracking issue to track all issues about selection and caret.

@dklassic
dklassic force-pushed the feat-caret-and-text-selection branch from 49742e7 to 536d214 Compare April 10, 2025 13:18
@dklassic dklassic added the T-linux-wpt Do a try run of the WPT label Apr 10, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 10, 2025
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (20)
  • FAIL [expected PASS] /_mozilla/css/dirty_viewport.html (#13731)
  • FAIL [expected PASS] /css/css-text/text-transform/text-transform-capitalize-018.html
  • OK /encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han.html?1-1000 (#35697)
    • FAIL [expected PASS] subtest: cjk U+4E02 丂 %26%2319970%3B

      assert_equals: expected "%26%2319970%3B" but got ""
      

    • FAIL [expected PASS] subtest: cjk U+4E04 丄 %26%2319972%3B

      assert_equals: expected (string) "%26%2319972%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E05 丅 %26%2319973%3B

      assert_equals: expected (string) "%26%2319973%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E06 丆 %26%2319974%3B

      assert_equals: expected (string) "%26%2319974%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E0C 丌 %26%2319980%3B

      assert_equals: expected (string) "%26%2319980%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E0F 丏 %26%2319983%3B

      assert_equals: expected (string) "%26%2319983%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E12 丒 %26%2319986%3B

      assert_equals: expected (string) "%26%2319986%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E13 专 %26%2319987%3B

      assert_equals: expected (string) "%26%2319987%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E1A 业 %26%2319994%3B

      assert_equals: expected (string) "%26%2319994%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: cjk U+4E1B 丛 %26%2319995%3B

      assert_equals: expected (string) "%26%2319995%3B" but got (undefined) undefined
      

    • And 390 more unexpected results...
  • OK /encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul.html?1-1000
    • FAIL [expected PASS] subtest: hangul U+AD90 궐 %26%2344432%3B

      assert_equals: expected "%26%2344432%3B" but got ""
      

    • FAIL [expected PASS] subtest: hangul U+AD91 궑 %26%2344433%3B

      assert_equals: expected (string) "%26%2344433%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD92 궒 %26%2344434%3B

      assert_equals: expected (string) "%26%2344434%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD93 궓 %26%2344435%3B

      assert_equals: expected (string) "%26%2344435%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD94 궔 %26%2344436%3B

      assert_equals: expected (string) "%26%2344436%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD95 궕 %26%2344437%3B

      assert_equals: expected (string) "%26%2344437%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD96 궖 %26%2344438%3B

      assert_equals: expected (string) "%26%2344438%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD97 궗 %26%2344439%3B

      assert_equals: expected (string) "%26%2344439%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD98 궘 %26%2344440%3B

      assert_equals: expected (string) "%26%2344440%3B" but got (undefined) undefined
      

    • FAIL [expected PASS] subtest: hangul U+AD99 궙 %26%2344441%3B

      assert_equals: expected (string) "%26%2344441%3B" but got (undefined) undefined
      

    • And 390 more unexpected results...
  • 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
  • OK /html/browsers/browsing-the-web/navigating-across-documents/empty-iframe-load-event.html (#29066)
    • FAIL [expected PASS] subtest: Check execution order from nested timeout

      assert_equals: Expected nested setTimeout to run second expected true but got false
      

    • FAIL [expected PASS] subtest: Check execution order on load handler

      assert_equals: Expected onload to run first expected false but got true
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/a-click.html (#28697)
    • PASS [expected FAIL] subtest: aElement.click() before the load event must NOT replace
  • OK [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-premultiplyAlpha.html (#35881)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.html (#34117)
  • OK /html/interaction/focus/the-autofocus-attribute/document-with-fragment-valid.html (#28259)
    • PASS [expected FAIL] subtest: Autofocus elements in top-level browsing context's documents with URL fragments should be skipped.
  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • FAIL [expected PASS] subtest: Verifies that location navigations take precedence when following form submissions.

      assert_equals: expected "/html/semantics/forms/form-submission-0/resources/location.html" but got "/html/semantics/forms/form-submission-0/resources/form.html"
      

  • OK /html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)
    • PASS [expected FAIL] subtest: multipart/form-data: 0x00 in name (normal form)
  • OK /html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)
    • FAIL [expected PASS] subtest: adding several types of scripts through the DOM and removing some of them confuses scheduler

      assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
      

  • OK /html/semantics/scripting-1/the-script-element/module/dynamic-import/blob-url.any.html (#33948)
    • FAIL [expected PASS] subtest: Revoking a blob URL immediately after calling import will not fail

      promise_test: Unhandled rejection with value: object "TypeError: Dynamic import failed"
      

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

  • TIMEOUT [expected OK] /resource-timing/nested-context-navigations-iframe.html (#24311)
    • TIMEOUT [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent, even after history navigations by the parent

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent, even after history navigations by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe refreshes are not observable by the parent
  • TIMEOUT /resource-timing/test_resource_timing.https.html (#25216)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (img)
  • OK /xhr/open-url-multi-window-5.htm (#23360)
    • FAIL [expected PASS] subtest: XMLHttpRequest: open() resolving URLs (multi-Window; 5)

      assert_throws_dom: function "function() {client.open("GET", "...") }" did not throw
      

Stable unexpected results that are known to be intermittent (21)
  • OK /FileAPI/url/url-with-fetch.any.worker.html (#21517)
    • FAIL [expected PASS] subtest: Revoke blob URL after calling fetch, fetch should succeed

      promise_test: Unhandled rejection with value: object "TypeError: Network error occurred"
      

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

      assert_true: could not create image (SVG) expected true got false
      

  • FAIL [expected PASS] /css/css-tables/table-cell-overflow-auto-scrolled.html (#35011)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url with document.write and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc.html (#34819)
    • PASS [expected FAIL] subtest: link click
    • FAIL [expected PASS] subtest: form submission

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1=" but got "about:blank"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-aboutblank-navigate-immediately.html (#29048)
    • FAIL [expected PASS] subtest: Navigating to a different document with form submission

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1=" but got "about:blank"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • FAIL [expected PASS] subtest: Cross-origin navigation started from unload handler must be ignored

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

  • OK [expected CRASH] /html/canvas/element/canvas-host/2d.canvas.host.size.large.html (#36155)
  • OK [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-colorSpaceConversion.html (#34151)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.html (#30164)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • TIMEOUT [expected FAIL] subtest: Contenteditable element should support autofocus

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: Element with tabindex should support autofocus
    • NOTRUN [expected PASS] subtest: Non-HTMLElement should not support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus should support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus including no focusable descendants should be skipped
    • NOTRUN [expected FAIL] subtest: Area element should support autofocus
  • OK /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
    • FAIL [expected PASS] subtest: Reloading iframe loading='lazy' before it is loaded: location.reload

      uncaught exception: Error: assert_equals: expected "http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/support/blank.htm?src" but got "about:blank"
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html (#22647)
  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
    • FAIL [expected TIMEOUT] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • TIMEOUT [expected CRASH] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
    • TIMEOUT [expected FAIL] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      Test timed out
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • OK [expected TIMEOUT] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html (#29724)
    • PASS [expected TIMEOUT] subtest: reparent-form-during-planned-navigation-task
  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • FAIL [expected PASS] subtest: Reload domComplete &gt; Original domComplete

      assert_true: Reload domComplete &gt; Original domComplete expected true got false
      

    • FAIL [expected PASS] subtest: Reload loadEventEnd &gt; Original loadEventEnd

      assert_true: Reload loadEventEnd &gt; Original loadEventEnd expected true got false
      

    • FAIL [expected PASS] subtest: Reload loadEventStart &gt; Original loadEventStart

      assert_true: Reload loadEventStart &gt; Original loadEventStart expected true got false
      

  • OK /resize-observer/eventloop.html (#33599)
    • PASS [expected FAIL] subtest: test0: multiple notifications inside same event loop
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}. Index Actual Expected AbsError RelError Test threshold [14680] -1.5309871875000000e+5 2.0512369275093079e-1 1.5309892387369275e+5 7.4637367249229201e+5 3.8985999999999999e-3 [14681] 1.1480505578219891e-2 1.4340442419052124e-1 1.3192391861230135e-1 9.1994315626575540e-1 3.8985999999999999e-3 Max AbsError of 1.5309892387369275e+5 at index of 14680. Max RelError of 7.4637367249229201e+5 at index of 14680.

      assert_true: expected true got false
      

    • FAIL [expected PASS] subtest: X SNR (-60.2653568173635 dB) is not greater than or equal to 65.737. Got -60.2653568173635.

      assert_true: expected true got false
      

  • OK [expected ERROR] /webxr/render_state_update.https.html (#27535)
Stable unexpected results (1)
  • OK /content-security-policy/frame-ancestors/frame-ancestors-path-ignored.window.html
    • PASS [expected FAIL] subtest: A 'frame-ancestors' CSP directive with a URL that includes a path should be ignored.

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14381508523) failed.

@dklassic dklassic added the T-linux-wpt Do a try run of the WPT label Apr 10, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 10, 2025
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (19)
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/out-of-bounds-uniform-array-access.html (#26225)
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • 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
      

  • PASS [expected FAIL] /css/css-position/sticky/position-sticky-left-002.html (#35135)
  • FAIL [expected PASS] /css/css-text/text-transform/text-transform-upperlower-018.html
  • OK /css/css-values/cap-invalidation.html (#32757)
    • FAIL [expected PASS] subtest: CSS Values and Units Test: cap invalidation

      uncaught exception: Error: assert_not_equals: expect the capital height of Ahem and sans-serif to be different got disallowed value 371.3333333333333
      

  • OK /encoding/legacy-mb-tchinese/big5/big5-encode-form-csbig5.html?1-1000
    • FAIL [expected PASS] subtest: U+3022 〢 %A2%C4

      assert_equals: expected "%A2%C4" but got ""
      

    • FAIL [expected PASS] subtest: U+3023 〣 %A2%C5

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3024 〤 %A2%C6

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3025 〥 %A2%C7

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3026 〦 %A2%C8

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3027 〧 %A2%C9

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3028 〨 %A2%CA

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3029 〩 %A2%CB

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3041 ぁ %C6%E7

      str is undefined
      

    • FAIL [expected PASS] subtest: U+3042 あ %C6%E8

      str is undefined
      

    • And 390 more unexpected results...
  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • PASS [expected FAIL] subtest: sec-fetch-user
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Cross-site
  • 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
  • OK /html/browsers/history/the-history-interface/traverse_the_history_3.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • OK /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-reload-location-reload.html (#32595)
    • FAIL [expected PASS] subtest: Reloading iframe loading='lazy' before it is loaded: location.reload

      uncaught exception: Error: assert_equals: expected "http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/support/blank.htm?src" but got "about:blank"
      

  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
  • OK /html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)
    • PASS [expected FAIL] subtest: multipart/form-data: \n in value (formdata event)
  • OK /html/semantics/forms/historical.html (#28568)
    • PASS [expected FAIL] subtest: &lt;input name=isindex&gt; should not be supported
  • OK /html/semantics/scripting-1/the-script-element/module/dynamic-import/blob-url.any.html (#33948)
    • FAIL [expected PASS] subtest: Revoking a blob URL immediately after calling import will not fail

      promise_test: Unhandled rejection with value: object "TypeError: Dynamic import failed"
      

  • OK /resize-observer/eventloop.html (#33599)
    • PASS [expected FAIL] subtest: test0: multiple notifications inside same event loop
  • OK /service-workers/service-worker/fetch-event.https.html (#36234)
    • PASS [expected FAIL] subtest: Service Worker falls back to network in fetch event with POST form
  • TIMEOUT [expected OK] /webmessaging/without-ports/018.html (#24485)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, javascript:

      Test timed out
      

Stable unexpected results that are known to be intermittent (19)
  • OK /FileAPI/url/url-with-fetch.any.worker.html (#21517)
    • FAIL [expected PASS] subtest: Revoke blob URL after calling fetch, fetch should succeed

      promise_test: Unhandled rejection with value: object "TypeError: Network error occurred"
      

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

      assert_true: could not create image (SVG) expected true got false
      

  • OK /fetch/metadata/generated/css-font-face.sub.tentative.html (#34624)
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Not sent to non-trustworthy same-site destination
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Not sent to non-trustworthy cross-site destination
  • ERROR /fetch/metadata/generated/serviceworker.https.sub.html (#36247)
    • FAIL [expected PASS] subtest: sec-fetch-site - Same origin, no options - registration

      promise_test: Unhandled rejection with value: object "Error: Failed to query for recorded headers."
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url with document.write and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin.window.html (#29049)
    • PASS [expected FAIL] subtest: Same-origin navigation started from unload handler must be ignored
  • OK /html/browsers/history/the-history-interface/traverse_the_history_5.html (#21383)
    • FAIL [expected PASS] subtest: Multiple history traversals, last would be aborted

      assert_array_equals: Pages opened during history navigation expected property 1 to be 5 but got 3 (expected array [6, 5] got [6, 3])
      

  • PASS [expected FAIL] /html/canvas/element/manual/text/canvas.2d.disconnected.html (#30063)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.html (#34117)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.html (#30164)
  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html (#22647)
  • TIMEOUT [expected CRASH] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
    • TIMEOUT [expected FAIL] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      Test timed out
      

  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • FAIL [expected PASS] subtest: Verifies that location navigations take precedence when following form submissions.

      assert_equals: expected "/html/semantics/forms/form-submission-0/resources/location.html" but got "/html/semantics/forms/form-submission-0/resources/form.html"
      

  • OK [expected TIMEOUT] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html (#29724)
    • PASS [expected TIMEOUT] subtest: reparent-form-during-planned-navigation-task
  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventStart &gt; Original domContentLoadedEventStart
    • PASS [expected FAIL] subtest: Reload fetchStart &gt; Original fetchStart
  • ERROR /service-workers/idlharness.https.any.html (#36250)
    • TIMEOUT [expected PASS] subtest: ServiceWorkerContainer interface: operation register((TrustedScriptURL or USVString), optional RegistrationOptions)

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation enable()

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation disable()

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation setHeaderValue(ByteString)

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: NavigationPreloadManager interface: operation getState()

      Test timed out
      

  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}. Index Actual Expected AbsError RelError Test threshold [14680] 1.2433540487861798e-19 2.0512369275093079e-1 2.0512369275093079e-1 1.0000000000000000e+0 3.8985999999999999e-3 [14681] 1.1480505578219891e-2 1.4340442419052124e-1 1.3192391861230135e-1 9.1994315626575540e-1 3.8985999999999999e-3 Max AbsError of 2.0512369275093079e-1 at index of 14680. Max RelError of 1.0000000000000000e+0 at index of 14680.

      assert_true: expected true got false
      

  • CRASH [expected OK] /webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html (#21408)

@github-actions

Copy link
Copy Markdown

✨ Try run (#14382164587) succeeded.

@wusyong
wusyong added this pull request to the merge queue Apr 10, 2025
Merged via the queue into servo:main with commit e62aecb Apr 10, 2025
@wusyong
wusyong deleted the feat-caret-and-text-selection branch April 10, 2025 15:13
@dklassic dklassic mentioned this pull request Apr 11, 2025
25 of 40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants