Bug 1206491 - Fix a JavaScript error in about:cache page. r=mayhemmer

This commit is contained in:
YFdyh000 2015-09-20 04:36:00 +02:00
parent 1e11b76039
commit a71fb37eb9

View File

@ -10,7 +10,8 @@ var storage = searchParams.get('storage');
var context = searchParams.get('context');
// The context is in a format as used by the HTTP cache v2 back end
var [context, isAnon, isInBrowser, appId, isPrivate] = context.match(/(a,)?(b,)?(i\d+,)?(p,)?/);
if (context)
var [context, isAnon, isInBrowser, appId, isPrivate] = context.match(/(a,)?(b,)?(i\d+,)?(p,)?/);
if (appId)
appId = appId.match(/i(\d+),/)[1];