Jump to content

Drag & drop functionality changes soon in Chromium-based browsers


Recommended Posts

Drag & drop functionality changes soon in Chromium-based browsers

Most Internet users know that they can drop files on the browser window to have them displayed by the browser or opened provided that the file type is supported.

 

If you drag a file, e.g. an image or video, on a Chromium browser window, e.g. of Google Chrome or Microsoft Edge, you will notice that it opens in that tab directly.

 

Any interaction that you had with the site in question, e.g. form data that you entered, are lost when the file is dropped. The file is displayed or the resource is loaded, but anything that was loaded prior to the action is lost.

 

Soon, this will no longer be the case as the drag & drop functionality is going to change soon in stable versions of the browser. Basically, what the change does is open the dragged file or resource in a new foreground tab.

 

chrome-edge-drag-drop-new-tab.png

 

file-opened-in-new-tab.png

 

There are two exceptions to the rule:

  1. If the site accepts file uploads, e.g. via JavaScript, and you drag & drop files on the element on the webpage. One of the main cases of unwanted drag & drop operations happens on these sites as users need to hit the area that accepts the file(s). If they miss it, the file is going to get loaded instead and any data entered on the webpage is lost.
  2. If you want to override the default behavior and want the dragged content opened in the same tab, then you may drop it on the tab strip to do so.

The change is available in some preview versions already. A test in the latest Chrome Canary version confirmed that it is active already in the browser. When you drag files on the browser window you will notice that these will get opened in a new tab in the browser and not the active tab.

 

Microsoft Edge engineer Eric Lawrence landed the patch recently in Chromium 85.0.4163.0. The change will land in all Chromium-based web browsers unless developers change the functionality actively.

 

The issue has been discussed at length in 2015 when a bug was filed on the Chromium website but nothing came out of it until now.

 

 

Drag & drop functionality changes soon in Chromium-based browsers

 

ThanksForReading200x49.jpg

Link to post
Share on other sites
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

  • Karlston

    1

Popular Days

Top Posters In This Topic

Popular Days

Popular Posts

Drag & drop functionality changes soon in Chromium-based browsers Most Internet users know that they can drop files on the browser window to have them displayed by the browser or opened pr

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...