Closed
Bug 53895
Opened 25 years ago
Closed 23 years ago
[WINDOWS] mimetype.description should not contain (*.suffix)
Categories
(Core Graveyard :: Plug-ins, defect, P4)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: bugzilla, Assigned: serhunt)
References
()
Details
(Whiteboard: [PL2:NA])
Attachments
(1 file)
2.59 KB,
patch
|
peterlubczynski-bugs
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
If you look at the about:plugins page the mimetype.description incorrectly
contains *.suffix information.
Fx the "Netscape Navigator Plug-in for Adobe Acrobat v4.05"
mimetype.description is "Acrobat (*.pdf)"
in Netscape 4.x the description is just "Acrobat" which is correct. The suffix
info can be retrived from the mimetype.suffixes
Expected:
the "mimetype.description" returns just the description not any info about the
suffixes!
Reporter | ||
Updated•25 years ago
|
URL: about:plugins
Comment 1•24 years ago
|
||
Not a Netscape 6 RTM blocker. FUTURE. This bug has been marked Future because
the Netscape engineer it is assigned to is overburdened.
Target Milestone: --- → Future
Reporter | ||
Comment 2•24 years ago
|
||
the "Description" field contains reduntant info, since suffixes can be obtained
via the "Suffixes" object.
Netscape 4.x didn't include suffixes in "Description".
Keywords: 4xp
Reporter | ||
Comment 3•23 years ago
|
||
I'm not sure how Netscape 4.x did this but Mozilla seems to just read the
FileOpenName property of the plugin file. This is done in:
http://lxr.mozilla.org/mozilla/source/modules/plugin/base/src/nsPluginsDirWin.cpp#405
perhaps someone could look at how Netscape 4.x did this?
Comment 4•23 years ago
|
||
Nav4 also gets the description from the FileOpenName property, but it strips off
the suffix information. A little experimentation suggests that it strips off
everything starting with the last open parenthesis found in the string. (In
other words, it's a hack.)
Comment 5•23 years ago
|
||
the suffix comes from the plug-in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Comment 6•23 years ago
|
||
The FileOpenName field contains both the description and the suffix, as is
required by the plug-in specification. When a script queries the description,
Mozilla returns the entire FileOpenName field instead of correctly parsing out
the description. Granted that this is a very minor problem, but marking it
INVALID in this way implies that there is something wrong with what the plug-ins
are doing, which is not true.
Comment 7•23 years ago
|
||
Yeah, if 4.x did this, we really should emulate. There may be JS out there
depending on this quirk.
Here's how 4.x did it:
http://lxr.netscape.com/nova/source/lib/plugin/npwplat.cpp#655
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 8•23 years ago
|
||
--->taking bug
Assignee: av → peterl
Severity: normal → minor
Status: REOPENED → NEW
OS: All → Windows XP
Priority: P3 → P4
Summary: mimetype.description should not contain (*.suffix) → [WINDOWS] mimetype.description should not contain (*.suffix)
Target Milestone: Future → mozilla1.2beta
Updated•23 years ago
|
Severity: minor → normal
Assignee | ||
Comment 10•23 years ago
|
||
I did not make it platform specific. Not sure if this should be Windows only.
Please review.
Comment 11•23 years ago
|
||
Comment on attachment 91144 [details] [diff] [review]
patch v.1
r=peterl
Attachment #91144 -
Flags: review+
Updated•23 years ago
|
Whiteboard: [PL2:NA]
Comment 12•23 years ago
|
||
Comment on attachment 91144 [details] [diff] [review]
patch v.1
sr=alecf
Attachment #91144 -
Flags: superreview+
Status: NEW → ASSIGNED
Whiteboard: [PL2:NA] → [PL2:NA][ready to check in]
Assignee | ||
Comment 13•23 years ago
|
||
In the trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Whiteboard: [PL2:NA][ready to check in] → [PL2:NA]
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•