mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
use preprocessor instead of checking navigator.platform for click selects all.
This commit is contained in:
parent
0da29d1b34
commit
c3555b0d30
@ -76,7 +76,11 @@ var gNavigatorBundle;
|
||||
var gLastValidURLStr = "";
|
||||
var gLastValidURL = null;
|
||||
var gHaveUpdatedToolbarState = false;
|
||||
#ifdef XP_WIN
|
||||
var gClickSelectsAll = true;
|
||||
#else
|
||||
var gClickSelectsAll = false;
|
||||
#endif
|
||||
var gIgnoreFocus = false;
|
||||
var gIgnoreClick = false;
|
||||
var gToolbarMode = "icons";
|
||||
@ -380,10 +384,6 @@ function Startup()
|
||||
}
|
||||
}
|
||||
|
||||
// does clicking on the urlbar select its contents?
|
||||
if (navigator.platform.indexOf("Win") == -1)
|
||||
gClickSelectsAll = false;
|
||||
|
||||
// Focus the content area unless we're loading a blank page
|
||||
var elt;
|
||||
if (uriToLoad == "about:blank" && !toolbar.hidden &&
|
||||
|
Loading…
Reference in New Issue
Block a user