Changeset 248174 in webkit


Ignore:
Timestamp:
Aug 2, 2019 1:09:06 PM (5 years ago)
Author:
jer.noble@apple.com
Message:

[iPadOS] slides.google.com: Full Screen API warning is presented when swiping through slides
https://bugs.webkit.org/show_bug.cgi?id=200313
<rdar://problem/53777001>

Reviewed by Eric Carlson.

Only run the secheuristic scoring during UIGestureRecognizerStateEnded, rather than both
UIGestureRecognizerStateEnded and UIGestureRecognizerStateBegan. The goal of the heuristic is
to detect fake on-screen keyboards by detecting gestures that look like "typing". Using only
UIGestureRecognizerStateEnded still allows us to do this (as typing will usually have identical
geometries for both Ended and Began) without generating false-positives during swipe gestures.

  • UIProcess/ios/fullscreen/WKFullScreenViewController.mm:

(-[WKFullScreenViewController _touchDetected:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r248166 r248174  
     12019-08-02  Jer Noble  <jer.noble@apple.com>
     2
     3        [iPadOS] slides.google.com: Full Screen API warning is presented when swiping through slides
     4        https://bugs.webkit.org/show_bug.cgi?id=200313
     5        <rdar://problem/53777001>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Only run the secheuristic scoring during UIGestureRecognizerStateEnded, rather than both
     10        UIGestureRecognizerStateEnded and UIGestureRecognizerStateBegan. The goal of the heuristic is
     11        to detect fake on-screen keyboards by detecting gestures that look like "typing". Using only
     12        UIGestureRecognizerStateEnded still allows us to do this (as typing will usually have identical
     13        geometries for both Ended and Began) without generating false-positives during swipe gestures.
     14
     15        * UIProcess/ios/fullscreen/WKFullScreenViewController.mm:
     16        (-[WKFullScreenViewController _touchDetected:]):
     17
    1182019-08-02  Wenson Hsieh  <wenson_hsieh@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm

    r244955 r248174  
    530530- (void)_touchDetected:(id)sender
    531531{
    532     if ([_touchGestureRecognizer state] == UIGestureRecognizerStateBegan || [_touchGestureRecognizer state] == UIGestureRecognizerStateEnded) {
     532    if ([_touchGestureRecognizer state] == UIGestureRecognizerStateEnded) {
    533533        double score = _secheuristic.scoreOfNextTouch([_touchGestureRecognizer locationInView:self.view]);
    534534        if (score > requiredScore)
Note: See TracChangeset for help on using the changeset viewer.