Adding MIME Types allows a empty name to be used

VERIFIED FIXED in mozilla0.9.8

Status

Core Graveyard
File Handling
--
enhancement
VERIFIED FIXED
17 years ago
2 years ago

People

(Reporter: Jay Farrell, Assigned: Bill Law)

Tracking

Trunk
mozilla0.9.8

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID:    20020109

While running the Preferences test suite, I entered a "New Type" in
Helper Apps and was allowed to enter nothing in the MIME Type field.
This put an entry into the File Types list, but it didn't have a name
and looked like a blank line.

Reproducible: Always
Steps to Reproduce:
1. select Edit | Preferences
2. Choose Navigator -> Helper Apps
3. Click New Type...
4. enter data into the New Type dialog box, but leave MIME Type
 empty.

Actual Results:  Blank line appears in File Types list

Expected Results:  I expect that a MIME Type name to be entered, and if it's 
not, that
you are prompted to enter one.

I first saw this on OpenVMS, but then tested on a Linux system which
had the same problem.
that's weird. a bug here was recently fixed, preventing entry of blank mimetypes.

bill?
Assignee: sgehani → law
Component: Preferences → File Handling
(Assignee)

Comment 2

17 years ago
Well, I made it so you have to enter a mime type, but apparently didn't go so
far as to force you to enter a non-blank mime type!

Easily remedied.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → mozilla0.9.8
oh, y'mean like entering a whitespace?
(Assignee)

Comment 4

17 years ago
Created attachment 65074 [details] [diff] [review]
Fix to detect all-whitespace input for mime type field.
Comment on attachment 65074 [details] [diff] [review]
Fix to detect all-whitespace input for mime type field.

r=bzbarsky
Attachment #65074 - Flags: review+

Comment 6

17 years ago
Comment on attachment 65074 [details] [diff] [review]
Fix to detect all-whitespace input for mime type field.

sr=jag
Attachment #65074 - Flags: superreview+
(Assignee)

Comment 7

17 years ago
fixed
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
vrfy'd fixed using 2002.06.17.0x comm branch bits on linux rh7.2, win2k and mac
10.1.5.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.