| Index: Source/web/WebDOMMessageEvent.cpp
|
| diff --git a/Source/web/WebDOMMessageEvent.cpp b/Source/web/WebDOMMessageEvent.cpp
|
| index 0e76871d536bf89e9aab8c6b19cc3b07492f8c5c..f03bb3897aac026ac698e942bb33af518c650f28 100644
|
| --- a/Source/web/WebDOMMessageEvent.cpp
|
| +++ b/Source/web/WebDOMMessageEvent.cpp
|
| @@ -48,8 +48,9 @@ void WebDOMMessageEvent::initMessageEvent(const WebString& type, bool canBubble,
|
| ASSERT(m_private.get());
|
| ASSERT(isMessageEvent());
|
| LocalDOMWindow* window = 0;
|
| + // FIXME: Figure out if this is the right thing to do.
|
| if (sourceFrame)
|
| - window = toWebLocalFrameImpl(sourceFrame)->frame()->domWindow();
|
| + window = toWebLocalFrameImpl(sourceFrame)->frame()->localDOMWindow();
|
| OwnPtrWillBeRawPtr<MessagePortArray> ports = nullptr;
|
| if (sourceFrame)
|
| ports = MessagePort::toMessagePortArray(window->document(), webChannels);
|
|
|