Closed Bug 1488131 Opened 7 years ago Closed 7 years ago

Add EnsureUTF8Validity() to nsReadableUtils.h

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: hsivonen, Unassigned)

Details

Attachments

(1 file)

At least the plug-in host and nsCookie could use it.
Attached patch PatchSplinter Review
While implementing this, I realized that we don't actually benefit right now from adding this, so I'm attaching the patch without requesting review so that we have the patch available if we add more callers that want to ensure UTF-8 validity in teh future.
(Specifically, this is not a win given that the plug-in code is guaranteed to have a refcounted buffer and the cookie code starts with a const reference to a string.)
Assignee: hsivonen → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: