Chromium Code Reviews| Index: Source/bindings/core/v8/V8DOMWrapper.cpp |
| diff --git a/Source/bindings/core/v8/V8DOMWrapper.cpp b/Source/bindings/core/v8/V8DOMWrapper.cpp |
| index 3bcdcd1e4d58fce06cfd32b4a9a248131424000c..ea82b873bc9867c0781f06b103ce636b69f6bb88 100644 |
| --- a/Source/bindings/core/v8/V8DOMWrapper.cpp |
| +++ b/Source/bindings/core/v8/V8DOMWrapper.cpp |
| @@ -146,4 +146,15 @@ void V8WrapperInstantiationScope::securityCheck(v8::Isolate* isolate, v8::Local< |
| } |
| } |
| +void V8WrapperInstantiationScope::convertException() |
| +{ |
| + v8::Isolate* isolate = m_context->GetIsolate(); |
| + // FIXME: Currently, Location is the only object for which we can reach this code path. Should be generalized. |
|
haraken
2015/09/14 11:56:47
TODO
|
| + ExceptionState exceptionState(ExceptionState::ConstructionContext, "Location", isolate->GetCurrentContext()->Global(), isolate); |
| + LocalDOMWindow* callingWindow = callingDOMWindow(isolate); |
| + DOMWindow* targetWindow = toFrameIfNotDetached(m_context)->domWindow(); |
| + exceptionState.throwSecurityError(targetWindow->sanitizedCrossDomainAccessErrorMessage(callingWindow), targetWindow->crossDomainAccessErrorMessage(callingWindow)); |
| + exceptionState.throwIfNeeded(); |
| +} |
| + |
| } // namespace blink |