Commit 560fdf9e authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Fix slimnav side swipe crash.

WebStateListObserving can pass a nil newWebState.

Bug: 935603
Change-Id: I1d7361199b2e1f238976c55bac98b7b0221740b6
Reviewed-on: https://chromium-review.googlesource.com/c/1489097
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarMohammad Refaat <mrefaat@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635655}
parent cdcc2055
......@@ -596,6 +596,9 @@ const NSUInteger kIpadGreySwipeTabCount = 8;
return;
}
if (!webState)
return;
// With slim nav enabled, disable SideSwipeController's edge swipe for a
// typical navigation. Continue to use SideSwipeController when on, before,
// or after a native page.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment