Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue #44: Changing URL bar search pref should not require a restart

  • Loading branch information...
commit 5e5b57ca0d3e82ad9dbf6f6fef3b57843d335d5e 1 parent 24b38a4
David McNamara authored
View
3  chrome/content/settings.xul
@@ -104,8 +104,7 @@
<groupbox>
<hbox align="center">
- <checkbox preference="awesome-search"/>
- <label value="&settings.awesomesearch.enable.label;" class="left-flat"/>
+ <checkbox preference="awesome-search" label="&settings.awesomesearch.enable.label;"/>
</hbox>
</groupbox>
View
11 components/fbRemoteAutoComplete.js
@@ -18,10 +18,10 @@ var aConsoleService = Components.classes["@mozilla.org/consoleservice;1"].
var debug = function(msg)
{
- /*
+/*
dump("fbRemoteAutoComplete: " + msg + "\n");
aConsoleService.logStringMessage("fbRemoteAutoComplete: " + msg);
- */
+*/
}
function XMLHttpRequest()
@@ -256,9 +256,6 @@ FacebookRemoteAutoCompleteSearch.prototype = {
debug('init');
this.enabled = false;
- if (!Services.prefs.getBoolPref(FB_ENABLED_PREF))
- return;
-
try
{
this.observer = new myObserver(this);
@@ -267,6 +264,10 @@ FacebookRemoteAutoCompleteSearch.prototype = {
{
debug("Error registering observer: " + e);
}
+
+ if (!Services.prefs.getBoolPref(FB_ENABLED_PREF))
+ return;
+
this.bootstrap();
this.enabled = true;
debug('done init');
Please sign in to comment.
Something went wrong with that request. Please try again.