aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/proxyhandler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/proxyhandler.rs')
-rw-r--r--components/script_bindings/proxyhandler.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script_bindings/proxyhandler.rs b/components/script_bindings/proxyhandler.rs
index 314d1369048..29da3e91a92 100644
--- a/components/script_bindings/proxyhandler.rs
+++ b/components/script_bindings/proxyhandler.rs
@@ -565,13 +565,18 @@ pub(crate) unsafe extern "C" fn maybe_cross_origin_set_rawcx<D: DomTypes>(
return false;
}
+ let own_desc_handle = own_desc.handle().into();
js::jsapi::SetPropertyIgnoringNamedGetter(
*cx,
proxy,
id,
v,
receiver,
- own_desc.handle().into(),
+ if is_none {
+ ptr::null()
+ } else {
+ &own_desc_handle
+ },
result,
)
}