Parameter event need to covert to RefPtr in the DeviceController::dispatchDeviceEvent

https://bugs.webkit.org/show_bug.cgi?id=104201

Reviewed by Laszlo Gombos.

Parameter 'event' need to covert to RefPtr in the DeviceController::dispatchDeviceEvent.
This can make crash sometimes.

No new tests. Covered by existing layout tests.

* page/DeviceController.cpp:
(WebCore::DeviceController::dispatchDeviceEvent):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d6fb2c5a
2012-12-05 Kihong Kwon <kihong.kwon@samsung.com>
Parameter event need to covert to RefPtr in the DeviceController::dispatchDeviceEvent
https://bugs.webkit.org/show_bug.cgi?id=104201
Reviewed by Laszlo Gombos.
Parameter 'event' need to covert to RefPtr in the DeviceController::dispatchDeviceEvent.
This can make crash sometimes.
No new tests. Covered by existing layout tests.
* page/DeviceController.cpp:
(WebCore::DeviceController::dispatchDeviceEvent):
2012-12-05 Halton Huo <halton.huo@intel.com>
[CMake] Unify coding style for CMake files
......@@ -71,8 +71,9 @@ void DeviceController::removeAllDeviceEventListeners(DOMWindow* window)
m_client->stopUpdating();
}
void DeviceController::dispatchDeviceEvent(PassRefPtr<Event> event)
void DeviceController::dispatchDeviceEvent(PassRefPtr<Event> prpEvent)
{
RefPtr<Event> event = prpEvent;
Vector<RefPtr<DOMWindow> > listenerVector;
copyToVector(m_listeners, listenerVector);
for (size_t i = 0; i < listenerVector.size(); ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment