diff options
author | bors-servo <servo-ops@mozilla.com> | 2021-07-09 10:01:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 10:01:38 -0400 |
commit | 94b613fbdaa2b98f2179fc0bbda13c64e6fa0d38 (patch) | |
tree | 307c398278ee7d72b39224e7d48b97d100f83a52 /components/script/dom/gpucanvascontext.rs | |
parent | 42d7892d88d8e97ca20aa3557b2f03f739f17b89 (diff) | |
parent | 7cda260fcb0b7e1de7457f1b03a2e3b613fc1052 (diff) | |
download | servo-94b613fbdaa2b98f2179fc0bbda13c64e6fa0d38.tar.gz servo-94b613fbdaa2b98f2179fc0bbda13c64e6fa0d38.zip |
Auto merge of #28536 - yvt:fix-one-compartment, r=jdm
Create only one compartment for each script thread (agent)
Documents in the same [agent][1] can share and exchange JS and DOM objects freely, so putting them in separate compartments would require almost every instance of `Dom` to be capable of handling cross-compartment references.
[1]: https://html.spec.whatwg.org/multipage/webappapis.html#integration-with-the-javascript-agent-formalism
---
- [x] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
---
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I think there's already a wide test coverage for same-origin-domain JS object passing, albeit this requires Servo to be built with `--debug-mozjs` for the errors to be (reliably) observable
Diffstat (limited to 'components/script/dom/gpucanvascontext.rs')
0 files changed, 0 insertions, 0 deletions