Commit 64b135f3 authored by nchevobbe's avatar nchevobbe
Browse files

Bug 1639165 - Don't log message from ContentChild when multiprocess browser...

Bug 1639165 - Don't log message from ContentChild when multiprocess browser toolbox is enabled. r=baku.

Differential Revision: https://phabricator.services.mozilla.com/D76792
parent d297aa2c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
#include "mozilla/RemoteDecoderManagerChild.h"
#include "mozilla/Unused.h"
#include "mozilla/SchedulerGroup.h"
#include "mozilla/StaticPrefs_devtools.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/StaticPrefs_media.h"
#include "mozilla/TelemetryIPC.h"
@@ -458,6 +459,11 @@ ConsoleListener::Observe(nsIConsoleMessage* aMessage) {
    return NS_OK;
  }

  if (StaticPrefs::devtools_browsertoolbox_fission()) {
    // Messages are directly retrieved from the original thread.
    return NS_OK;
  }

  nsCOMPtr<nsIScriptError> scriptError = do_QueryInterface(aMessage);
  if (scriptError) {
    nsAutoString msg, sourceName, sourceLine;
+5 −0
Original line number Diff line number Diff line
@@ -1336,6 +1336,11 @@
  value: true
  mirror: always

- name: devtools.browsertoolbox.fission
  type: RelaxedAtomicBool
  value: @IS_NIGHTLY_BUILD@
  mirror: always

#---------------------------------------------------------------------------
# Prefs starting with "docshell."
#---------------------------------------------------------------------------
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ from mozlint.pathutils import expand_exclusions
IGNORE_PREFS = {
    'devtools.console.stdout.chrome',   # Uses the 'sticky' attribute.
    'devtools.console.stdout.content',  # Uses the 'sticky' attribute.
    'devtools.browsertoolbox.fission',  # Uses the 'sticky' attribute.
    'fission.autostart',                # Uses the 'locked' attribute.
    'browser.dom.window.dump.enabled',  # Uses the 'sticky' attribute.
    'apz.fling_curve_function_y2',      # This pref is a part of a series.