Commit 03daa812 authored by Geoff Lankow's avatar Geoff Lankow
Browse files

Bug 1744243 follow-up - Fix test_URIFixup_external_protocol_fallback.js when...

Bug 1744243 follow-up - Fix test_URIFixup_external_protocol_fallback.js when run in Thunderbird. r=daisuke

Differential Revision: https://phabricator.services.mozilla.com/D154475
parent 7397afc2
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@

// Test whether fallback mechanism is working if don't trust nsIExternalProtocolService.

const { AppConstants } = ChromeUtils.import(
  "resource://gre/modules/AppConstants.jsm"
);
const { MockRegistrar } = ChromeUtils.import(
  "resource://testing-common/MockRegistrar.jsm"
);
@@ -60,7 +63,10 @@ add_task(function basic() {
  const testData = [
    {
      input: "mailto:test@example.com",
      expected: isSupportedInHandlerService("mailto")
      expected:
        isSupportedInHandlerService("mailto") ||
        // Thunderbird IS a mailto handler, it doesn't have handlers.
        AppConstants.MOZ_APP_NAME == "thunderbird"
          ? "mailto:test@example.com"
          : "http://mailto:test@example.com/",
    },