binding: Moves the check for the first access to the initial document into BindingSecurity.

Checks the access to the initial document and reports it not only at
securityCheck() in V8Window.cpp but also at every call to
BindingSecurity::shouldAllowAccessTo() because V8 only calls back
securityCheck() on property lookups, and not for function invocation.

BindingSecurity::shouldAllowAccessTo() is called with every possible
cross-origin window, which means every possible new window.  Thus,
shouldAllowAccessTo() should be the right place to check the access
to the initial document.


Cr-Commit-Position: refs/heads/master@{#412195}
7 files changed