[pdf] Speculatively fix PDFIFrameNavigationThrottle crash on Android
This is a speculative fix. But I think it has few / no side effects. Not 100% sure what's causing this crash, but I have two theories: 1. Perhaps navigation_handle()->GetWebContents() can return nullptr now. On Android only maybe? 2. I think posting to the UI thread is wrong in any case, we should be posting to the current sequence, as otherwise dereferencing the weak pointer is invalid. (It's not sequence-safe). Bug: 1058303 Change-Id: I75fcb86d58602d26e7b8d6991fd933b70881bd99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090300 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by:Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#747441}
Showing
Please register or sign in to comment