Changeset 128273 in webkit
- Timestamp:
- Sep 12, 2012 12:53:59 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r128270 r128273 1 2012-09-12 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] Only allow one user-gesture gated action per user action. 4 https://bugs.webkit.org/show_bug.cgi?id=96373 5 6 Reviewed by Adam Barth. 7 8 * platform/chromium/fast/events/popup-allowed-from-gesture-only-once-expected.txt: Added. 9 * platform/chromium/fast/events/popup-allowed-from-gesture-only-once.html: Added. 10 1 11 2012-09-12 Jochen Eisinger <jochen@chromium.org> 2 12 -
trunk/Source/WebKit/chromium/ChangeLog
r128269 r128273 1 2012-09-12 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] consumable user gesture count off for input events 4 https://bugs.webkit.org/show_bug.cgi?id=96373 5 6 Reviewed by Adam Barth. 7 8 Don't create a UserGestureIndicator in the chromium layer, as it will 9 already be created by webcore's event handler. Creating multiple 10 UserGestureIndicator objects for the same object would allow to execute 11 multiple user-gesture-gated actions per user gesture such as opening a 12 new window. 13 14 * public/WebInputEvent.h: 15 * src/WebViewImpl.cpp: 16 (WebKit::WebViewImpl::handleInputEvent): 17 1 18 2012-09-12 Alexandre Elias <aelias@chromium.org> 2 19 -
trunk/Source/WebKit/chromium/public/WebInputEvent.h
r128093 r128273 195 195 } 196 196 197 // Returns true if the WebInputEvent |type| should be handled as user gesture.198 static bool isUserGestureEventType(int type)199 {200 return isKeyboardEventType(type)201 || type == MouseDown202 || type == MouseUp203 || type == TouchStart204 || type == TouchEnd;205 }206 207 197 // Returns true if the WebInputEvent is a gesture event. 208 198 static bool isGestureEventType(int type) -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r128269 r128273 121 121 #include "Timer.h" 122 122 #include "TraceEvent.h" 123 #include "UserGestureIndicator.h"124 123 #include "WebAccessibilityObject.h" 125 124 #include "WebActiveWheelFlingParameters.h" … … 1907 1906 bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent) 1908 1907 { 1909 UserGestureIndicator gestureIndicator(WebInputEvent::isUserGestureEventType(inputEvent.type) ? DefinitelyProcessingUserGesture : PossiblyProcessingUserGesture);1910 1911 1908 // If we've started a drag and drop operation, ignore input events until 1912 1909 // we're done. -
trunk/Tools/ChangeLog
r128272 r128273 1 2012-09-12 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] Consume a user gesture when creating a new view. 4 https://bugs.webkit.org/show_bug.cgi?id=96373 5 6 Reviewed by Adam Barth. 7 8 * DumpRenderTree/chromium/WebViewHost.cpp: 9 (WebViewHost::createView): 10 1 11 2012-09-12 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 12 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r127473 r128273 252 252 // WebViewClient ------------------------------------------------------------- 253 253 254 WebView* WebViewHost::createView(WebFrame* , const WebURLRequest& request, const WebWindowFeatures&, const WebString&, WebNavigationPolicy)254 WebView* WebViewHost::createView(WebFrame* creator, const WebURLRequest& request, const WebWindowFeatures&, const WebString&, WebNavigationPolicy) 255 255 { 256 256 if (!testRunner()->canOpenWindows()) … … 258 258 if (testRunner()->shouldDumpCreateView()) 259 259 fprintf(stdout, "createView(%s)\n", URLDescription(request.url()).c_str()); 260 creator->consumeUserGesture(); 260 261 return m_shell->createNewWindow(WebURL())->webView(); 261 262 }
Note: See TracChangeset
for help on using the changeset viewer.