B2G/gecko/browser/base/content/test/browser_tabMatchesInAwesomebar.js
/**
 * Clears history invoking callback when done.
 */
Clears history invoking callback when done.
Clears history invoking callback when done .
function waitForClearHistory(aCallback) {
  const TOPIC_EXPIRATION_FINISHED = "places-expiration-finished";
  let observer = {
    observe: function(aSubject, aTopic, aData) {
      Services.obs.removeObserver(this, TOPIC_EXPIRATION_FINISHED);
      aCallback();
    }
  };
  Services.obs.addObserver(observer, TOPIC_EXPIRATION_FINISHED, false);
  PlacesUtils.bhistory.removeAllPages();
}
function waitForClearHistory ( aCallback ) { const TOPIC_EXPIRATION_FINISHED = "places-expiration-finished" ; let observer = { observe : function ( aSubject , aTopic , aData ) { Services . obs . removeObserver ( this , TOPIC_EXPIRATION_FINISHED ) ; aCallback ( ) ; } } ; Services . obs . addObserver ( observer , TOPIC_EXPIRATION_FINISHED , false ) ; PlacesUtils . bhistory . removeAllPages ( ) ; }
Clears history invoking callback when done.
Clears history invoking callback when done .