Closed Bug 309916 Opened 19 years ago Closed 19 years ago

Editing mime-type handlers fails with a missing handler

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox1.5

People

(Reporter: philor, Assigned: philor)

References

Details

(Keywords: fixed1.8)

Attachments

(1 file, 1 obsolete file)

If you have a mime-type handler that no longer exists, the View & Edit
Actions... dialog throws when it tries to get the display name, and doesn't show
any actions at all.

STR:
1. Click http://philringnalda.com/mtests/handlergone/hard.cheese
2. In the dialog, select Open with, Browse to a program you don't mind moving,
and check Do this automatically...
3. Change either the filename, or any part of the path, for the program you used
in step 2.
4. Open Tools/Options/Downloads, and click View & Edit Actions...
5. The dialog is blank, and the jsconsole says "Error: uncaught exception:
[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsILocalFileWin.getVersionInfoField]"  nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
chrome://browser/content/preferences/downloadactions.js :: anonymous :: line
251"  data: no]"

After customHandler.initWithPath(externalAppPath); we need to be sure
customHandler exists.
Flags: blocking1.8b5?
Attached patch patch (obsolete) — Splinter Review
Attachment #197297 - Flags: review?(mconnor)
Attachment #197297 - Attachment is obsolete: true
Attachment #197297 - Flags: review?(mconnor)
Attached patch patch v.2Splinter Review
gavin sez: don't put it in the try{} if you don't need it in the try{}.
Attachment #197298 - Flags: review?(mconnor)
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox1.5
Attachment #197298 - Flags: review?(mconnor) → review+
Whiteboard: [checkin needed]
Trunk:
mozilla/browser/components/preferences/downloadactions.js; new revision: 1.7;
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Attachment #197298 - Flags: approval1.8b5?
*** Bug 310016 has been marked as a duplicate of this bug. ***
Comment on attachment 197298 [details] [diff] [review]
patch v.2

approving this very low risk change.
Attachment #197298 - Flags: approval1.8b5? → approval1.8b5+
Flags: blocking1.8b5? → blocking1.8b5+
Whiteboard: [checkin needed][a+]
1.8 branch:
Checking in downloadactions.js;
/cvsroot/mozilla/browser/components/preferences/downloadactions.js,v  <-- 
downloadactions.js
new revision: 1.5.2.1; previous revision: 1.5
done
Keywords: fixed1.8
Whiteboard: [checkin needed][a+]
YES, IT IS FIXED.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: