Closed
Bug 74510
Opened 24 years ago
Closed 24 years ago
We should not extension-guess a mime type if the server returned one
Categories
(Core :: Networking, defect)
Tracking
()
People
(Reporter: bzbarsky, Assigned: neeti)
References
()
Details
BUILD: linux 2001-04-02-16
STEPS TO REPRODUCE:
1) go to above URL
ACTUAL RESULTS:
A helper app dialog box pops up for the application/vnd.mozilla.xul+xml mimetype
EXPECTED RESULTS:
A helper app dialog box for the text/xul mimetype
NOTES:
The problem lies in
http://lxr.mozilla.org/seamonkey/source/uriloader/exthandler/nsExternalHelperAppService.cpp#216
-- the implementation of nsExternalHelperAppService::DoContent
We try to guess a content type when the one returned by the server is unknown.
If the guessed type is an internal type that is not handled by any helper apps
(eg application/vnd.mozilla.xul+xml or text/html) then we end up putting up a
"pick an application or save" dialog for that bogus mimetype. This is very
confusing to users.
this isn't an xpapps bug -- the problem is in uriloader...
Assignee: ben → neeti
Component: XP Apps: GUI Features → Networking
QA Contact: sairuh → tever
Reporter | ||
Comment 4•24 years ago
|
||
ccing mscott, who wrote the original code.
Comment 6•24 years ago
|
||
Possibly related, if not from the same cause. I tried tracing through the code,
but got lost along the way.
I noticed that xpfe/components/ucth isn't used, and
http://lxr.mozilla.org/seamonkey/source/uriloader/base/nsURILoader.cpp#334
contains:
334 // BIG TIME HACK ALERT!!!!! WE NEED THIS HACK IN PLACE UNTIL OUR NEW
UNKNOWN CONTENT
335 // HANDLER COMES ONLINE!!!
336 // Until that day, if we couldn't find a handler for the content type,
then go back to the listener who
337 // originated the url request and force them to handle the
content....this forces us through the old code
338 // path for unknown content types which brings up the file save as
dialog...
which could be related...
Comment 7•24 years ago
|
||
Actually, I've just reread that bug, and this does look like a dupe.
Reporter | ||
Comment 8•24 years ago
|
||
Yes, looks like a dup to me too. Marking so.
*** This bug has been marked as a duplicate of 46655 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•