B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Called when the downloads database becomes unavailable (for example,
   * entering Private Browsing Mode).  References to existing data should be
   * discarded.
   */
Called when the downloads database becomes unavailable (for example,
entering Private Browsing Mode).  References to existing data should be
discarded.
Called when the downloads database becomes unavailable ( for example entering Private Browsing Mode ) . References to existing data should be discarded .
function DV_onDataInvalidated()
  {
    DownloadsPanel.terminate();
    let emptyView = this.richListBox.cloneNode(false);
    this.richListBox.parentNode.replaceChild(emptyView, this.richListBox);
    this.richListBox = emptyView;
    this._viewItems = {};
    this._dataItems = [];
  }
function DV_onDataInvalidated ( ) { DownloadsPanel . terminate ( ) ; let emptyView = this . richListBox . cloneNode ( false ) ; this . richListBox . parentNode . replaceChild ( emptyView , this . richListBox ) ; this . richListBox = emptyView ; this . _viewItems = { } ; this . _dataItems = [ ] ; }
Called when the downloads database becomes unavailable (for example,
 entering Private Browsing Mode).
Called when the downloads database becomes unavailable ( for example entering Private Browsing Mode ) .
// Clear the list by replacing with a shallow copy.