Check for -1 index in AddTabAt
See the attached bug for the related crash. I wasn't able to repro the crash, but a -1 index seems like a likely candidate. The previous code did catch it: https://chromium-review.googlesource.com/c/chromium/src/+/1999088/10/chrome/browser/ui/views/tabs/tab_strip.cc#b1081 So I added a check in here for a -1 index, to see if that fixes the issue. Bug: 1049240 Change-Id: I670ae27d0fe3899e2985575eeb395bfbb68f4cef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040060Reviewed-by:Taylor Bergquist <tbergquist@chromium.org> Commit-Queue: Connie Wan <connily@chromium.org> Cr-Commit-Position: refs/heads/master@{#738747}
Showing
Please register or sign in to comment