Skip to content

Commit

Permalink
Bug 1744243 follow-up - Fix test_URIFixup_external_protocol_fallback.…
Browse files Browse the repository at this point in the history
…js when run in Thunderbird. r=daisuke

Differential Revision: https://phabricator.services.mozilla.com/D154475
  • Loading branch information
darktrojan committed Aug 12, 2022
1 parent 7397afc commit 03daa81
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docshell/test/unit/test_URIFixup_external_protocol_fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
Expand Down Expand Up @@ -60,9 +63,12 @@ add_task(function basic() {
const testData = [
{
input: "mailto:[email protected]",
expected: isSupportedInHandlerService("mailto")
? "mailto:[email protected]"
: "http://mailto:[email protected]/",
expected:
isSupportedInHandlerService("mailto") ||
// Thunderbird IS a mailto handler, it doesn't have handlers.
AppConstants.MOZ_APP_NAME == "thunderbird"
? "mailto:[email protected]"
: "http://mailto:[email protected]/",
},
{
input: "keyword:search",
Expand Down

0 comments on commit 03daa81

Please sign in to comment.