| Index: Source/WebCore/page/DOMWindow.cpp
|
| ===================================================================
|
| --- Source/WebCore/page/DOMWindow.cpp (revision 111123)
|
| +++ Source/WebCore/page/DOMWindow.cpp (working copy)
|
| @@ -872,7 +872,7 @@
|
| // Give the embedder a chance to intercept this postMessage because this
|
| // DOMWindow might be a proxy for another in browsers that support
|
| // postMessage calls across WebKit instances.
|
| - if (isCurrentlyDisplayedInFrame() && m_frame->loader()->client()->willCheckAndDispatchMessageEvent(timer->targetOrigin(), PassRefPtr<MessageEvent>(event).leakRef()))
|
| + if (isCurrentlyDisplayedInFrame() && m_frame->loader()->client()->willCheckAndDispatchMessageEvent(timer->targetOrigin(), event.get()))
|
| return;
|
|
|
| if (timer->targetOrigin()) {
|
|
|