Changeset 121909 in webkit
- Timestamp:
- Jul 5, 2012 9:21:43 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r121907 r121909 1 2012-07-05 Vincent Scheib <scheib@chromium.org> 2 3 [Chromium] Clear m_currentInputEvent after handled by pointerLockMouseEvent(). 4 https://bugs.webkit.org/show_bug.cgi?id=90391 5 6 Test that reproduces bug 90391: 7 Enable pointer lock, receive mouse move, call window.open, don't crash. 8 9 Reviewed by Abhishek Arya. 10 11 * pointer-lock/bug90391-move-then-window-open-crash-expected.txt: Added. 12 * pointer-lock/bug90391-move-then-window-open-crash.html: Added. 13 1 14 2012-07-05 John Mellor <johnme@chromium.org> 2 15 -
trunk/Source/WebKit/chromium/ChangeLog
r121907 r121909 1 2012-07-05 Vincent Scheib <scheib@chromium.org> 2 3 [Chromium] Clear m_currentInputEvent after handled by pointerLockMouseEvent(). 4 https://bugs.webkit.org/show_bug.cgi?id=90391 5 6 WebViewImpl::handleInputEvent was keeping a pointer to an input event that would 7 later be accessed. When in pointer lock, that pointer was not being cleared. 8 Code modified to use TemporaryChange to automatically clear the pointer at all 9 method exit points. 10 11 Reviewed by Abhishek Arya. 12 13 * src/WebViewImpl.cpp: 14 (WebKit::WebViewImpl::handleInputEvent): 15 1 16 2012-07-05 John Mellor <johnme@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r121451 r121909 165 165 #include <wtf/MainThread.h> 166 166 #include <wtf/RefPtr.h> 167 #include <wtf/TemporaryChange.h> 167 168 #include <wtf/Uint8ClampedArray.h> 168 169 … … 1761 1762 return false; 1762 1763 1763 m_currentInputEvent = &inputEvent;1764 TemporaryChange<const WebInputEvent*>(m_currentInputEvent, &inputEvent); 1764 1765 1765 1766 #if ENABLE(POINTER_LOCK) … … 1799 1800 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), *static_cast<const WebMouseEvent*>(&inputEvent)), 1800 1801 eventType, static_cast<const WebMouseEvent*>(&inputEvent)->clickCount); 1801 m_currentInputEvent = 0;1802 1802 return true; 1803 1803 } 1804 1804 1805 1805 bool handled = PageWidgetDelegate::handleInputEvent(m_page.get(), *this, inputEvent); 1806 m_currentInputEvent = 0;1807 1806 return handled; 1808 1807 }
Note: See TracChangeset
for help on using the changeset viewer.