Function js::jsapi::ToWindowProxyIfWindow
[−]
[src]
pub unsafe extern "C" fn ToWindowProxyIfWindow(
obj: *mut JSObject
) -> *mut JSObject
If obj
is a Window, get its associated WindowProxy (or a CCW or dead
wrapper if the page was navigated away from), else return obj
. This
function is infallible and never returns nullptr.