Skip to content

script: Make readonly apply to certain inputs only - #50098

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:fix-input-readonly
Nov 24, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:fix-input-readonly

Conversation

@TimvdLippe

Copy link
Copy Markdown
Contributor

Fixes: #43349
Supersedes and closes #43352

Testing: new WPT tests passing

@TimvdLippe
TimvdLippe requested a review from gterzian as a code owner November 20, 2026 14:39
@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label Nov 20, 2026
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 20, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Nov 20, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (16)
  • CRASH [expected OK] /IndexedDB/idbdatabase-createObjectStore-exception-order.any.worker.html
  • TIMEOUT [expected OK] /_mozilla/mozilla/img-load-more-than-cache.html
    • TIMEOUT [expected PASS] subtest: Test Loading more images than keys obtained in a batch by the image cache

      Test timed out
      

  • CRASH [expected OK] /_webgl/conformance2/renderbuffers/multisample-draws-between-blits.html
  • FAIL [expected PASS] /css/css-backgrounds/background-size-042.html
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'oblique 0deg' should prefer 'oblique 30deg 60deg' over 'oblique 40deg 50deg'

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

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

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

  • 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.
  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-disabled-readonly.html
  • CRASH [expected FAIL] /html/semantics/forms/the-select-element/filterable-select/filterable-select-appearance.tentative.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 (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • 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
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-form-dynamic-002.html (#49169)
  • PASS [expected FAIL] /mathml/presentation-markup/operators/mo-single-char-and-children.html (#49318)
  • PASS [expected FAIL] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
  • OK /sanitizer-api/sanitizer-inert-document.html (#45260)
    • FAIL [expected PASS] subtest: Test whether setHTML loads the image.

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

    • PASS [expected FAIL] subtest: Test whether setHTMLUnsafe loads the image.
  • TIMEOUT [expected OK] /webdriver/tests/classic/element_click/scroll_into_view.py
Stable unexpected results that are known to be intermittent (12)
  • 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
      

  • OK /css/CSS2/floats/float-in-block-in-inline-position-001.html (#49534)
    • FAIL [expected PASS] subtest: A line after a bordered block containing a float avoids it at the block's position (sibling)

      assert_equals: the line's block-axis position expected 108 but got 106.35000000000002
      

  • OK /css/CSS2/floats/floats-in-inline-content-intrinsic-size-001.html (#49728)
    • FAIL [expected PASS] subtest: An empty float next to text (emptyFloatAndText, min-content)

      assert_equals: expected 70 but got 50
      

  • 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
      

  • OK /html/semantics/embedded-content/media-elements/playing-the-media-resource/fragmented-mp4-end.html (#48349)
    • FAIL [expected PASS] subtest: fragmented-mp4-end

      assert_equals: Expected seeked event, but got error event instead expected "seeked" but got "error"
      

  • OK /html/semantics/embedded-content/media-elements/playing-the-media-resource/loop-from-ended.tentative.html (#33778)
    • FAIL [expected PASS] subtest: play() with loop set to true after playback ended

      assert_true: ended at ended event expected true got false
      

  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-does-not-focus.html (#50054)
  • 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"])
      

  • PASS [expected FAIL] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • ERROR [expected TIMEOUT] /performance-timeline/not-restored-reasons/abort-block-bfcache.window.html (#42802)
  • 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.
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.
  • OK /preload/prefetch-document.html (#37210)
    • PASS [expected FAIL] subtest: different-site document prefetch with 'as=document' should not be consumed
Stable unexpected results (2)
  • OK /html/semantics/forms/constraints/form-validation-willValidate.html
    • FAIL [expected PASS] subtest: [INPUT in COLOR status] Must be barred from the constraint validation if it is readonly

      assert_false: The willValidate attribute should be false. expected false got true
      

    • FAIL [expected PASS] subtest: [INPUT in FILE status] Must be barred from the constraint validation if it is readonly

      assert_false: The willValidate attribute should be false. expected false got true
      

    • FAIL [expected PASS] subtest: [INPUT in SUBMIT status] Must be barred from the constraint validation if it is readonly

      assert_false: The willValidate attribute should be false. expected false got true
      

  • OK /webdriver/tests/classic/element_clear/clear.py
    • FAIL [expected PASS] subtest: test_input_readonly[range]

      assert 200 == 400
      

    • FAIL [expected PASS] subtest: test_input_readonly[color]

      assert 200 == 400
      

    • FAIL [expected PASS] subtest: test_input_readonly[file]

      assert 200 == 400
      

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#44755578981) failed!

@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label Nov 21, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Nov 21, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (20)
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-continuePrimaryKey-exception-order.any.sharedworker.html
    • TIMEOUT [expected FAIL] subtest: DataError(keys are larger then current one) in 'prev' direction

      Test timed out
      

  • OK /IndexedDB/idbtransaction-oncomplete.any.html (#42845)
    • 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
      

  • OK [expected TIMEOUT] /_webgl/conformance/textures/misc/texture-upload-size.html (#49934)
    • PASS [expected NOTRUN] subtest: Overall test
    • PASS [expected FAIL] subtest: WebGL test #44
  • OK /css/CSS2/floats/floats-in-inline-content-intrinsic-size-001.html (#49728)
    • FAIL [expected PASS] subtest: An empty float next to text (emptyFloatAndText, min-content)

      assert_equals: expected 70 but got 50
      

  • FAIL [expected PASS] /css/filter-effects/kernel-unit-length-001.html
  • OK /dom/nodes/moveBefore/iframe-document-preserve.window.html (#43152)
    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove self

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

    • FAIL [expected PASS] subtest: moveBefore(): cross-origin iframe is preserved: remove self via replaceChildren()

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

  • ERROR [expected OK] /html/browsers/windows/browsing-context-names/choose-_parent-002.html
  • 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
      

  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-does-not-focus.html (#50054)
  • CRASH [expected FAIL] /html/semantics/interestfor/interestfor-plain-inline-element.tentative.html
  • 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"])
      

  • TIMEOUT [expected OK] /html/user-activation/consumption-sameorigin.html
    • NOTRUN [expected PASS] subtest: Consumption test
  • 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
      

  • 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
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-form-dynamic-002.html (#49169)
  • PASS [expected FAIL] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
  • 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 /resource-timing/internal-resources-not-counted.html
    • PASS [expected FAIL] subtest: Resource timing should not include internal resources.
Stable unexpected results that are known to be intermittent (10)
  • 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
      

  • OK /css/CSS2/floats/float-in-block-in-inline-position-001.html (#49534)
    • PASS [expected FAIL] subtest: A line after a bordered block containing a float avoids it at the block's position (nested)
    • PASS [expected FAIL] subtest: The float lands in the same place whether the bordered block is nested in an inline box or a sibling of inline content
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '400' should prefer '501 550' over '502 560'

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

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

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

    • FAIL [expected PASS] subtest: Matching font-style: 'normal' should prefer 'oblique -50deg -20deg' over 'oblique -40deg -30deg'

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

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

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

  • TIMEOUT [expected ERROR] /html/browsers/history/the-location-interface/location_replace_session_history.html (#41896)
  • OK /html/semantics/embedded-content/media-elements/playing-the-media-resource/fragmented-mp4-end.html (#48349)
    • FAIL [expected PASS] subtest: fragmented-mp4-end

      assert_equals: Expected seeked event, but got error event instead expected "seeked" but got "error"
      

  • OK /html/semantics/embedded-content/media-elements/playing-the-media-resource/loop-from-ended.tentative.html (#33778)
    • FAIL [expected PASS] subtest: play() with loop set to true after playback ended

      assert_true: ended at ended event expected true got false
      

  • PASS [expected FAIL] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • 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.
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.
  • OK /preload/prefetch-document.html (#37210)
    • PASS [expected FAIL] subtest: different-site document prefetch with 'as=document' should not be consumed
  • OK /user-timing/measure_associated_with_navigation_timing.html (#47273)
    • FAIL [expected PASS] subtest: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a".

      assert_equals: loadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a". expected 14.77 but got 14.770000000000001
      

Stable unexpected results (1)
  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-disabled-readonly.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#44896825494) failed!

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

That's the same user prompt flake as #50054 I suspect that we are hitting #50097

@TimvdLippe
TimvdLippe requested a review from mrobinson November 23, 2026 06:32
Fixes: servo#43349
Supersedes and closes servo#43352

Testing: new WPT tests passing

Co-authored-by: Luke Warlow <[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 Nov 24, 2026
@TimvdLippe
TimvdLippe enabled auto-merge November 24, 2026 07:44
@TimvdLippe
TimvdLippe added this pull request to the merge queue Nov 24, 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 Nov 24, 2026
Merged via the queue into servo:main with commit 0aa5c00 Nov 24, 2026
38 checks passed
@TimvdLippe
TimvdLippe deleted the fix-input-readonly branch November 24, 2026 09:14
@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 Nov 24, 2026
devin-ai-integration Bot added a commit to baigojahanzaib/servo that referenced this pull request Nov 28, 2026
Fixes: servo#43349
Supersedes and closes servo#43352

Testing: new WPT tests passing

Signed-off-by: Tim van der Lippe <[email protected]>
Co-authored-by: Tim van der Lippe <[email protected]>
Co-authored-by: Luke Warlow <[email protected]>
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.

A readonly color input should still be mutable

3 participants