B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Log file activity.
   *
   * @param string aFileURI
   *        The file URI that was loaded.
   * @return nsIDOMElement|undefined
   *         The message element to display in the Web Console output.
   */
Log file activity.
@param string aFileURI
The file URI that was loaded.
@return nsIDOMElement|undefined
The message element to display in the Web Console output.
Log file activity . @param string aFileURI The file URI that was loaded . @return nsIDOMElement|undefined The message element to display in the Web Console output .
function WCF_logFileActivity(aFileURI)
  {
    let urlNode = this.document.createElementNS(XUL_NS, "label");
    urlNode.flex = 1;
    urlNode.setAttribute("crop", "center");
    urlNode.setAttribute("title", aFileURI);
    urlNode.setAttribute("tooltiptext", aFileURI);
    urlNode.setAttribute("value", aFileURI);
    urlNode.classList.add("hud-clickable");
    urlNode.classList.add("webconsole-msg-url");
    let outputNode = this.createMessageNode(CATEGORY_NETWORK, SEVERITY_LOG,
                                            urlNode, null, null, aFileURI);
    this.makeOutputMessageLink(outputNode, function WCF__onFileClick() {
      let viewSourceUtils = this.owner.gViewSourceUtils;
      viewSourceUtils.viewSource(aFileURI, null, this.document);
    }.bind(this));
    return outputNode;
  }
function WCF_logFileActivity ( aFileURI ) { let urlNode = this . document . createElementNS ( XUL_NS , "label" ) ; urlNode . flex = 1 ; urlNode . setAttribute ( "crop" , "center" ) ; urlNode . setAttribute ( "title" , aFileURI ) ; urlNode . setAttribute ( "tooltiptext" , aFileURI ) ; urlNode . setAttribute ( "value" , aFileURI ) ; urlNode . classList . add ( "hud-clickable" ) ; urlNode . classList . add ( "webconsole-msg-url" ) ; let outputNode = this . createMessageNode ( CATEGORY_NETWORK , SEVERITY_LOG , urlNode , null , null , aFileURI ) ; this . makeOutputMessageLink ( outputNode , function WCF__onFileClick ( ) { let viewSourceUtils = this . owner . gViewSourceUtils ; viewSourceUtils . viewSource ( aFileURI , null , this . document ) ; } . bind ( this ) ) ; return outputNode ; }
Log file activity.
Log file activity .