Skip to content

Make DOMMatrix number serialization safe - #48211

Merged
Taym95 merged 1 commit into
servo:mainfrom
Taym95:dommatrix-safe-number-serialization
Sep 20, 2026
Merged

Taym95 merged 1 commit into
servo:mainfrom
Taym95:dommatrix-safe-number-serialization

Conversation

@Taym95

@Taym95 Taym95 commented Sep 19, 2026

Copy link
Copy Markdown
Member

Use DOMString::from_js_string instead of manually calling unsafe js string conversion functions.

Testing: ./mach test-wpt tests/wpt/tests/css/geometry/DOMMatrix-stringifier.html passed locally.

Fixes: Part of #30862

@Taym95
Taym95 requested a review from gterzian as a code owner September 19, 2026 18:27
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 19, 2026
@Taym95
Taym95 force-pushed the dommatrix-safe-number-serialization branch from ea961e5 to c7f027f Compare September 19, 2026 18:31

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice change!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 20, 2026
@Taym95
Taym95 force-pushed the dommatrix-safe-number-serialization branch from c7f027f to c3c13ea Compare September 20, 2026 11:50
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 20, 2026
@Taym95
Taym95 enabled auto-merge September 20, 2026 11:50
@Taym95
Taym95 force-pushed the dommatrix-safe-number-serialization branch from c3c13ea to 2991556 Compare September 20, 2026 12:14
@Taym95
Taym95 force-pushed the dommatrix-safe-number-serialization branch from 2991556 to 7e8a45d Compare September 20, 2026 12:15
@Taym95
Taym95 added this pull request to the merge queue Sep 20, 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 Sep 20, 2026
Merged via the queue into servo:main with commit addf39d Sep 20, 2026
33 checks passed
@Taym95
Taym95 deleted the dommatrix-safe-number-serialization branch September 20, 2026 13:25
@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 Sep 20, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
Use `DOMString::from_js_string` instead of manually calling unsafe js
string conversion functions.

Testing: ./mach test-wpt
tests/wpt/tests/css/geometry/DOMMatrix-stringifier.html passed locally.

Fixes: Part of [servo#30862](servo#30862)

Signed-off-by: Taym Haddadi <[email protected]>
hhhwsqhhh pushed a commit to hhhwsqhhh/servo that referenced this pull request Oct 12, 2026
Use `DOMString::from_js_string` instead of manually calling unsafe js
string conversion functions.

Testing: ./mach test-wpt
tests/wpt/tests/css/geometry/DOMMatrix-stringifier.html passed locally.

Fixes: Part of [servo#30862](servo#30862)

Signed-off-by: Taym Haddadi <[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.

3 participants