Skip to content
Browse files

Clear storage synchronously (issue 6143), should fix lib/storageServi…

…ce test
  • Loading branch information...
1 parent 4e26b9a commit af743d9858ffa9c4045d65598e28e04794177d12 @janodvarko janodvarko committed
Showing with 5 additions and 7 deletions.
  1. +5 −7 extension/content/firebug/console/commandLineInclude.js
View
12 extension/content/firebug/console/commandLineInclude.js
@@ -124,14 +124,14 @@ var CommandLineIncludeRep = domplate(FirebugReps.Table,
// NOTE: that piece of code has not been tested since deleting aliases through the table
// has been disabled.
// Once it is enabled again, make sure FBTests is available for this feature
- var store = CommandLine.getStore();
- if (! Options.get(removeConfirmation))
+ var store = CommandLineInclude.getStore();
+ if (!Options.get(removeConfirmation))
{
var check = {value: false};
var flags = prompts.BUTTON_POS_0 * prompts.BUTTON_TITLE_YES +
prompts.BUTTON_POS_1 * prompts.BUTTON_TITLE_NO;
- if (prompts.confirmEx(context.chrome.window, Locale.$STR("Firebug"),
+ if (prompts.confirmEx(context.chrome.window, Locale.$STR("Firebug"),
Locale.$STR("commandline.include.confirmDelete"), flags, "", "", "",
Locale.$STR("Do_not_show_this_message_again"), check) > 0)
{
@@ -494,10 +494,8 @@ var CommandLineInclude = Obj.extend(Firebug.Module,
resetAllOptions: function()
{
var store = this.getStore();
-
- if (!store)
- return;
- store.clear();
+ if (store)
+ store.clear(true);
}
});

0 comments on commit af743d9

Please sign in to comment.
Something went wrong with that request. Please try again.