B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Create a mixed content warning Node.
   *
   * @param aLinkNode
   *        Parent to the requested urlNode.
   */
Create a mixed content warning Node.
@param aLinkNode
Parent to the requested urlNode.
Create a mixed content warning Node . @param aLinkNode Parent to the requested urlNode .
function WCF_makeMixedContentNode(aLinkNode)
  {
    let mixedContentWarning = "[" + l10n.getStr("webConsoleMixedContentWarning") + "]";
    let mixedContentWarningNode = this.document.createElement("label");
    mixedContentWarningNode.setAttribute("value", mixedContentWarning);
    mixedContentWarningNode.setAttribute("title", mixedContentWarning);
    mixedContentWarningNode.classList.add("hud-clickable");
    mixedContentWarningNode.classList.add("webconsole-mixed-content-link");
    aLinkNode.appendChild(mixedContentWarningNode);
    mixedContentWarningNode.addEventListener("click", function(aEvent) {
      this.owner.openLink(MIXED_CONTENT_LEARN_MORE);
      aEvent.preventDefault();
      aEvent.stopPropagation();
    }.bind(this));
  }
function WCF_makeMixedContentNode ( aLinkNode ) { let mixedContentWarning = "[" + l10n . getStr ( "webConsoleMixedContentWarning" ) + "]" ; let mixedContentWarningNode = this . document . createElement ( "label" ) ; mixedContentWarningNode . setAttribute ( "value" , mixedContentWarning ) ; mixedContentWarningNode . setAttribute ( "title" , mixedContentWarning ) ; mixedContentWarningNode . classList . add ( "hud-clickable" ) ; mixedContentWarningNode . classList . add ( "webconsole-mixed-content-link" ) ; aLinkNode . appendChild ( mixedContentWarningNode ) ; mixedContentWarningNode . addEventListener ( "click" , function ( aEvent ) { this . owner . openLink ( MIXED_CONTENT_LEARN_MORE ) ; aEvent . preventDefault ( ) ; aEvent . stopPropagation ( ) ; } . bind ( this ) ) ; }
Create a mixed content warning Node.
Create a mixed content warning Node .
// Mixed content warning message links to a Learn More page