mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-24 00:12:14 +01:00
bdb588b77a
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@435 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
18 lines
705 B
Diff
18 lines
705 B
Diff
Index: V8DOMWindowCustom.cpp
|
|
===================================================================
|
|
--- V8DOMWindowCustom.cpp (revision 103399)
|
|
+++ V8DOMWindowCustom.cpp (working copy)
|
|
@@ -297,8 +297,11 @@
|
|
static v8::Handle<v8::Value> handlePostMessageCallback(const v8::Arguments& args, bool extendedTransfer)
|
|
{
|
|
DOMWindow* window = V8DOMWindow::toNative(args.Holder());
|
|
+ Frame* frame = V8Proxy::retrieveFrameForCallingContext();
|
|
+ if (!frame)
|
|
+ return v8::Undefined();
|
|
|
|
- DOMWindow* source = V8Proxy::retrieveFrameForCallingContext()->domWindow();
|
|
+ DOMWindow* source = frame->domWindow();
|
|
ASSERT(source->frame());
|
|
|
|
// This function has variable arguments and can be:
|