script_bindings::proxyhandler

Function cross_origin_set

Source
pub(crate) unsafe fn cross_origin_set<D: DomTypes>(
    cx: JSContext,
    proxy: HandleObject,
    id: HandleId,
    v: HandleValue,
    receiver: HandleValue,
    result: *mut ObjectOpResult,
) -> bool
Expand description

Implementation of CrossOriginSet.

cx and proxy are expected to be different-Realm here. proxy is a proxy for a maybe-cross-origin object.