diff --git a/browser/devtools/commandline/BuiltinCommands.jsm b/browser/devtools/commandline/BuiltinCommands.jsm index a26c8ea81960..5ffc95dbadbe 100644 --- a/browser/devtools/commandline/BuiltinCommands.jsm +++ b/browser/devtools/commandline/BuiltinCommands.jsm @@ -977,7 +977,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "AppCacheUtils", returnType: "cookies", exec: function Command_cookieList(args, context) { let host = context.environment.document.location.host; - if (host == null) { + if (host == null || host == "") { throw new Error(gcli.lookup("cookieListOutNonePage")); }