Bug 1451615: Whitelist harmless rejection. r=me,test-only DONTBUILD
authorKris Maglione <maglione.k@gmail.com>
Sun, 08 Apr 2018 22:42:28 -0700
changeset 457276 04252d4db06a1d1d27407cf7c7726bb6f548ff49
parent 457275 2bf4c93082210bf03a03b6a63bf2f1e98764591e
child 457277 f892607541ebeb4416aab16803c86807b6b76059
push id153
push userfmarier@mozilla.com
push dateTue, 10 Apr 2018 02:28:40 +0000
reviewersme, test-only
bugs1451615
milestone61.0a1
Bug 1451615: Whitelist harmless rejection. r=me,test-only DONTBUILD MozReview-Commit-ID: Cq3ybb4rKgF
toolkit/components/extensions/test/xpcshell/test_ext_redirects.js
--- a/toolkit/components/extensions/test/xpcshell/test_ext_redirects.js
+++ b/toolkit/components/extensions/test/xpcshell/test_ext_redirects.js
@@ -1,15 +1,17 @@
 "use strict";
 
 // Tests whether we can redirect to a moz-extension: url.
 ChromeUtils.defineModuleGetter(this, "TestUtils",
                                "resource://testing-common/TestUtils.jsm");
 Cu.importGlobalProperties(["XMLHttpRequest"]);
 
+PromiseTestUtils.whitelistRejectionsGlobally(/Message manager disconnected/);
+
 const server = createHttpServer();
 const gServerUrl = `http://localhost:${server.identity.primaryPort}`;
 
 server.registerPathHandler("/redirect", (request, response) => {
   let params = new URLSearchParams(request.queryString);
   response.setStatusLine(request.httpVersion, 302, "Moved Temporarily");
   response.setHeader("Location", params.get("redirect_uri"));
   response.write("redirecting");