Closed
Bug 295954
Opened 20 years ago
Closed 3 years ago
Bad path catched when selecting a file with ".URL" extension inside an <input type file>, before submitting
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: knocte, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 The .URL extension is used in Windows to save shortcut files to WWW sites. If, using a file selector (<input type="file" />) you browse your file system to select this type of file, the path catched to the text input control is not correct. Reproducible: Always Steps to Reproduce: 1. Save a new .URL file to your desktop. To make one, grab this example content (text/plain type) to a file: [InternetShortcut] URL=http://www.mozilla.org/ (I will add a new attachment with this file example.) 2. Open a web page that contains a file selector control (<input type="file" />). (I will add an example file as attachment also.) 3. Press the button "Browse...", navigate through your file system to localize the file with ".URL" extension, and select it. Actual Results: The input file selector shows: "C:\Documents and Settings\knocte\Local configuration\Temporary internet files\Content.IE5\2SKM85OA\www.mozilla[1]" Expected Results: The input file selector SHOULD show the correct path: "C:\Documents and Settings\knocte\Desktop\FileWithURLextension.URL" I suppose that this weird behavior is only present on Windows. I will try on Linux later. Workaround: write the path to the URL file manually.
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Got: C:\Documents and Settings\jovillalobos\Configuración local\Archivos temporales de Internet\Content.IE5\SLY3SDAV\www.mozilla[1] Instead of: C:\Documents and Settings\jovillalobos\Escritorio\FileWithURLextension.url
Confirmed. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050529 Firefox/1.0+ -> XPToolkit / Widgets
Assignee: nobody → jag
Status: UNCONFIRMED → NEW
Component: General → XP Toolkit/Widgets
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → jrgmorrison
Version: unspecified → Trunk
| Reporter | ||
Comment 5•20 years ago
|
||
Thanks for confirming the bug Devin. I confirm now that this bug is only affecting to Windows. (Linux has a normal behaviour.)
Seems that under Windows an IE control loads the destination URL from the .url file hence the file in the IE cache.
Comment 7•19 years ago
|
||
Last I checked, this was just how the Windows filepicker behaved, unless you disable all following of .url links (and then you can't follow such links to directories in the filepicker).
Assignee: jag → win32
Component: XP Toolkit/Widgets → Widget: Win32
QA Contact: jrgmorrison → ian
Updated•15 years ago
|
Assignee: win32 → nobody
QA Contact: ian → win32
Comment 8•3 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky] from comment #7)
Last I checked, this was just how the Windows filepicker behaved, unless you
disable all following of .url links (and then you can't follow such links to
directories in the filepicker).
Microsoft Edge behaves identically on Windows 11.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•