forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
7397afc
commit 03daa81
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,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", | ||
|