2011-11-29 02:48:03 +01:00
|
|
|
Index: V8DOMWindowCustom.cpp
|
|
|
|
===================================================================
|
2011-12-21 19:35:55 +01:00
|
|
|
--- V8DOMWindowCustom.cpp (revision 103399)
|
2011-11-29 02:48:03 +01:00
|
|
|
+++ V8DOMWindowCustom.cpp (working copy)
|
2011-12-21 19:35:55 +01:00
|
|
|
@@ -297,8 +297,11 @@
|
2011-12-16 15:51:10 +01:00
|
|
|
static v8::Handle<v8::Value> handlePostMessageCallback(const v8::Arguments& args, bool extendedTransfer)
|
2011-11-29 02:48:03 +01:00
|
|
|
{
|
|
|
|
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());
|
|
|
|
|
2011-12-21 19:35:55 +01:00
|
|
|
// This function has variable arguments and can be:
|