Bug 184656

Summary: Disable backward and forward navigation swipes while in fullscreen.
Product: WebKit Reporter: Jeremy Jones <jeremyj-wk>
Component: WebKit2Assignee: Jeremy Jones <jeremyj-wk>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 184857    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Jeremy Jones
Reported 2018-04-16 10:00:56 PDT
Disable backward and forward navigation swipes while in fullscreen.
Attachments
Patch (14.58 KB, patch)
2018-04-16 11:03 PDT, Jeremy Jones
no flags
Patch (1.98 KB, patch)
2018-04-20 16:40 PDT, Jeremy Jones
no flags
Patch for landing (2.01 KB, patch)
2018-04-21 10:18 PDT, Jeremy Jones
no flags
Jeremy Jones
Comment 1 2018-04-16 10:01:56 PDT
Jeremy Jones
Comment 2 2018-04-16 11:03:53 PDT
Simon Fraser (smfr)
Comment 3 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.
Jeremy Jones
Comment 4 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.
Jeremy Jones
Comment 5 2018-04-20 16:40:21 PDT
WebKit Commit Bot
Comment 6 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>
WebKit Commit Bot
Comment 7 2018-04-20 18:32:24 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 8 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
WebKit Commit Bot
Comment 9 2018-04-20 19:23:56 PDT
Re-opened since this is blocked by bug 184857
Jeremy Jones
Comment 10 2018-04-21 10:18:19 PDT
Created attachment 338526 [details] Patch for landing
WebKit Commit Bot
Comment 11 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>
WebKit Commit Bot
Comment 12 2018-04-21 14:52:58 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.