This is incorrect for cross window call's, the callee should be receiving it's own lexical global object, not the caller's.
Created attachment 24932 [details] The patch
Comment on attachment 24932 [details] The patch r=me
fixed in 38148