Tests for cross-origin object behavior. v1

Opening a PR at the request of simonp, see [1].

Note that the spec here is still getting ironed out, and we're waiting on vendor feedback.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=20701#c156