B2G/gecko/browser/components/places/content/bookmarkProperties.js
/**
   * Determines whether the XUL textbox with the given ID contains a
   * string that can be converted into an nsIURI.
   *
   * @param aTextboxID
   *        the ID of the textbox element whose contents we'll test
   *
   * @returns true if the textbox contains a valid URI string, false otherwise
   */
Determines whether the XUL textbox with the given ID contains a
string that can be converted into an nsIURI.

@param aTextboxID
the ID of the textbox element whose contents we'll test

@returns true if the textbox contains a valid URI string, false otherwise
Determines whether the XUL textbox with the given ID contains a string that can be converted into an nsIURI . @param aTextboxID the ID of the textbox element whose contents we ' ll test @returns true if the textbox contains a valid URI string false otherwise
function BPP__containsValidURI(aTextboxID) {
    try {
      var value = this._element(aTextboxID).value;
      if (value) {
        PlacesUIUtils.createFixedURI(value);
        return true;
      }
    } catch (e) { }
    return false;
  }
function BPP__containsValidURI ( aTextboxID ) { try { var value = this . _element ( aTextboxID ) . value ; if ( value ) { PlacesUIUtils . createFixedURI ( value ) ; return true ; } } catch ( e ) { } return false ; }
Determines whether the XUL textbox with the given ID contains a
 string that can be converted into an nsIURI.
Determines whether the XUL textbox with the given ID contains a string that can be converted into an nsIURI .