Bug 300539: browser.urlbar.autoFill isn't supported in the Open Location dialog
git-svn-id: svn://10.0.0.236/trunk@179122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -63,6 +63,12 @@ function onLoad()
|
||||
dialog.openWhereList.selectedItem = dialog.openTopWindow;
|
||||
|
||||
if (pref) {
|
||||
try {
|
||||
var useAutoFill = pref.getBoolPref("browser.urlbar.autoFill");
|
||||
if (useAutoFill)
|
||||
dialog.input.setAttribute("completedefaultindex", "true");
|
||||
} catch (ex) {}
|
||||
|
||||
try {
|
||||
var value = pref.getIntPref("general.open_location.last_window_choice");
|
||||
var element = dialog.openWhereList.getElementsByAttribute("value", value)[0];
|
||||
|
||||
Reference in New Issue
Block a user