Skip to content

script: Immediately root permissions descriptor objects - #46195

Merged
jdm merged 1 commit into
servo:mainfrom
Narfinger:fix-crash1
Jul 7, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
Narfinger:fix-crash1

Conversation

@Narfinger

@Narfinger Narfinger commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

We immediately root the object before doing any other work and to hopefully prevent the crashes. While this is technically a workaround, it does not add any major technical debt as anybody changes the argument from the codegen will see the rooted handle and can modify it.

This fixes the crash in #45933, but not the underlying issue in #46019.

Testing: Rooting does not change behavior so additional tests are not necessary.
Fixes: #45933

@Narfinger
Narfinger requested a review from gterzian as a code owner July 2, 2026 11:26
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 2, 2026
@Narfinger

Copy link
Copy Markdown
Contributor Author

I hope it is ok to fix it this way for now till somebody can look more at the codegen and then they are free to remove this workaround.

Signed-off-by: Narfinger <[email protected]>
@mrobinson mrobinson changed the title script: Fix crash for permission and raw ptr script: Immediately root permissions descriptor objects Jul 3, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 7, 2026
@jdm
jdm added this pull request to the merge queue Jul 7, 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 Jul 7, 2026
Merged via the queue into servo:main with commit 69e3cf0 Jul 7, 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 Jul 7, 2026
@Narfinger
Narfinger deleted the fix-crash1 branch July 8, 2026 07:20
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.

Intermittent CRASH in /permissions/crashtests/permissions-query-worker.window.html

4 participants