Taym Haddadi
Taym Haddadi
part #31064 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [x] These changes do not require tests...
part #31064 --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests...
Follow-up for #31007 https://github.com/servo/servo/blob/c219204084b8f8a747ebd37ec75472c1b7e97411/components/script/dom/event.rs#L145
Part #31064, we would like to remove the direct use of `unsafe NonNull`, and replace it with use of the appropriate safe wrapper found in [typedarray.rs](https://github.com/servo/mozjs/blob/de842d84a07eabac4e1bfe72a954b74ee0244b82/mozjs/src/typedarray.rs), in this PR we...
`rooted!` is needed to ensure memory safety and prevent potential garbage collection issues. doc: https://github.com/mozilla-spidermonkey/spidermonkey-embedding-examples/blob/esr78/docs/GC%20Rooting%20Guide.md#performance-tweaking Gecko example : https://searchfox.org/mozilla-central/rev/9bb5d5f55da6cc7163dd93825c25609b769822f9/dom/webgpu/Buffer.cpp#291 example: --- - [x] `./mach build -d` does not report any...
As we are refactoring our use of JS typed arrays(for example in https://github.com/servo/servo/pull/31202), we realized what we are doing--moving away from raw JSObject pointers to "typed stuff", and wrapping operations...
Fix ImageData constructor to take a Uint8ClampedArray instead of js_object --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors...
--- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #31183 - [ ] There...