Reland: Fix crash when right clicking link in CastUI
This CL adds a null check to RenderViewContextMenu::AppendLinkItems() ensuring we have an associated Browser before attempting to use it. This is a reland of https://chromium-review.googlesource.com/c/chromium/src/+/1158110 without using TestWebContents (which results in a bad downcast). Bug: 869280 Change-Id: I6799f0c746c0cdca941e1235ac476f4e1d8a1f0e Reviewed-on: https://chromium-review.googlesource.com/1160121Reviewed-by:Avi Drissman <avi@chromium.org> Commit-Queue: Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#580405}
Showing
Please register or sign in to comment