servo/components
bors-servo bd92fad81a
Auto merge of #28546 - yvt:feat-cow-infra, r=jdm
Implement `Location`'s custom internal methods

This PR partly resurrects #16501 and introduces the use of principals object to associate objects and Realms with origins. Using this infrastructure, this PR implements [the custom internal methods][1] of the `Location` interface, which is "maybe-cross-origin".

Unimplemented/incomplete things:

 - Other maybe-cross-origin interfaces, namely `WindowProxy` and `DissimilarWindowLocation`, aren't implemented correctly yet (causing most test cases of `tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html` to fail).
     - `WindowProxy`: #28556
 - [The "perform a security check" operation][2] and `Location`'s non-cross-origin properties' relevant `Document` origin checks aren't implemented either (not sure if they are covered by the existing tests).
 - There are a slight deviation from the standard and inefficiency in `CrossOriginGetOwnPropertyHelper`'s current implementation.
     - #28557

[1]: https://html.spec.whatwg.org/multipage/#the-location-interface
[2]: https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16243 and make some progress in #2382

---
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___
2021-08-01 10:31:40 -04:00
..
allocator
atoms Implement GPUUncapturedErrorEvent 2020-08-11 14:24:58 +05:30
background_hang_monitor fix(bhm): deliver exit signal reliably (for real) 2021-06-21 00:07:26 +09:00
bluetooth feat: shorten thread names 2021-07-19 00:57:48 +09:00
bluetooth_traits
canvas feat: shorten thread names 2021-07-19 00:57:48 +09:00
canvas_traits Bump time to latest v0.1.x version. 2021-06-25 17:19:14 +01:00
compositing Bump time to latest v0.1.x version. 2021-06-25 17:19:14 +01:00
config Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
config_plugins Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
constellation feat: fix build error on apple m1 2021-04-24 19:15:59 +08:00
deny_public_fields
derive_common Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
devtools feat: shorten thread names 2021-07-19 00:57:48 +09:00
devtools_traits Console.Clear implemented 2020-07-29 22:19:18 +05:30
dom_struct
domobject_derive
embedder_traits Improve IME messaging to embedder with insertion point index and multiline flag. 2021-03-29 17:55:54 +13:00
fallible
geometry
gfx feat: shorten thread names 2021-07-19 00:57:48 +09:00
gfx_traits
hashglobe
jstraceable_derive
layout Auto merge of #27865 - servo:github-actions-dev, r=jdm 2021-03-11 21:08:05 -05:00
layout_2020 feat(layout_2020): implement offset{Parent, Top, Left, Width, Height} 2021-06-19 13:27:09 +09:00
layout_thread feat: shorten thread names 2021-07-19 00:57:48 +09:00
layout_thread_2020 feat: shorten thread names 2021-07-19 00:57:48 +09:00
layout_traits
malloc_size_of Bump time to latest v0.1.x version. 2021-06-25 17:19:14 +01:00
media feat: shorten thread names 2021-07-19 00:57:48 +09:00
metrics
msg
net Auto merge of #28528 - teymour-aldridge:shorthand, r=jdm 2021-06-25 21:56:22 -04:00
net_traits Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
pixels
profile feat: shorten thread names 2021-07-19 00:57:48 +09:00
profile_traits Bump time to latest v0.1.x version. 2021-06-25 17:19:14 +01:00
rand
range
remutex
script Auto merge of #28546 - yvt:feat-cow-infra, r=jdm 2021-08-01 10:31:40 -04:00
script_layout_interface
script_plugins Update to 7/17 nightly. 2021-07-17 16:41:38 -04:00
script_traits Bump time to latest v0.1.x version. 2021-06-25 17:19:14 +01:00
selectors Bump selectors 2021-04-21 18:50:20 +02:00
servo Only request synchronous repaint when a resize will actually occur. 2021-03-05 20:00:30 -05:00
servo_arc
size_of_test
std_test_override
style feat: shorten thread names 2021-07-19 00:57:48 +09:00
style_derive style: Fix clippy warnings 2021-02-26 17:15:33 +01:00
style_traits Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
to_shmem Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
to_shmem_derive Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
url feat: shorten thread names 2021-07-19 00:57:48 +09:00
webdriver_server feat: shorten thread names 2021-07-19 00:57:48 +09:00
webgpu Pin git revisions of dependencies that aren't compatible in newer revisions. 2020-11-12 15:47:07 -05:00
webrender_surfman Update to winit 0.24. 2021-03-05 20:00:30 -05:00
webrender_traits