B2G/gecko/layout/tools/tests/regression_tests.js
// returns nsIFile, sets the input value
returns nsIFile, sets the input value
returns nsIFile sets the input value
function ChooseOutputDirectory(inputElementID)
{
  netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
  var chosenDir = PickDirectory();
  var inputElement = document.getElementById(inputElementID);
  inputElement.value = chosenDir.path;
  return chosenDir;
}
function ChooseOutputDirectory ( inputElementID ) { netscape . security . PrivilegeManager . enablePrivilege ( "UniversalXPConnect" ) ; var chosenDir = PickDirectory ( ) ; var inputElement = document . getElementById ( inputElementID ) ; inputElement . value = chosenDir . path ; return chosenDir ; }
returns nsIFile, sets the input value
returns nsIFile sets the input value