Bug 1640904 - Force property_error_message_fix in browser_actor_error.js r=nchevobbe
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 27 May 2020 05:52:57 +0000
changeset 532318 1a878a7a1b146abc2e23756d0ea6f519a82958d4
parent 532317 018781c00f185216147ffdd42da679fd0683b456
child 532319 3999e81acbf79c8d87f0066e8492fa7228f35f7b
push id37454
push userccoroiu@mozilla.com
push dateWed, 27 May 2020 16:14:31 +0000
treeherdermozilla-central@a1dd9afbfdf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1640904
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640904 - Force property_error_message_fix in browser_actor_error.js r=nchevobbe The exception used in this test has different formats depending on the channel. Differential Revision: https://phabricator.services.mozilla.com/D76887
devtools/server/tests/browser/browser_actor_error.js
--- a/devtools/server/tests/browser/browser_actor_error.js
+++ b/devtools/server/tests/browser/browser_actor_error.js
@@ -36,16 +36,19 @@ add_task(async function test_old_actor()
   );
 
   await gClient.close();
 });
 
 const TEST_ERRORS_ACTOR_URL =
   "chrome://mochitests/content/browser/devtools/server/tests/browser/test-errors-actor.js";
 add_task(async function test_protocoljs_actor() {
+  // Flip this pref to ensure consistent error reporting for `throwsException`.
+  await pushPref("javascript.options.property_error_message_fix", true);
+
   DevToolsServer.init();
   DevToolsServer.registerAllActors();
 
   info("Register the new TestErrorsActor");
   require(TEST_ERRORS_ACTOR_URL);
   ActorRegistry.registerModule(TEST_ERRORS_ACTOR_URL, {
     prefix: "testErrors",
     constructor: "TestErrorsActor",