rdar://104716458
There's a method called topOrigin() that represents the origin of the top document.
Pull request: https://github.com/WebKit/WebKit/pull/9239