B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Filter the css node from the output node if it is a repeat. CSS messages
   * are merged with previous messages if they occurred in the past.
   *
   * @param nsIDOMNode aNode
   *        The message node to be filtered or not.
   * @returns boolean
   *          True if the message is filtered, false otherwise.
   */
Filter the css node from the output node if it is a repeat. CSS messages
are merged with previous messages if they occurred in the past.

@param nsIDOMNode aNode
The message node to be filtered or not.
@returns boolean
True if the message is filtered, false otherwise.
Filter the css node from the output node if it is a repeat . CSS messages are merged with previous messages if they occurred in the past . @param nsIDOMNode aNode The message node to be filtered or not . @returns boolean True if the message is filtered false otherwise .
function WCF_filterRepeatedCSS(aNode)
  {
    let description = aNode.childNodes[2].textContent;
    let location;
    if (aNode.childNodes[4]) {
      location = aNode.childNodes[4].getAttribute("title");
    }
    else {
      location = "";
    }
    let dupe = this._cssNodes[description + location];
    if (!dupe) {
      this._cssNodes[description + location] = aNode;
      return false;
    }
    this.mergeFilteredMessageNode(dupe, aNode);
    return true;
  }
function WCF_filterRepeatedCSS ( aNode ) { let description = aNode . childNodes [ 2 ] . textContent ; let location ; if ( aNode . childNodes [ 4 ] ) { location = aNode . childNodes [ 4 ] . getAttribute ( "title" ) ; } else { location = "" ; } let dupe = this . _cssNodes [ description + location ] ; if ( ! dupe ) { this . _cssNodes [ description + location ] = aNode ; return false ; } this . mergeFilteredMessageNode ( dupe , aNode ) ; return true ; }
Filter the css node from the output node if it is a repeat.
Filter the css node from the output node if it is a repeat .
// childNodes[2] is the description node containing the text of the message. // childNodes[4] represents the location (source URL) of the error message. // The full source URL is stored in the title attribute. // browser_webconsole_bug_595934_message_categories.js // no matching nodes