Bug 1447210 - Upper-case log levels for Console.createInstance(), r=bgrins

This commit is contained in:
Andrea Marchesini 2018-03-24 08:21:01 +01:00
parent de9297b4bf
commit a90cff1ced
3 changed files with 5 additions and 5 deletions

View File

@ -19,8 +19,8 @@ var ConsoleTest = {
c.log("Hello world!");
c.trace("Hello world!");
console.createInstance({ innerID: "LEVEL", maxLogLevel: "off" }).log("Invisible!");
console.createInstance({ innerID: "LEVEL", maxLogLevel: "all" }).log("Hello world!");
console.createInstance({ innerID: "LEVEL", maxLogLevel: "Off" }).log("Invisible!");
console.createInstance({ innerID: "LEVEL", maxLogLevel: "All" }).log("Hello world!");
console.createInstance({ innerID: "LEVEL", maxLogLevelPref: "foo.pref" }).log("Invisible!");
console.createInstance({ innerID: "LEVEL", maxLogLevelPref: "pref.test.console" }).log("Hello world!");
}

View File

@ -179,8 +179,8 @@ interface ConsoleInstance {
callback ConsoleInstanceDumpCallback = void (DOMString message);
enum ConsoleLogLevel {
"all", "debug", "log", "info", "clear", "trace", "timeEnd", "time", "group",
"groupEnd", "profile", "profileEnd", "dir", "dirxml", "warn", "error", "off"
"All", "Debug", "Log", "Info", "Clear", "Trace", "TimeEnd", "Time", "Group",
"GroupEnd", "Profile", "ProfileEnd", "Dir", "Dirxml", "Warn", "Error", "Off"
};
dictionary ConsoleInstanceOptions {

View File

@ -5233,7 +5233,7 @@ pref("dom.streams.enabled", false);
pref("dom.push.enabled", false);
pref("dom.push.alwaysConnect", false);
pref("dom.push.loglevel", "error");
pref("dom.push.loglevel", "Error");
pref("dom.push.serverURL", "wss://push.services.mozilla.com/");
pref("dom.push.userAgentID", "");