summaryrefslogtreecommitdiffstats
path: root/docshell/test/unit
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-10-09 17:35:00 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-10-09 17:41:02 -0400
commit791e7540d3a4208b0182f5cc6f26485f62e1594b (patch)
treebd0a4b35ccff50c674136b384db18b084317327f /docshell/test/unit
parentbea97848f457fa0b6df515bdf5d2db06fa43c5b8 (diff)
downloadUXP-791e7540d3a4208b0182f5cc6f26485f62e1594b.tar
UXP-791e7540d3a4208b0182f5cc6f26485f62e1594b.tar.gz
UXP-791e7540d3a4208b0182f5cc6f26485f62e1594b.tar.lz
UXP-791e7540d3a4208b0182f5cc6f26485f62e1594b.tar.xz
UXP-791e7540d3a4208b0182f5cc6f26485f62e1594b.zip
backport m-c 1435319: CVE-2018-12381 - Dropping an Outlook email message into the browser window will trigger a page navigation when the message's mail columns are incorrectly interpreted as a URL.
Diffstat (limited to 'docshell/test/unit')
-rw-r--r--docshell/test/unit/test_nsDefaultURIFixup_info.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docshell/test/unit/test_nsDefaultURIFixup_info.js b/docshell/test/unit/test_nsDefaultURIFixup_info.js
index c606ac32e..748aaab93 100644
--- a/docshell/test/unit/test_nsDefaultURIFixup_info.js
+++ b/docshell/test/unit/test_nsDefaultURIFixup_info.js
@@ -469,6 +469,14 @@ var testcases = [ {
keywordLookup: true,
protocolChange: true,
affectedByDNSForSingleHosts: true,
+ }, {
+ input: " \t mozilla.org/\t \t ",
+ fixedURI: "http://mozilla.org/",
+ alternateURI: "http://www.mozilla.org/",
+ protocolChange: true,
+ }, {
+ input: " moz\ti\tlla.org ",
+ keywordLookup: true,
}];
if (Services.appinfo.OS.toLowerCase().startsWith("win")) {