Merge 201139 "Use Document of callingWindow for access check in ..."

> Use Document of callingWindow for access check in isInsecureScriptAccess()
> 
> The Document call was changed to Frame::securityContext() to make the code more
> RemoteFrame-friendly. However, callingWindow is guaranteed local. Revert to
> getting the SecurityOrigin via Document.
> 
> BUG=524074
> TEST=http/tests/security/location-change-from-detached-DOMWindow.html
> 
> Review URL: https://codereview.chromium.org/1311253005

TBR=japhet@chromium.org

Review URL: https://codereview.chromium.org/1320523002

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2490@201160 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 61375924eaa7b83902c33e6f32339b806be20533
  1. third_party/