Skip to content

script: Add error messages in HTMLDialogElement#43101

Merged
yezhizhen merged 3 commits into
servo:mainfrom
xZaisk:add-js-error-messages-htmldialog
Mar 9, 2026
Merged

script: Add error messages in HTMLDialogElement#43101
yezhizhen merged 3 commits into
servo:mainfrom
xZaisk:add-js-error-messages-htmldialog

Conversation

@xZaisk

@xZaisk xZaisk commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Adds specific InvalidStateError messages in HTMLDialogElement for
show() and showModal() error paths.

A fix part of #40756.

@xZaisk xZaisk requested a review from gterzian as a code owner March 9, 2026 04:15
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 9, 2026
xZaisk added 2 commits March 9, 2026 00:19
Signed-off-by: xzaisk <zkhalid99v@gmail.com>
Signed-off-by: xzaisk <zkhalid99v@gmail.com>
@xZaisk xZaisk force-pushed the add-js-error-messages-htmldialog branch from 1030876 to 62b95c0 Compare March 9, 2026 04:20

@Narfinger Narfinger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Looks good.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 9, 2026
@yezhizhen yezhizhen enabled auto-merge March 9, 2026 05:54
Comment thread components/script/dom/html/htmldialogelement.rs Outdated
InvalidState expects an Option<String> (Some)

Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Signed-off-by: Zain <39714482+xZaisk@users.noreply.github.com>
auto-merge was automatically disabled March 9, 2026 06:34

Head branch was pushed to by a user without write access

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 9, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 9, 2026
@yezhizhen yezhizhen enabled auto-merge March 9, 2026 06:41
@yezhizhen yezhizhen added this pull request to the merge queue Mar 9, 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 9, 2026
Merged via the queue into servo:main with commit 2cc8ae3 Mar 9, 2026
33 checks passed
@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 9, 2026
offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
Adds specific InvalidStateError messages in HTMLDialogElement for
`show()` and `showModal()` error paths.

A fix part of servo#40756.

---------

Signed-off-by: xzaisk <zkhalid99v@gmail.com>
Signed-off-by: Zain <39714482+xZaisk@users.noreply.github.com>
Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
(cherry picked from commit 2cc8ae3)
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