Closed
Bug 168451
Opened 23 years ago
Closed 23 years ago
Windows Internet Shortcut (.URL file) in the command line doesn't load the referenced address
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
People
(Reporter: lisken, Assigned: asa)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
When starting Mozilla on Windows with a command line of the form <Mozilla
Executable> <Path to a .URL file>, two different things can happen. Either
Mozilla shows the contents of the .URL file in plain-text style, or it offers a
"Save As" dialog.
This also affects the probably more common action of dragging an Internet
Shortcut onto the Mozilla .exe, or onto a shortcut to the .exe (such as one
you've copied from the start menu to the desktop, a handy icon to drag Internet
Shortcuts to).
When creating an Internet Shortcut from Mozilla by drag and drop, an extra NUL
character is written into the .URL file, causing the "Save As" behaviour.
Reproducible: Always
Steps to Reproduce:
1. Create a shortcut to Mozilla on your desktop (e.g. copy it from the start menu)
2. Create an Internet Shortcut (a .URL file)
3. Drag the Internet Shortcut onto the Mozilla shortcut
Actual Results:
Either Mozilla shows the contents of the .URL file in plain-text style, or it
offers a "Save As" dialog.
Expected Results:
Open the address stored within the .URL file, as it does when you drag the .URL
file into an existing Mozilla window.
Here are the contents of an Internet Shortcut. Paste these two
lines into a Notepad window and save as "Mozilla.url":
[InternetShortcut]
URL=http://www.mozilla.org/
The file becomes an Internet Shortcut. Drag it onto a shortcut
to the Mozilla .exe and you will see the contents in a Mozilla
Window. Drag the shortcut into that window now, you will see
the Mozilla website. Now drag the Mozilla icon next to the
URL in the Mozilla address field into a Windows Explorer Window,
e.g. just next to the Internet Shortcut you created manually.
This creates a new shortcut, "mozilla.org[.url]" (the .url
extension is not displayed. Close the Mozilla Windows. Drag
the new Internet Shortcut just created by Mozilla onto the
shortcut to the Mozilla .exe. This will cause the "Save As"
dialog. Look at the .url file in a hex editor. You will find
that Mozilla wrote an extra NUL character after the CR/LF
sequence that terminates the second line. That NUL character
causes the new behaviour.
Reporter | ||
Comment 1•23 years ago
|
||
The bit about the extra NUL character written by Mozilla is a duplicate, see bug
103468.
Summary: Two problems Windows with Intenet Shortcuts (.url files): following them from the command line, and creating them from Mozilla → Windows Internet Shortcuts (.url files) in the command line doesn't load the referenced address
Reporter | ||
Updated•23 years ago
|
Summary: Windows Internet Shortcuts (.url files) in the command line doesn't load the referenced address → Windows Internet Shortcut (.URL file) in the command line doesn't load the referenced address
Comment 2•23 years ago
|
||
The other issue is covered by bug 69114 -> marking duplicate.
*** This bug has been marked as a duplicate of 69114 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•