Actually change the key type of a record, and its corresponding conversion behavior, depending on what the IDL says

This commit is contained in:
JustOff 2019-03-13 20:17:36 +02:00 • committed by Roy Tam
commit 8547419267
3 changed files with 41 additions and 11 deletions

View file

@ -317,7 +317,7 @@ void
InternalHeaders::Fill(const Record<nsCString, nsCString>& aInit, ErrorResult& aRv)
{
for (auto& entry : aInit.Entries()) {
Append(NS_ConvertUTF16toUTF8(entry.mKey), entry.mValue, aRv);
Append(entry.mKey, entry.mValue, aRv);
if (aRv.Failed()) {
return;
}