B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * The search listener for the scripts search box.
   */
The search listener for the scripts search box.
The search listener for the scripts search box .
function DVS__onScriptsSearch() {
    if (!this._scripts.itemCount) {
      return;
    }
    this._searchboxPanel.hidePopup();
    let [file, line, token, isGlobal] = this.searchboxInfo;
    if (isGlobal) {
      DebuggerView.GlobalSearch.scheduleSearch();
    } else {
      DebuggerView.GlobalSearch.hideAndEmpty();
      this._performFileSearch(file);
      this._performLineSearch(line);
      this._performTokenSearch(token);
    }
  }
function DVS__onScriptsSearch ( ) { if ( ! this . _scripts . itemCount ) { return ; } this . _searchboxPanel . hidePopup ( ) ; let [ file , line , token , isGlobal ] = this . searchboxInfo ; if ( isGlobal ) { DebuggerView . GlobalSearch . scheduleSearch ( ) ; } else { DebuggerView . GlobalSearch . hideAndEmpty ( ) ; this . _performFileSearch ( file ) ; this . _performLineSearch ( line ) ; this . _performTokenSearch ( token ) ; } }
The search listener for the scripts search box.
The search listener for the scripts search box .
// If the webpage has no scripts, searching is redundant. // If this is a global script search, schedule a search in all the sources, // or hide the pane otherwise.