B2G/gecko/dom/base/ConsoleAPI.js
/**
   * Notify all observers of any console API call.
   *
   * @param string aLevel
   *        The message level.
   * @param mixed aArguments
   *        The arguments given to the console API call.
   * @param object aMeta
   *        Object that holds metadata about the console API call:
   *        - isPrivate - Whether the window is in private browsing mode.
   *        - frame - the youngest content frame in the call stack.
   *        - timeStamp - when the console API call occurred.
   */
Notify all observers of any console API call.
@param string aLevel
The message level.
@param mixed aArguments
The arguments given to the console API call.
@param object aMeta
Object that holds metadata about the console API call:
- isPrivate - Whether the window is in private browsing mode.
- frame - the youngest content frame in the call stack.
- timeStamp - when the console API call occurred.
Notify all observers of any console API call . @param string aLevel The message level . @param mixed aArguments The arguments given to the console API call . @param object aMeta Object that holds metadata about the console API call : - isPrivate - Whether the window is in private browsing mode . - frame - the youngest content frame in the call stack . - timeStamp - when the console API call occurred .
function CA_notifyObservers(aLevel, aArguments, aMeta) {
    let consoleEvent = {
      ID: this._outerID,
      innerID: this._innerID,
      level: aLevel,
      filename: aMeta.frame.filename,
      lineNumber: aMeta.frame.lineNumber,
      functionName: aMeta.frame.functionName,
      arguments: aArguments,
      timeStamp: aMeta.timeStamp,
    };
    consoleEvent.wrappedJSObject = consoleEvent;
    if (!aMeta.isPrivate) {
      ConsoleAPIStorage.recordEvent(this._innerID, consoleEvent);
    }
    Services.obs.notifyObservers(consoleEvent, "console-api-log-event",
                                 this._outerID);
  }
function CA_notifyObservers ( aLevel , aArguments , aMeta ) { let consoleEvent = { ID : this . _outerID , innerID : this . _innerID , level : aLevel , filename : aMeta . frame . filename , lineNumber : aMeta . frame . lineNumber , functionName : aMeta . frame . functionName , arguments : aArguments , timeStamp : aMeta . timeStamp , } ; consoleEvent . wrappedJSObject = consoleEvent ; if ( ! aMeta . isPrivate ) { ConsoleAPIStorage . recordEvent ( this . _innerID , consoleEvent ) ; } Services . obs . notifyObservers ( consoleEvent , "console-api-log-event" , this . _outerID ) ; }
Notify all observers of any console API call.
Notify all observers of any console API call .
// Store non-private messages for which the inner window was not destroyed.