B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Reload the current page and execute the entire editor content when
   * the page finishes loading. Note that this operation should be available
   * only in the content context.
   */
Reload the current page and execute the entire editor content when
the page finishes loading. Note that this operation should be available
only in the content context.
Reload the current page and execute the entire editor content when the page finishes loading . Note that this operation should be available only in the content context .
function SP_reloadAndRun()
  {
    if (this.executionContext !== SCRATCHPAD_CONTEXT_CONTENT) {
      Cu.reportError(this.strings.
          GetStringFromName("scratchpadContext.invalid"));
      return;
    }
    let browser = this.gBrowser.selectedBrowser;
    this._reloadAndRunEvent = function onLoad(evt) {
      if (evt.target !== browser.contentDocument) {
        return;
      }
      browser.removeEventListener("load", this._reloadAndRunEvent, true);
      this.run();
    }.bind(this);
    browser.addEventListener("load", this._reloadAndRunEvent, true);
    browser.contentWindow.location.reload();
  }
function SP_reloadAndRun ( ) { if ( this . executionContext !== SCRATCHPAD_CONTEXT_CONTENT ) { Cu . reportError ( this . strings . GetStringFromName ( "scratchpadContext.invalid" ) ) ; return ; } let browser = this . gBrowser . selectedBrowser ; this . _reloadAndRunEvent = function onLoad ( evt ) { if ( evt . target !== browser . contentDocument ) { return ; } browser . removeEventListener ( "load" , this . _reloadAndRunEvent , true ) ; this . run ( ) ; } . bind ( this ) ; browser . addEventListener ( "load" , this . _reloadAndRunEvent , true ) ; browser . contentWindow . location . reload ( ) ; }
Reload the current page and execute the entire editor content when
 the page finishes loading.
Reload the current page and execute the entire editor content when the page finishes loading .