Create DOM exceptions in the correct context.
If access to a cross-origin property or method is allowed, but it ends
up throwing a DOM exception, arrange for the exception to be created
in the context of the target property/method, not that of the
caller/accessing context.
Addressed by having ExceptionState keep a creation context, which is
then passed along when creating the wrapper for the exception object.
R=haraken@chromium.org
BUG=235223
Review URL: https://codereview.chromium.org/68563003
git-svn-id: svn://svn.chromium.org/blink/trunk@162010 bbb929c8-8fbe-4397-9dbb-9b2b20218538
40 files changed