servo/components
bors-servo 1bb713521b
Auto merge of #29374 - jdm:get-cx-cleanup, r=mrobinson
Assert if DomObject::global is called outside of a JS realm

To avoid crashing in https://github.com/servo/servo/issues/27037, we need to progressively add `InRealm` or `AlreadyInRealm` arguments higher up in the call stack. These changes assert that DomObject::global is only called inside of a realm, which is preferable to segfaulting in the JS engine. Making this a compile-time error requires changing lots of `.global()` callsites, but this PR removes a bunch that are now unnecessary.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix (partially) #27037
- [x] There are tests for these changes
2023-05-21 04:05:58 +02:00
..
allocator Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
atoms Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
background_hang_monitor Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
bluetooth Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
bluetooth_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
canvas Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
canvas_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
compositing Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
config Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
config_plugins Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
constellation Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
deny_public_fields Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
derive_common Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
devtools Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
devtools_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
dom_struct Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
domobject_derive Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
embedder_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
fallible Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
geometry Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
gfx Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
gfx_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
hashglobe Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
jstraceable_derive Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
layout Auto merge of #29748 - Loirooriol:sync, r=mrobinson 2023-05-19 22:49:36 +02:00
layout_2020 Auto merge of #29748 - Loirooriol:sync, r=mrobinson 2023-05-19 22:49:36 +02:00
layout_thread Auto merge of #29748 - Loirooriol:sync, r=mrobinson 2023-05-19 22:49:36 +02:00
layout_thread_2020 Auto merge of #29748 - Loirooriol:sync, r=mrobinson 2023-05-19 22:49:36 +02:00
layout_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
malloc_size_of Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
media Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
metrics Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
msg Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
net Update tungstenite 2023-05-20 21:55:00 +00:00
net_traits Auto merge of #29637 - AnthonyJ3:Use-same-origin-as-default-credential-mode-for-RequestInit-fix, r=mukilan 2023-05-18 14:16:45 +02:00
pixels Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
profile Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
profile_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
rand Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
range Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
remutex Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
script Enter realms when creating special same-origin iframes. 2023-05-20 18:32:08 -04:00
script_layout_interface Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
script_plugins Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
script_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
selectors style: Add a CSS error to the console when using non-featureless :host selectors 2023-05-17 02:12:40 +02:00
servo Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
servo_arc Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
size_of_test Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
std_test_override Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
style Further changes required by Servo 2023-05-19 19:06:09 +02:00
style_derive Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
style_traits Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
to_shmem Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
to_shmem_derive Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
url Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
webdriver_server Fix compiler warning introduced in 4aa8a1c418 2023-05-20 02:03:58 +00:00
webgpu Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
webrender_surfman Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
webrender_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00