| Index: Source/bindings/core/v8/V8DOMWrapper.cpp
|
| ===================================================================
|
| --- Source/bindings/core/v8/V8DOMWrapper.cpp (revision 202329)
|
| +++ Source/bindings/core/v8/V8DOMWrapper.cpp (working copy)
|
| @@ -146,4 +146,15 @@
|
| }
|
| }
|
|
|
| +void V8WrapperInstantiationScope::convertException()
|
| +{
|
| + v8::Isolate* isolate = m_context->GetIsolate();
|
| + // TODO(jochen): Currently, Location is the only object for which we can reach this code path. Should be generalized.
|
| + 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
|
|
|