forked from mirrors/gecko-dev
Bug 1876987 - Make ConsoleInstanceOptions.maxLogLevelPref a UTF8String to avoid string conversions. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D202618
This commit is contained in:
parent
cd8f1f907b
commit
47f3bed3c2
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ dictionary ConsoleInstanceOptions {
|
|||
// pref doesn't exist, gets removed or it is used in workers, the maxLogLevel
|
||||
// will default to the value passed to this constructor (or "all" if it wasn't
|
||||
// specified).
|
||||
DOMString maxLogLevelPref = "";
|
||||
UTF8String maxLogLevelPref = "";
|
||||
};
|
||||
|
||||
enum ConsoleLevel { "log", "warning", "error" };
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ ConsoleInstance::ConsoleInstance(JSContext* aCx,
|
|||
return;
|
||||
}
|
||||
|
||||
CopyUTF16toUTF8(aOptions.mMaxLogLevelPref, mMaxLogLevelPref);
|
||||
mMaxLogLevelPref = aOptions.mMaxLogLevelPref;
|
||||
|
||||
Preferences::RegisterCallback(MaxLogLevelPrefChangedCallback,
|
||||
mMaxLogLevelPref, this);
|
||||
|
|
|
|||
Loading…
Reference in a new issue