B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Move focus to the main element in the downloads panel, unless another
   * element in the panel is already focused.
   */
Move focus to the main element in the downloads panel, unless another
element in the panel is already focused.
Move focus to the main element in the downloads panel unless another element in the panel is already focused .
function DP_focusPanel()
  {
    if (this._state != this.kStateShown) {
      return;
    }
    let element = document.commandDispatcher.focusedElement;
    while (element && element != this.panel) {
      element = element.parentNode;
    }
    if (!element) {
      DownloadsView.richListBox.focus();
    }
  }
function DP_focusPanel ( ) { if ( this . _state != this . kStateShown ) { return ; } let element = document . commandDispatcher . focusedElement ; while ( element && element != this . panel ) { element = element . parentNode ; } if ( ! element ) { DownloadsView . richListBox . focus ( ) ; } }
Move focus to the main element in the downloads panel, unless another
 element in the panel is already focused.
Move focus to the main element in the downloads panel unless another element in the panel is already focused .
// We may be invoked while the panel is still waiting to be shown.