B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Get the Cu.Sandbox object for the most recently active navigator:browser
   * chrome window object. Note that the returned object is cached for later
   * reuse. The cached object is kept only for the current browser window and it
   * is reset for each context switch or navigator:browser window switch.
   */
Get the Cu.Sandbox object for the most recently active navigator:browser
chrome window object. Note that the returned object is cached for later
reuse. The cached object is kept only for the current browser window and it
is reset for each context switch or navigator:browser window switch.
Get the Cu . Sandbox object for the most recently active navigator : browser chrome window object . Note that the returned object is cached for later reuse . The cached object is kept only for the current browser window and it is reset for each context switch or navigator : browser window switch .
get chromeSandbox()
  {
    if (!this.browserWindow) {
      Cu.reportError(this.strings.
                     GetStringFromName("browserWindow.unavailable"));
      return;
    }
    if (!this._chromeSandbox ||
        this.browserWindow != this._previousBrowserWindow) {
      this._chromeSandbox = new Cu.Sandbox(this.browserWindow,
        { sandboxPrototype: this.browserWindow, wantXrays: false, 
          sandboxName: 'scratchpad-chrome'});
      this._chromeSandbox.__SCRATCHPAD__ = this;
      addDebuggerToGlobal(this._chromeSandbox);
      this._previousBrowserWindow = this.browserWindow;
    }
    return this._chromeSandbox;
  }
get chromeSandbox ( ) { if ( ! this . browserWindow ) { Cu . reportError ( this . strings . GetStringFromName ( "browserWindow.unavailable" ) ) ; return ; } if ( ! this . _chromeSandbox || this . browserWindow != this . _previousBrowserWindow ) { this . _chromeSandbox = new Cu . Sandbox ( this . browserWindow , { sandboxPrototype : this . browserWindow , wantXrays : false , sandboxName : 'scratchpad-chrome' } ) ; this . _chromeSandbox . __SCRATCHPAD__ = this ; addDebuggerToGlobal ( this . _chromeSandbox ) ; this . _previousBrowserWindow = this . browserWindow ; } return this . _chromeSandbox ; }
Get the Cu.Sandbox object for the most recently active navigator:browser
 chrome window object.
Get the Cu . Sandbox object for the most recently active navigator : browser chrome window object .