Commit 345e19c0 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 16485: Improve about:cache page

Loading `about:cache` and selecting particular caches via the checkboxes
results in a cryptic error ("Unrecognized storage name 'null' in
about:cache URL) when updating the page. We avoid that by making sure
the storage parameter is in fact empty if it is supposed to be `null`.
parent 88c204aa
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -40,5 +40,13 @@ function navigate()
  if ($('priv').checked)
    context += 'p,';

  // Checking any of the checkboxes and hitting "Update" after `about:cache` got
  // loaded should not result in a cryptic error ("Unrecognized storage name
  // 'null' in about:cache URL"). Rather, the related list of entries in all
  // caches should be made visible.
  if (storage == null) {
    storage=""
  }

  window.location.href = 'about:cache?storage=' + storage + '&context=' + context;
}