RESOLVED FIXED 207929
[iOS] Safari sometimes crashes under ViewGestureController::beginSwipeGesture
https://bugs.webkit.org/show_bug.cgi?id=207929
Summary [iOS] Safari sometimes crashes under ViewGestureController::beginSwipeGesture
Wenson Hsieh
Reported 2020-02-18 21:43:22 PST
Attachments
Patch (2.58 KB, patch)
2020-02-18 22:26 PST, Wenson Hsieh
no flags
Patch (3.82 KB, patch)
2020-02-19 08:01 PST, Wenson Hsieh
no flags
With logging (3.96 KB, patch)
2020-02-19 08:58 PST, Wenson Hsieh
thorton: review+
commit-queue: commit-queue-
Wenson Hsieh
Comment 1 2020-02-18 22:26:46 PST Comment hidden (obsolete)
Tim Horton
Comment 2 2020-02-18 22:50:03 PST
Please make sure that the SPI notifications are all called (and layer tree unfreeze, etc.)
Wenson Hsieh
Comment 3 2020-02-19 07:49:43 PST
(In reply to Tim Horton from comment #2) > Please make sure that the SPI notifications are all called (and layer tree > unfreeze, etc.) Good point! With my first patch, -_webViewDidBeginNavigationGesture: could get called before bailing from the null check, which would lead to imbalanced SPI delegate calls (to be fair, only in the case where we would otherwise crash the UI process). Another approach I tried initially was to move the null check before the didBegin call, such that the delegate would never need to be notified in the first place. I avoided this out of compat fear (i.e. the case where a client could depend on being able to adjust the back/forward list right before we proceed with the swipe). I think I’ll go for this original approach again, and double check to see if any of our clients actually take advantage of this functionality.
Wenson Hsieh
Comment 4 2020-02-19 08:01:43 PST Comment hidden (obsolete)
Wenson Hsieh
Comment 5 2020-02-19 08:58:30 PST
Created attachment 391167 [details] With logging
WebKit Commit Bot
Comment 6 2020-02-19 12:02:07 PST Comment hidden (obsolete)
Wenson Hsieh
Comment 7 2020-02-19 12:05:03 PST
Note You need to log in before you can comment on or make changes to this bug.