Closed Bug 308715 Opened 19 years ago Closed 19 years ago

Right-clicking to "Save Link As" saves a file (link) that doesn't exist

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: lammertra, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

In Firefox 1.0.6, right-clicking and attempting to "Save Link As" for a link
that doesn't exist immediately produces an error dialog that the page doesn't
exist.  In Firefox 1.5 Beta 1, no error message gets displayed, and a file gets
downloaded, but the file is the HTML stating that the page doesn't exist.  Since
Firefox names the downloaded HTML whatever the link was supposed to be, this can
result in apparently corrupt files.

Reproducible: Always

Steps to Reproduce:
1. Save a text file with the one line "<a
href="http://www.loc.gov/catdir/cpso/wlc05/axxx0552.pdf">No good<br>", naming it
"test.html"
2. Open the file in Firefox.
3. Right-click on "No good," and select "Save Link As..."
4. Specify a location for the file and wait.

Actual Results:  
A file, ostensibly a PDF file (since it was named axxx0552.pdf), is downloaded.
 However, Adobe Acrobat won't open the file.  Opening the file in a text editor
reveals that it is actually an HTML file, reporting that the page was not found.
 Changing the file's name to axxx0552.html and opening it in Firefox shows the
actual HTML page downloaded--not a PDF file.

Expected Results:  
Report, as Firefox 1.0.6 did, that the requested file does not exist.
Hmm, it actually saves the 404 page.
-> invalid, per comment 1.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.