Chrome Version: 67.0.3396.62
OS: Linux
What steps will reproduce the problem?
(1) Create a file called "test🔒file.html".
(2) Open a new tab in Chrome.
(3) Drag and drop the file from the file explorer to the Chrome new tab page.
What is the expected result?
1. Opens the URL "file:///.../test%F0%9F%94%92file.html".
2. Correctly displays the file contents.
What happens instead?
1. Opens the URL "file:///.../test%25F0%259F%2594%2592file.html".
2. Shows ERR_FILE_NOT_FOUND.
Could be a Linux-only bug where it's being escaped once by the Linux drag-and-drop system and again by Chrome. It is correctly encoded if you double-click the file to open in Chrome.
Note that even if the file is correctly encoded (as in expected result step 1), it still shows ERR_FILE_NOT_FOUND, due to Issue 585422 . This bug is just about getting the correct URL.
Comment 1 by mgiuca@chromium.org
, Jun 6 2018