Skip to content

script: Implement miscellaneous commands related to delete#43028

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:implement-miscellaneous-commands
Mar 6, 2026
Merged

script: Implement miscellaneous commands related to delete#43028
TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:implement-miscellaneous-commands

Conversation

@TimvdLippe
Copy link
Copy Markdown
Contributor

These two commands are intertwined with the delete command. By
implementing them now, it becomes easier to triage actual
implementation issues in the delete command.

Part of #25005

@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label Mar 5, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Mar 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

⚠️ Try run (#22708656394) failed!

@TimvdLippe TimvdLippe force-pushed the implement-miscellaneous-commands branch from b99ca64 to 1ec238a Compare March 5, 2026 18:06
These two commands are intertwined with the delete command. By
implementing them now, it becomes easier to triage actual
implementation issues in the delete command.

Part of servo#25005

Signed-off-by: Tim van der Lippe <[email protected]>
@TimvdLippe TimvdLippe force-pushed the implement-miscellaneous-commands branch from 1ec238a to e02cbcf Compare March 5, 2026 21:03
@TimvdLippe TimvdLippe requested a review from sebsebmc March 5, 2026 21:03
@TimvdLippe TimvdLippe marked this pull request as ready for review March 5, 2026 21:03
@TimvdLippe TimvdLippe requested a review from gterzian as a code owner March 5, 2026 21:03
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 5, 2026
@TimvdLippe
Copy link
Copy Markdown
Contributor Author

This is another case for --minimal. There are some new test failures, but that requires more implementation before they start passing again. At least a whole bunch more tests pass now, finally making it possible to triage the remaining issues in delete.html

@sebsebmc
Copy link
Copy Markdown
Contributor

sebsebmc commented Mar 5, 2026

Another day another 10 thousand passing subtests

command_id: &DOMString,
) -> Option<DomRoot<Selection>> {
let selection = self.GetSelection(CanGc::from_cx(cx))?;
// > Among commands defined in this specification, those listed in Miscellaneous commands are always enabled,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems to not be true in the WPT tests. We see new failures for stylewithcss if the selection is input type="password", which is supposed to be supported, but not enabled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately this is where the inconsistent implementation of this spec across browsers shows. The test failures match Chromium/Webkit: https://wpt.fyi/results/editing/other/exec-command-with-text-editor.tentative.html%3Ftype%3Dpassword?label=master&label=experimental&aligned Only Firefox passes these tests. Therefore, I am not actually sure we should match Firefox' behavior or not.

I would err to keep it as-is for now as the spec is written and revisit once we actually get closer to implementation of full support.

@TimvdLippe TimvdLippe requested a review from sebsebmc March 6, 2026 10:50
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 6, 2026
@TimvdLippe TimvdLippe added this pull request to the merge queue Mar 6, 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 Mar 6, 2026
Merged via the queue into servo:main with commit 160e458 Mar 6, 2026
33 checks passed
@TimvdLippe TimvdLippe deleted the implement-miscellaneous-commands branch March 6, 2026 19:47
@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 Mar 6, 2026
offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
These two commands are intertwined with the delete command. By
implementing them now, it becomes easier to triage actual
implementation issues in the delete command.

Part of servo#25005

Signed-off-by: Tim van der Lippe <[email protected]>
(cherry picked from commit 160e458)
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.

4 participants