mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 971240 - Move phishing/malware test pages to their own domain. r=mmc
This commit is contained in:
parent
6eb43615b4
commit
8958917a4e
@ -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() {
|
||||
|
@ -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" +
|
||||
|
@ -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>.
|
||||
|
@ -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" +
|
||||
|
Loading…
Reference in New Issue
Block a user