Files app: Fix Downloads to not be moved in a drag and drop
Change FileTransferController.canCutOrDrag() to check for util.isNonModifiable() so folders that shouldn't be renamed/moved can't be moved via drag and drop. NOTE #1: With this change Downloads will be copied upon this drag and drop use case, but that's the normal behavior because users are allowed to copy Downloads. NOTE #2: This couldn't be tested with the integration tests because our test function fakeDragAndDrop() cannot emulate the DataTransfer required for this issue. Manually tested in the device dragging and dropping Downloads in another folder Test: browser_tests --gtest-filter=" FileManagerJsTest.FileTransferController" Bug: 1007234 Change-Id: I3ed28465c3d21abd34334b33c0dd65c68a47ea7f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404226 Commit-Queue: Alex Danilo <adanilo@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Cr-Commit-Position: refs/heads/master@{#806524}
Showing
Please register or sign in to comment