B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * The JSTerm InspectObject remote message handler. This allows the remote
   * process to open the Property Panel for a given object.
   *
   * @param object aRequest
   *        The request message from the content process. This message includes
   *        the user input string that was evaluated to inspect an object and
   *        the result object which is to be inspected.
   */


@param object aRequest
The request message from the content process. This message includes
the user input string that was evaluated to inspect an object and
the result object which is to be inspected.
@param object aRequest The request message from the content process . This message includes the user input string that was evaluated to inspect an object and the result object which is to be inspected .
function JST_handleInspectObject(aInput, aActor)
  {
    let options = {
      title: aInput,
      data: {
        objectPropertiesProvider: this.hud.objectPropertiesProvider.bind(this.hud),
        releaseObject: this.hud._releaseObject.bind(this.hud),
      },
    };
    let propPanel;
    let onPopupHide = function JST__onPopupHide() {
      propPanel.panel.removeEventListener("popuphiding", onPopupHide, false);
      this.hud._releaseObject(aActor.actor);
    }.bind(this);
    this.hud.objectPropertiesProvider(aActor.actor,
      function _onObjectProperties(aProperties) {
        options.data.objectProperties = aProperties;
        propPanel = this.openPropertyPanel(options);
        propPanel.panel.setAttribute("hudId", this.hudId);
        propPanel.panel.addEventListener("popuphiding", onPopupHide, false);
      }.bind(this));
  }
function JST_handleInspectObject ( aInput , aActor ) { let options = { title : aInput , data : { objectPropertiesProvider : this . hud . objectPropertiesProvider . bind ( this . hud ) , releaseObject : this . hud . _releaseObject . bind ( this . hud ) , } , } ; let propPanel ; let onPopupHide = function JST__onPopupHide ( ) { propPanel . panel . removeEventListener ( "popuphiding" , onPopupHide , false ) ; this . hud . _releaseObject ( aActor . actor ) ; } . bind ( this ) ; this . hud . objectPropertiesProvider ( aActor . actor , function _onObjectProperties ( aProperties ) { options . data . objectProperties = aProperties ; propPanel = this . openPropertyPanel ( options ) ; propPanel . panel . setAttribute ( "hudId" , this . hudId ) ; propPanel . panel . addEventListener ( "popuphiding" , onPopupHide , false ) ; } . bind ( this ) ) ; }
The JSTerm InspectObject remote message handler.
The JSTerm InspectObject remote message handler .