Open Bug 458102 Opened 16 years ago Updated 2 years ago

JavaScript exception canceling saving of a file: 0x80004005 (NS_ERROR_FAILURE)

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: fehe, Unassigned)

References

()

Details

(Whiteboard: )

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20081001 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20081001 Firefox/2.0.0.11

If canceling the save operation for a file to be downloaded, the following exception is produced in Error Console.  This occurs even with a clean profile:

Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIHelperAppLauncher.saveToDisk]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: file:///D:/firefox/components/nsHelperAppDlg.js :: anonymous :: line 471"  data: no]
Source File: file:///D:/firefox/components/nsHelperAppDlg.js
Line: 471


Reproducible: Always

Steps to Reproduce:
1. Create a new profile
2. Start Firefox and go to Tools --> Options... --> Main
3. Select "Always ask me where to save files."  Click OK
4. Open Error Console and make sure logging of "Errors" is enabled
5. Visit the linked URL and click the "Download Now" link.
6. When the "Opening SysinternalsSuite.zip" dialog appears, select "Save File" and navigate to any folder other than Desktop.
7. Click Cancel.
8. Go to Error Console and scroll down to see the aforementioned exception.
Version: unspecified → Trunk
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18pre) Gecko/20080915 BonEcho/2.0.0.18pre

I was not able to reproduce this with the STR. Maybe fixed in the meantime? Can you try updating to the latest version and try again?
I can still reproduce easily with the latest hourly (4 hours late -- something wrong with the build server?).

Are you sure you're navigating through some folders before you hit the Cancel button?  It doesn't work if you do it at the Desktop or even the root of a Drive.

Furthermore, either you're spoofing your useragent or you're testing with the wrong browser.
It was tested with a 2-3 weeks old nightly build of Firefox 2. Bugs like this won't probably be fixed anymore in old versions. Can you try Firefox 3? http://www.mozilla.com/en-US/
Never mind, you were testing this for trunk probably, but you reported it with an old Firefox 2 version; that caused the confusion. I see this error indeed in the latest trunk build on Windows XP.
Status: UNCONFIRMED → NEW
Ever confirmed: true
this is WFM using Minefield/3.1b2pre ID:20081112034733 on XP
Definitely not WFM:

Error: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIHelperAppLauncher.saveToDisk]
Source file: file:///C:/Program%20Files/Internet/firefox/components/nsHelperAppDlg.js
Line: 471

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081113 Firefox/2.0.0.11 ID:20081113040854
Shredder also affected.
Product: Firefox → Core
QA Contact: file.handling → file-handling
UI, can you still reproduce?

works for me with Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0
Whiteboard: [closeme 2012-08-21]
(In reply to Wayne Mery (:wsmwk) from comment #8)
> UI, can you still reproduce?
> 
> works for me with Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0
> Firefox/17.0

Yes it it still reproducible.

Timestamp: 9/5/2012 10:35:30 PM
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIHelperAppLauncher.saveToDisk]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///components/nsHelperAppDlg.js :: <TOP_LEVEL> :: line 474"  data: no]
Source File: resource:///components/nsHelperAppDlg.js
Line: 474
My build:

Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/18.0 Firefox/18.0

http://hg.mozilla.org/mozilla-central/rev/6705e131aeaa
Whiteboard: [closeme 2012-08-21] →
This happens also with Linux:

My build: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0

Zeitstempel: 04.01.2013 22:08:12
Fehler: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIHelperAppLauncher.saveToDisk]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///components/nsHelperAppDlg.js :: <TOP_LEVEL> :: line 459"  data: no]
Quelldatei: resource:///components/nsHelperAppDlg.js
Zeile: 459

It differs with web sites - on some it happens more often than on others - and it changes on repetition - like the download starting on 3rd try - , and happens only with "Save to disk". "Open with" always works (and then moving the download from the temporary folder is a workaround.

For me it happened since some versions, like 12.0 or so, never had it before, but since on both platforms, Win XP and Ubuntu, currently 12.04.
Product: Core → Firefox
Version: Trunk → unspecified
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.