Initiate drag-and-drop navigation through a local frame.
Since r774391 the dropped link opens in a new tab (via NavigationPolicy::kNavigationPolicyNewForegroundTab). This means that it doesn't matter which frame is used to initiate the navigation, since the navigation should always translate into an OpenURL with WindowOpenDisposition::NEW_FOREGROUND_TAB and handled in the new window/frame. After this CL, the navigation will be always initiated through the local frame that is handling the dropped URL. This helps avoid RemoteFrame::Navigate which doesn't know how to handle NavigationPolicy. and let's us restore the test asserts in the DragAndDropBrowserTest.DropValidUrlFromOutside test. Fixed: 1087898 Change-Id: Icc6b2d8da37f181a32663917a02850a72d9c5297 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2290705 Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Dana Fried <dfried@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#788370}
Showing
Please register or sign in to comment