Closed Bug 15892 Opened 25 years ago Closed 25 years ago

pluglets do not work with multiple MIMEtypes definition

Categories

(Core Graveyard :: Java-Implemented Plugins, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: blackconnect, Assigned: blackconnect)

Details

Attachments

(1 file)

If we have more than one mime type in our pluglet manifest file (for exampe: mime1;mime2;mime3::) only first is working
The reason of this bug is: --- Pluglet::Compare method *************** *** 163,169 **** } p1 = p2 ; if (p2 != NULL) { p2 = strchr(p2,';'); p1++; } } -- p2 is pointing to ';'. After we call strchr(p2,';') we will point to the same location because the first occurrence of ';' would the first character. So we never get second token and we will have infinite loop. Suggested fix: we need to increment p2 before calling strchr(p2,';') (see attachments) This fix was approved by akhil.arora@sun.com
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified with mozilla branch Netscape61_RELEASE and blackwood branch JAVADEV_6_1_20010831 under Sparc Solaris 2.8. Pluglets worked with any of defined in manifest mime types.
VERIFIED
Status: RESOLVED → VERIFIED
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: