Open Bug 909066 Opened 11 years ago Updated 2 years ago

Figure out how to share code between InflateUTF8StringToBuffer and LossyConvertUTF8toUTF16

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: fabrice, Assigned: fabrice)

References

Details

LossyConvertUTF8toUTF16 in dom/wifi/WifiUtils.cpp is a specialized version of InflateUTF8StringToBuffer (no need for a js contexte, with a Copy action and ignoring invalids).
Assignee: nobody → fabrice
Component: General → DOM
Product: Firefox OS → Core
How do these differ from CopyUTF8toUTF16?
Flags: needinfo?(fabrice)
(In reply to Boris Zbarsky [:bz] from comment #1)
> How do these differ from CopyUTF8toUTF16?

They attemp to recover when they encounter malformed utf-8 strings, which happens in wifi ssid as you can guess...
Flags: needinfo?(fabrice)
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.