Closed Bug 116079 Opened 23 years ago Closed 23 years ago

Dragging files with no extension to browser downloads the file

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

PowerPC
macOS
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: mikepinkerton, Assigned: sdagley)

References

Details

(Keywords: regression, Whiteboard: [adt2 RTM] [ETA 05/31])

Attachments

(1 file)

Debug mozilla build from 12/19/01. drag a text file called "foopy" to the browser from the finder. it'll download it instead of displaying it. Drag foopy.c and all is well. this seems to regress every other week or so.
Adding nsbeta1 keyword to all regressions so they *get some love* and attention.
Target Milestone: --- → mozilla1.0.1
sorry, works fine on windows. what can I say?
Assignee: blaker → pinkerton
Target Milestone: mozilla1.0.1 → ---
xpapps. if blake doesn't have a mac, get him one. these bugs aren't mine.
Assignee: pinkerton → trudelle
->jag
Assignee: trudelle → jaggernaut
nsbeta1+ per nav triage team.
Keywords: nsbeta1nsbeta1+
-> 1.0
Target Milestone: --- → mozilla1.0
Whiteboard: [adt3]
Mass moving nsbeta1+/adt3 bugs assigned to Navigator team engineers out to target milestone 1.0.1. Please confine your attentions to driving down our list of TM 1.0 bugs for beta. Better to help, debug, or test one of them than fix one of these.
Target Milestone: mozilla1.0 → mozilla1.0.1
i guess i'm going to have to fix this myself.
Assignee: jaggernaut → pinkerton
Whiteboard: [adt3] → [adt2]
Target Milestone: mozilla1.0.1 → mozilla1.0
the problem is on line 294 of nsInternetConfigService.cpp. For some reason, IC isn't filling in the mimetype field of the ICEntry even though it should have that info because it knows about the type/creator. To fix another bug, pchen changed it so that we default to _binary_ if we don't get a mimetype. That's why we try to d/l it. over to dagley, who might be able to coax a little more out of IC than we currently do.
Assignee: pinkerton → sdagley
It seems the IC mappings for mime types aren't very agressive if only the type and creator are known. This patch implements a bandaid for the most common case, where the file type of the file is 'TEXT'. A more robust solution we may consider in the futre is examining the file contents to determine the type.
Comment on attachment 81455 [details] [diff] [review] Patch to be smarter about setting mime type for 'TEXT' files r=bryner
Attachment #81455 - Flags: review+
sr=hyatt
Fix checked in on trunk. Forgot to mention that this bandaid is the solution pinkerton and I agreed was the acceptable one for now.
nominating for branch
Keywords: adt1.0.0
Comment on attachment 81455 [details] [diff] [review] Patch to be smarter about setting mime type for 'TEXT' files hyatt sr'd but didn't use the patch manager
Attachment #81455 - Flags: superreview+
This sounds like a good candidate to take in a couple, as we are ramping down. adt1.0.0- [adt2 RTM]
Keywords: adt1.0.0adt1.0.0-
Whiteboard: [adt2] → [adt2 RTM]
adt1.0.0+ (on ADT's behalf) for approval to checkin to the 1.0 branch, pending Driver's approval. After, checking in, please add the fixed1.0 keyword.
Keywords: adt1.0.0-adt1.0.0+
Whiteboard: [adt2 RTM] → [adt2 RTM] [ETA 05/31]
Blocks: 143047
changing to adt1.0.1+ for checkin to the 1.0 branch. Please get drivers approval before checking in.
Keywords: adt1.0.0+adt1.0.1+
Target Milestone: mozilla1.0 → mozilla1.0.1
please checkin to the 1.0.1 branch ASAP. once there, remove the mozilla1.0.1+ keyword and add the fixed1.0.1 keyword.
Keywords: mozilla1.0.1+
Attachment #81455 - Flags: approval+
Fix checked in on MOZILLA_1_0_BRANCH tag
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified fixed Mac OS X trunk build 2002060403 and Mac OS X branch build 2002060405
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: