Closed
Bug 943276
Opened 12 years ago
Closed 8 years ago
Make nsPluginTag::EnsureMembersAreUTF8() not use nsIPlatformCharset
Categories
(Core Graveyard :: Plug-ins, defect, P5)
Tracking
(firefox56 fixed)
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: hsivonen, Assigned: m_kato)
References
Details
Attachments
(1 file)
1.04 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
We don't really support non-UTF-8 system encodings on *nix. In order to get rid of nsIPlatformCharset, we should get rid of nsPluginTag::EnsureMembersAreUTF8(), which, AFAICT, only has effect on
1) OS/2
2) *nix systems with a non-UTF-8 system encoding configuration.
Comment 1•12 years ago
|
||
Do we know what *nix platforms would be affected here?
Comment 2•12 years ago
|
||
This function at least needs to ensure that the strings we get in from plugins are in fact UTF8, and sanitize them if they aren't. We have definitely gotten non-UTF8 strings from Java in the not so distant past, and they were causing aborts.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #2)
> This function at least needs to ensure that the strings we get in from
> plugins are in fact UTF8, and sanitize them if they aren't. We have
> definitely gotten non-UTF8 strings from Java in the not so distant past, and
> they were causing aborts.
OK. Morphing the bug summary accordingly. It's probably enough for crash avoidance to check if the strings are valid UTF-8 and, if they are not, performing a conversion from windows-1252 to UTF-8 to get *some* strings that are valid UTF-8.
(In reply to Georg Fritzsche [:gfritzsche] from comment #1)
> Do we know what *nix platforms would be affected here?
Not sure. Presumably fringe/legacy configurations of all of them.
Summary: Remove nsPluginTag::EnsureMembersAreUTF8() → Make nsPluginTag::EnsureMembersAreUTF8() not use nsIPlatformCharset
Assignee | ||
Comment 4•8 years ago
|
||
Since we only support Flash, so we can remove nsIPlatformCharset. Flash is English version only on Linux.
Comment 5•8 years ago
|
||
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Reporter | ||
Comment 6•8 years ago
|
||
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Comment 7•8 years ago
|
||
The plugins team is never going to work on this bug. Is it really worth keeping it open?
Priority: -- → P5
Reporter | ||
Comment 8•8 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #7)
> The plugins team is never going to work on this bug. Is it really worth
> keeping it open?
Yes, this tracks getting rid of nsIPlatformCharset, so it's worth keeping open until this nsIPlatformCharset use has been removed.
Assignee | ||
Comment 9•8 years ago
|
||
Assignee: nobody → m_kato
Assignee | ||
Comment 10•8 years ago
|
||
Comment on attachment 8884706 [details] [diff] [review]
Remove unused nsIPlatfromCharset
After landing bug 1261841, we don't use nsIPlatformCharset on nsPluginTags. So we should remove unused header.
Attachment #8884706 -
Flags: review?(VYV03354)
Updated•8 years ago
|
Attachment #8884706 -
Flags: review?(VYV03354) → review+
Comment 11•8 years ago
|
||
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac4eb026e67d
Remove unused nsIPlatfromCharset. r=emk
Comment 12•8 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
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
•