Figure out how to share code between InflateUTF8StringToBuffer and LossyConvertUTF8toUTF16

NEW
Assigned to

Status

()

Core
DOM
4 years ago
4 years ago

People

(Reporter: fabrice, Assigned: fabrice)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

4 years ago
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).

Updated

4 years ago
Assignee: nobody → fabrice
Component: General → DOM
Product: Firefox OS → Core
How do these differ from CopyUTF8toUTF16?
Flags: needinfo?(fabrice)
(Assignee)

Comment 2

4 years ago
(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)
You need to log in before you can comment on or make changes to this bug.