-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual cherry-pick of patch originally reviewed on https://chromium-review.googlesource.com/c/chromium/src/+/4902775: Drag and drop: prevent cross-origin same-tab drags that span navigations In IsValidDragTarget, the old RenderViewHostID comparison was not necessary to distinguish between same- and different-tab drags because, contrary to the previous comment, that case is covered by the `drag_start_` check. This check was only serving to permit some drags which were same-tab, but not same-RVH, which should be disallowed. A complete rundown of the business logic and the reason for the business logic is here: https://bugs.chromium.org/p/chromium/issues/detail?id=1266953#c22 A regression test is added which is confirmed to fail without this fix, but only on Chrome OS because that's the only Aura platform where the DND interactive UI tests are not already disabled (Windows and Linux were disabled). Bug: 1485266 Change-Id: Ifdd6eec14df42372b0afc8ccba779a948cbaaaa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4902775 Commit-Queue: Evan Stade <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Charlie Reis <[email protected]> Cr-Commit-Position: refs/heads/main@{#1204930} Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/523704 Reviewed-by: Michal Klocek <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters