B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Set the current execution context to be the active tab content window.
   */
Set the current execution context to be the active tab content window.
Set the current execution context to be the active tab content window .
function SP_setContentContext()
  {
    if (this.executionContext == SCRATCHPAD_CONTEXT_CONTENT) {
      return;
    }
    let content = document.getElementById("sp-menu-content");
    document.getElementById("sp-menu-browser").removeAttribute("checked");
    document.getElementById("sp-cmd-reloadAndRun").removeAttribute("disabled");
    content.setAttribute("checked", true);
    this.executionContext = SCRATCHPAD_CONTEXT_CONTENT;
    this.notificationBox.removeAllNotifications(false);
    this.resetContext();
  }
function SP_setContentContext ( ) { if ( this . executionContext == SCRATCHPAD_CONTEXT_CONTENT ) { return ; } let content = document . getElementById ( "sp-menu-content" ) ; document . getElementById ( "sp-menu-browser" ) . removeAttribute ( "checked" ) ; document . getElementById ( "sp-cmd-reloadAndRun" ) . removeAttribute ( "disabled" ) ; content . setAttribute ( "checked" , true ) ; this . executionContext = SCRATCHPAD_CONTEXT_CONTENT ; this . notificationBox . removeAllNotifications ( false ) ; this . resetContext ( ) ; }
Set the current execution context to be the active tab content window.
Set the current execution context to be the active tab content window .