B2G/gecko/toolkit/components/url-classifier/tests/unit/head_urlclassifier.js
/**
 * Performs an update of the dbservice using the stream updater and a
 * data: uri
 */
Performs an update of the dbservice using the stream updater and a
data: uri
Performs an update of the dbservice using the stream updater and a data : uri
function doStreamUpdate(updateText, success, failure, downloadFailure, clientKey) {
  var dataUpdate = "data:," + encodeURIComponent(updateText);
  if (!downloadFailure)
    downloadFailure = failure;
  streamUpdater.updateUrl = dataUpdate;
  streamUpdater.downloadUpdates("test-phish-simple,test-malware-simple", "",
                                clientKey, success, failure, downloadFailure);
}
function doStreamUpdate ( updateText , success , failure , downloadFailure , clientKey ) { var dataUpdate = "data:," + encodeURIComponent ( updateText ) ; if ( ! downloadFailure ) downloadFailure = failure ; streamUpdater . updateUrl = dataUpdate ; streamUpdater . downloadUpdates ( "test-phish-simple,test-malware-simple" , "" , clientKey , success , failure , downloadFailure ) ; }
Performs an update of the dbservice using the stream updater and a
 data: uri
Performs an update of the dbservice using the stream updater and a data : uri