Cross-origin access to Location::reload() should throw a SecurityError.
Location's 'reload' property is currently special-cased to be accessible
cross-origin, but doesn't actually perform the requested action when
executed. Instead, it dumps an error message to the console and returns
early.
Firefox's implementation throws an exception upon access of the property,
and given that we've just changed various other Location properties to
match this behavior. This also better aligns our behavior with the spec[1].
[1]: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#security-location
BUG=17325
Review URL: https://chromiumcodereview.appspot.com/19743002
git-svn-id: svn://svn.chromium.org/blink/trunk@154480 bbb929c8-8fbe-4397-9dbb-9b2b20218538
10 files changed