diff options
author | yvt <i@yvt.jp> | 2021-07-10 00:45:13 +0900 |
---|---|---|
committer | yvt <i@yvt.jp> | 2021-07-10 12:54:31 +0900 |
commit | 727662a1e68c767fa4db103a57725d31c6f4b28d (patch) | |
tree | 4c894f22de0954107b4820bed6adb83dd8f9d876 /components/script/dom/windowproxy.rs | |
parent | 94b613fbdaa2b98f2179fc0bbda13c64e6fa0d38 (diff) | |
download | servo-727662a1e68c767fa4db103a57725d31c6f4b28d.tar.gz servo-727662a1e68c767fa4db103a57725d31c6f4b28d.zip |
chore(deps): update mozjs
- a8b688a: Add `ProxyTraps::{getPrototype, setPrototype, setImmutablePrototype}`
Diffstat (limited to 'components/script/dom/windowproxy.rs')
-rw-r--r-- | components/script/dom/windowproxy.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/windowproxy.rs b/components/script/dom/windowproxy.rs index 0f92e4b3367..244b42dc8a5 100644 --- a/components/script/dom/windowproxy.rs +++ b/components/script/dom/windowproxy.rs @@ -1040,6 +1040,8 @@ unsafe extern "C" fn get_prototype_if_ordinary( } static PROXY_HANDLER: ProxyTraps = ProxyTraps { + // TODO: These traps should change their behavior depending on + // `IsPlatformObjectSameOrigin(this.[[Window]])` enter: None, getOwnPropertyDescriptor: Some(getOwnPropertyDescriptor), defineProperty: Some(defineProperty), @@ -1047,6 +1049,9 @@ static PROXY_HANDLER: ProxyTraps = ProxyTraps { delete_: None, enumerate: None, getPrototypeIfOrdinary: Some(get_prototype_if_ordinary), + getPrototype: None, // TODO: return `null` if cross origin-domain + setPrototype: None, + setImmutablePrototype: None, preventExtensions: None, isExtensible: None, has: Some(has), @@ -1189,6 +1194,9 @@ static XORIGIN_PROXY_HANDLER: ProxyTraps = ProxyTraps { delete_: Some(delete_xorigin), enumerate: None, getPrototypeIfOrdinary: None, + getPrototype: None, + setPrototype: None, + setImmutablePrototype: None, preventExtensions: Some(preventExtensions_xorigin), isExtensible: None, has: Some(has_xorigin), |