Bug 199394 - REGRESSION (r243240): Unable to swipe back in Safari
Summary: REGRESSION (r243240): Unable to swipe back in Safari
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-07-01 20:08 PDT by Tim Horton
Modified: 2019-07-08 08:58 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.86 KB, patch)
2019-07-01 20:08 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (4.41 KB, patch)
2019-07-02 13:43 PDT, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2019-07-01 20:08:01 PDT
REGRESSION (r243240): Unable to swipe back in Safari
Comment 1 Tim Horton 2019-07-01 20:08:09 PDT
Created attachment 373302 [details]
Patch
Comment 2 Tim Horton 2019-07-01 20:08:10 PDT
<rdar://problem/51137447>
Comment 3 Chris Dumez 2019-07-01 20:19:31 PDT
Comment on attachment 373302 [details]
Patch

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

> Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:-1900
> -    _gestureController = nullptr;

So we do not even need a call to _gestureController->disconnectFromProcess() ?
Comment 4 Tim Horton 2019-07-01 22:08:12 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 373302 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=373302&action=review
> 
> > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:-1900
> > -    _gestureController = nullptr;
> 
> So we do not even need a call to _gestureController->disconnectFromProcess()
> ?

Hmm, I don't think so? The connect just bails and all is well (and they communicate by pageID so things just fall back into place. I'll check if it's safe to disconnect and if it is we'll do that just for safety/readability's sake, though.
Comment 5 Tim Horton 2019-07-02 13:43:17 PDT
Created attachment 373356 [details]
Patch
Comment 6 Chris Dumez 2019-07-02 14:19:39 PDT
Comment on attachment 373356 [details]
Patch

LGTM too.
Comment 7 WebKit Commit Bot 2019-07-02 15:04:16 PDT
Comment on attachment 373356 [details]
Patch

Clearing flags on attachment: 373356

Committed r247073: <https://trac.webkit.org/changeset/247073>
Comment 8 WebKit Commit Bot 2019-07-02 15:04:18 PDT
All reviewed patches have been landed.  Closing bug.