B2G/gecko/toolkit/components/places/tests/favicons/test_favicons.js
/*
 * Retrieve the GUID for a favicon URI. For now we'll do this through SQL.
 * Provide a mozIStorageStatementCallback, such as a SingleGUIDCallback.
 */
Retrieve the GUID for a favicon URI. For now we'll do this through SQL.
Provide a mozIStorageStatementCallback, such as a SingleGUIDCallback.
Retrieve the GUID for a favicon URI . For now we ' ll do this through SQL . Provide a mozIStorageStatementCallback such as a SingleGUIDCallback .
function guidForFaviconURI(iconURIString, cb) {
  let query = "SELECT guid FROM moz_favicons WHERE url = :url";
  let stmt = cb.statement = DBConn().createAsyncStatement(query);
  stmt.params.url = iconURIString;
  stmt.executeAsync(cb);
  stmt.finalize();
}
function guidForFaviconURI ( iconURIString , cb ) { let query = "SELECT guid FROM moz_favicons WHERE url = :url" ; let stmt = cb . statement = DBConn ( ) . createAsyncStatement ( query ) ; stmt . params . url = iconURIString ; stmt . executeAsync ( cb ) ; stmt . finalize ( ) ; }
Retrieve the GUID for a favicon URI.
Retrieve the GUID for a favicon URI .