aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/window_named_properties.rs
diff options
context:
space:
mode:
authorDelan Azabani <dazabani@igalia.com>2023-03-23 19:15:20 +0800
committerDelan Azabani <dazabani@igalia.com>2023-03-23 19:15:20 +0800
commit557ce73f5f8acf7f97c49ff0e50c8cdc8b0f178d (patch)
tree905ac594e94337810d9110eafeca3dc1c16d07b6 /components/script/window_named_properties.rs
parentc831a136b27a9b7c139c3004bbd0c187120f2bd5 (diff)
downloadservo-557ce73f5f8acf7f97c49ff0e50c8cdc8b0f178d.tar.gz
servo-557ce73f5f8acf7f97c49ff0e50c8cdc8b0f178d.zip
add spec issue as todo in [[OwnPropertyKeys]] trap
Diffstat (limited to 'components/script/window_named_properties.rs')
-rw-r--r--components/script/window_named_properties.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/window_named_properties.rs b/components/script/window_named_properties.rs
index 0165e2de625..46cf61d7c2e 100644
--- a/components/script/window_named_properties.rs
+++ b/components/script/window_named_properties.rs
@@ -151,6 +151,9 @@ unsafe extern "C" fn own_property_keys(
_proxy: HandleObject,
props: MutableHandleIdVector,
) -> bool {
+ // TODO is this all we need to return? compare with gecko:
+ // https://searchfox.org/mozilla-central/rev/af78418c4b5f2c8721d1a06486cf4cf0b33e1e8d/dom/base/WindowNamedPropertiesHandler.cpp#175-232
+ // see also https://github.com/whatwg/html/issues/9068
rooted!(in(cx) let mut rooted = SymbolId(GetWellKnownSymbol(cx, SymbolCode::toStringTag)));
AppendToIdVector(props, rooted.handle().into());
true