Bug 971240 - Move phishing/malware test pages to their own domain. r=mmc

This commit is contained in:
Gian-Carlo Pascutto 2014-03-07 19:12:23 +01:00
parent 6eb43615b4
commit 8958917a4e
4 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ function test() {
}
}
});
content.location = "http://www.mozilla.org/firefox/its-an-attack.html";
content.location = "http://www.itisatrap.org/firefox/its-an-attack.html";
}
function testMalware() {
@ -32,7 +32,7 @@ function testMalware() {
// Now launch the phishing test
window.addEventListener("DOMContentLoaded", testPhishing, true);
content.location = "http://www.mozilla.org/firefox/its-a-trap.html";
content.location = "http://www.itisatrap.org/firefox/its-a-trap.html";
}
function testPhishing() {

View File

@ -69,13 +69,13 @@ SafeBrowsing.prototype = {
this.listManager = Cc["@mozilla.org/url-classifier/listmanager;1"].getService(Ci.nsIUrlListManager);
// Add a test chunk to the database
let testData = "mozilla.org/firefox/its-an-attack.html";
let testData = "itisatrap.org/firefox/its-an-attack.html";
let testUpdate =
"n:1000\ni:test-malware-simple\nad:1\n" +
"a:1:32:" + testData.length + "\n" +
testData;
testData = "mozilla.org/firefox/its-a-trap.html";
testData = "itisatrap.org/firefox/its-a-trap.html";
testUpdate +=
"n:1000\ni:test-phish-simple\nad:1\n" +
"a:1:32:" + testData.length + "\n" +

View File

@ -108,7 +108,7 @@ http://fxfeeds.mozilla.com:80
# Prevent safebrowsing tests from hitting the network for its-a-trap.html and
# its-an-attack.html.
http://www.mozilla.org:80
http://www.itisatrap.org:80
#
# These are subdomains of <ält.example.org>.

View File

@ -149,8 +149,8 @@ this.SafeBrowsing = {
addMozEntries: function() {
// Add test entries to the DB.
// XXX bug 779008 - this could be done by DB itself?
const phishURL = "mozilla.org/firefox/its-a-trap.html";
const malwareURL = "mozilla.org/firefox/its-an-attack.html";
const phishURL = "itisatrap.org/firefox/its-a-trap.html";
const malwareURL = "itisatrap.org/firefox/its-an-attack.html";
let update = "n:1000\ni:test-malware-simple\nad:1\n" +
"a:1:32:" + malwareURL.length + "\n" +