Closed Bug 222501 Opened 21 years ago Closed 15 years ago

[exthandler] unhelpful error message if helper app not found

Categories

(Core Graveyard :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dwitte, Assigned: bzbarsky)

Details

Attachments

(1 file, 1 obsolete file)

so... i got this unhelpful error message when trying to view a pdf: /tmp/foo.pdf could not be opened, because an unknown error occurred. Sorry about that. Try saving to disk first and then opening the file. turns out /etc/mailcap says 'xpdf' is the helper app for application/pdf, and i don't have xpdf installed. so |application| at http://lxr.mozilla.org/seamonkey/source/uriloader/exthandler/unix/nsOSHelperAppService.cpp#103 is null. could we get a more helpful error message, perhaps? :) (i have an HelperAppService:4 log, which biesi can attach here)
So first off, I guess we should return NS_ERROR_FILE_NOT_FOUND here. Looking at the caller, that should be sufficient to get the "%S could not be opened, because the associated helper application does not exist. Change the association in your preferences." error instead.
Attached patch Patch for just the error message (obsolete) — Splinter Review
Per discussion with biesi, we would like to allow save when this error happens, or maybe even something more sneaky (like re-posing the helper app dialog).
Taking.
Assignee: cbiesinger → bzbarsky
Priority: -- → P2
Target Milestone: --- → mozilla1.6alpha
Comment on attachment 133443 [details] [diff] [review] Patch for just the error message this looks fine to me and we should do it in any case
Attachment #133443 - Flags: review+
Comment on attachment 133443 [details] [diff] [review] Patch for just the error message well, I'd like to check this in then before even doing the main work...
Attachment #133443 - Flags: superreview?(darin)
Attachment #133443 - Flags: superreview?(darin) → superreview+
Comment on attachment 133443 [details] [diff] [review] Patch for just the error message This patch is in.
Attachment #133443 - Attachment is obsolete: true
QA Contact: file-handling
I'm going to call this fixed. If someone wants to file a separate bug for the pie-in-the-sky bit in comment 3, go for it.
Status: NEW → RESOLVED
Closed: 15 years ago
Priority: P2 → --
Resolution: --- → FIXED
Target Milestone: mozilla1.6alpha → ---
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: