Bug 184656 - Disable backward and forward navigation swipes while in fullscreen.
Summary: Disable backward and forward navigation swipes while in fullscreen.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jeremy Jones
URL:
Keywords: InRadar
Depends on: 184857
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-16 10:00 PDT by Jeremy Jones
Modified: 2018-04-21 14:52 PDT (History)
5 users (show)

See Also:


Attachments
Patch (14.58 KB, patch)
2018-04-16 11:03 PDT, Jeremy Jones
no flags Details | Formatted Diff | Diff
Patch (1.98 KB, patch)
2018-04-20 16:40 PDT, Jeremy Jones
no flags Details | Formatted Diff | Diff
Patch for landing (2.01 KB, patch)
2018-04-21 10:18 PDT, Jeremy Jones
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Jones 2018-04-16 10:00:56 PDT
Disable backward and forward navigation swipes while in fullscreen.
Comment 1 Jeremy Jones 2018-04-16 10:01:56 PDT
rdar://problem/36057535
Comment 2 Jeremy Jones 2018-04-16 11:03:53 PDT
Created attachment 338015 [details]
Patch
Comment 3 Simon Fraser (smfr) 2018-04-16 11:11:33 PDT
Comment on attachment 338015 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=338015&action=review

> Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:334
>      BOOL _allowsBackForwardNavigationGestures;
> +    BOOL _disableBackForwardNavigationGestures;

This is really confusing. At least add a comment saying which one wins.

> Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:706
>      bool m_allowsBackForwardNavigationGestures { false };
> +    bool m_disableBackForwardNavigationGestures { false };

Same here.
Comment 4 Jeremy Jones 2018-04-20 10:57:01 PDT
Comment on attachment 338015 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=338015&action=review

>> Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:334
>> +    BOOL _disableBackForwardNavigationGestures;
> 
> This is really confusing. At least add a comment saying which one wins.

// Back-forward navigation requires both  _allowsBackForwardNavigationGestures and not _disableBackForwardNavigationGestures.
Comment 5 Jeremy Jones 2018-04-20 16:40:21 PDT
Created attachment 338486 [details]
Patch
Comment 6 WebKit Commit Bot 2018-04-20 18:32:23 PDT
Comment on attachment 338486 [details]
Patch

Clearing flags on attachment: 338486

Committed r230873: <https://trac.webkit.org/changeset/230873>
Comment 7 WebKit Commit Bot 2018-04-20 18:32:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Chris Dumez 2018-04-20 19:21:24 PDT
Comment on attachment 338486 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=338486&action=review

> Source/WebKit/UIProcess/Cocoa/ViewGestureController.cpp:119
> +    if (m_webPageProxy.fullScreenManager() && m_webPageProxy.fullScreenManager()->isFullScreen())

This seems to have broken the iOS build:
/Volumes/Data/slave/ios-simulator-11-release/build/Source/WebKit/UIProcess/Cocoa/ViewGestureController.cpp:119:24: error: no member named 'fullScreenManager' in 'WebKit::WebPageProxy'
    if (m_webPageProxy.fullScreenManager() && m_webPageProxy.fullScreenManager()->isFullScreen())
        ~~~~~~~~~~~~~~ ^
/Volumes/Data/slave/ios-simulator-11-release/build/Source/WebKit/UIProcess/Cocoa/ViewGestureController.cpp:119:62: error: no member named 'fullScreenManager' in 'WebKit::WebPageProxy'
    if (m_webPageProxy.fullScreenManager() && m_webPageProxy.fullScreenManager()->isFullScreen())
                                              ~~~~~~~~~~~~~~ ^
2 errors generated.

https://build.webkit.org/builders/Apple%20iOS%2011%20Simulator%20Release%20%28Build%29/builds/5257/steps/compile-webkit/logs/stdio
Comment 9 WebKit Commit Bot 2018-04-20 19:23:56 PDT
Re-opened since this is blocked by bug 184857
Comment 10 Jeremy Jones 2018-04-21 10:18:19 PDT
Created attachment 338526 [details]
Patch for landing
Comment 11 WebKit Commit Bot 2018-04-21 14:52:57 PDT
Comment on attachment 338526 [details]
Patch for landing

Clearing flags on attachment: 338526

Committed r230896: <https://trac.webkit.org/changeset/230896>
Comment 12 WebKit Commit Bot 2018-04-21 14:52:58 PDT
All reviewed patches have been landed.  Closing bug.