diff --git a/accessible/tests/mochitest/tree/test_combobox.xul b/accessible/tests/mochitest/tree/test_combobox.xul
index 9d14e126a1f..886fa289bd6 100644
--- a/accessible/tests/mochitest/tree/test_combobox.xul
+++ b/accessible/tests/mochitest/tree/test_combobox.xul
@@ -171,7 +171,7 @@
+ value="http://mochi.test:8888/redirect-a11y.html"/>
diff --git a/browser/base/content/test/browser_bug329212.js b/browser/base/content/test/browser_bug329212.js
index 95508a00a94..af0b285b454 100644
--- a/browser/base/content/test/browser_bug329212.js
+++ b/browser/base/content/test/browser_bug329212.js
@@ -33,6 +33,6 @@ function test () {
}, true);
content.location =
- "http://localhost:8888/browser/browser/base/content/test/title_test.svg";
+ "http://mochi.test:8888/browser/browser/base/content/test/title_test.svg";
}
diff --git a/browser/base/content/test/browser_bug416661.js b/browser/base/content/test/browser_bug416661.js
index 5f274a0afbf..d861bdd9492 100644
--- a/browser/base/content/test/browser_bug416661.js
+++ b/browser/base/content/test/browser_bug416661.js
@@ -11,7 +11,7 @@ function start_test_prefNotSet() {
isnot(zoomLevel, 1, "zoom level should have changed");
content.location =
- "http://localhost:8888/browser/browser/base/content/test/moz.png";
+ "http://mochi.test:8888/browser/browser/base/content/test/moz.png";
}
function continue_test_prefNotSet () {
@@ -22,7 +22,7 @@ function continue_test_prefNotSet () {
FullZoom.reset();
content.location =
- "http://localhost:8888/browser/browser/base/content/test/zoom_test.html";
+ "http://mochi.test:8888/browser/browser/base/content/test/zoom_test.html";
}
function end_test_prefNotSet() {
@@ -44,6 +44,6 @@ function test() {
tabElm.linkedBrowser.addEventListener("load", start_test_prefNotSet, true);
content.location =
- "http://localhost:8888/browser/browser/base/content/test/zoom_test.html";
+ "http://mochi.test:8888/browser/browser/base/content/test/zoom_test.html";
}
diff --git a/browser/base/content/test/browser_bug479408.js b/browser/base/content/test/browser_bug479408.js
index 5e2512aa283..0a14e225938 100644
--- a/browser/base/content/test/browser_bug479408.js
+++ b/browser/base/content/test/browser_bug479408.js
@@ -1,7 +1,7 @@
function test() {
waitForExplicitFinish();
let tab = gBrowser.selectedTab = gBrowser.addTab(
- "http://localhost:8888/browser/browser/base/content/test/browser_bug479408_sample.html");
+ "http://mochi.test:8888/browser/browser/base/content/test/browser_bug479408_sample.html");
gBrowser.addEventListener("DOMLinkAdded", function(aEvent) {
gBrowser.removeEventListener("DOMLinkAdded", arguments.callee, true);
diff --git a/browser/base/content/test/browser_relatedTabs.js b/browser/base/content/test/browser_relatedTabs.js
index 194c7afd640..02e08ad180b 100644
--- a/browser/base/content/test/browser_relatedTabs.js
+++ b/browser/base/content/test/browser_relatedTabs.js
@@ -45,22 +45,22 @@ function test() {
function addTab(aURL,aReferrer)
tabs.push(gBrowser.addTab(aURL, {referrerURI: aReferrer}));
- addTab("http://localhost:8888/#0");
+ addTab("http://mochi.test:8888/#0");
gBrowser.selectedTab = tabs[0];
- addTab("http://localhost:8888/#1");
- addTab("http://localhost:8888/#2",gBrowser.currentURI);
- addTab("http://localhost:8888/#3",gBrowser.currentURI);
+ addTab("http://mochi.test:8888/#1");
+ addTab("http://mochi.test:8888/#2",gBrowser.currentURI);
+ addTab("http://mochi.test:8888/#3",gBrowser.currentURI);
gBrowser.selectedTab = tabs[tabs.length - 1];
gBrowser.selectedTab = tabs[0];
- addTab("http://localhost:8888/#4",gBrowser.currentURI);
+ addTab("http://mochi.test:8888/#4",gBrowser.currentURI);
gBrowser.selectedTab = tabs[3];
- addTab("http://localhost:8888/#5",gBrowser.currentURI);
+ addTab("http://mochi.test:8888/#5",gBrowser.currentURI);
gBrowser.removeTab(tabs.pop());
addTab("about:blank",gBrowser.currentURI);
gBrowser.moveTabTo(gBrowser.selectedTab, 1);
- addTab("http://localhost:8888/#6",gBrowser.currentURI);
+ addTab("http://mochi.test:8888/#6",gBrowser.currentURI);
addTab();
- addTab("http://localhost:8888/#7");
+ addTab("http://mochi.test:8888/#7");
return tabs;
}
diff --git a/browser/base/content/test/test_offlineNotification.html b/browser/base/content/test/test_offlineNotification.html
index d9ab78293c4..33c099cf8dd 100644
--- a/browser/base/content/test/test_offlineNotification.html
+++ b/browser/base/content/test/test_offlineNotification.html
@@ -104,7 +104,7 @@ function loaded() {
var win = wm.getMostRecentWindow("navigator:browser");
var notificationBox = win.gBrowser.getNotificationBox();
- var notification = notificationBox.getNotificationWithValue("offline-app-requested-localhost");
+ var notification = notificationBox.getNotificationWithValue("offline-app-requested-mochi.test");
notification.childNodes[0].click();
notification = notificationBox.getNotificationWithValue("offline-app-requested-example.com");
diff --git a/browser/base/content/test/test_offline_gzip.html b/browser/base/content/test/test_offline_gzip.html
index 3548774259a..f8414c1da53 100644
--- a/browser/base/content/test/test_offline_gzip.html
+++ b/browser/base/content/test/test_offline_gzip.html
@@ -37,7 +37,7 @@ function finishTest() {
var pm = Components.classes["@mozilla.org/permissionmanager;1"].
getService(Components.interfaces.nsIPermissionManager);
- pm.remove("localhost", "offline-app");
+ pm.remove("mochi.test", "offline-app");
window.removeEventListener("message", handleMessageEvents, false);
@@ -103,7 +103,7 @@ function loaded() {
var notificationBox = win.gBrowser.getNotificationBox();
var notification = notificationBox
- .getNotificationWithValue("offline-app-requested-localhost");
+ .getNotificationWithValue("offline-app-requested-mochi.test");
notification.childNodes[0].click();
}
diff --git a/browser/components/feeds/test/chrome/test_423060.xul b/browser/components/feeds/test/chrome/test_423060.xul
index f015651a38b..ba7263a184d 100644
--- a/browser/components/feeds/test/chrome/test_423060.xul
+++ b/browser/components/feeds/test/chrome/test_423060.xul
@@ -29,7 +29,7 @@
/* register a handler for the feed type */
const MAYBE_FEED = "application/vnd.mozilla.maybe.feed";
- var handlerPage = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=%s";
+ var handlerPage = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=%s";
var wccr = Cc[wccrID].getService(Ci.nsIWebContentConverterService);
wccr.registerContentHandler(MAYBE_FEED, handlerPage, "Demo handler", null);
var demoHandler = wccr.getWebContentHandlerByURI(MAYBE_FEED, handlerPage);
@@ -40,7 +40,7 @@
function finishUp() {
var theframe = document.getElementById('theframe');
- var previewURL = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=http%3A%2F%2Flocalhost%3A8888%2Ftests%2Ftoolkit%2Fcomponents%2Fplaces%2Ftests%2Fchrome%2Fsample_feed.atom";
+ var previewURL = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=http%3A%2F%2Fmochi.test%3A8888%2Ftests%2Ftoolkit%2Fcomponents%2Fplaces%2Ftests%2Fchrome%2Fsample_feed.atom";
is(theframe.contentDocument.URL, previewURL);
/* remove our demoHandler */
@@ -52,7 +52,7 @@
SimpleTest.finish();
}
-
-
\ No newline at end of file
+
diff --git a/browser/components/feeds/test/test_registerHandler.html b/browser/components/feeds/test/test_registerHandler.html
index fc1b68aa950..9c304e77a08 100644
--- a/browser/components/feeds/test/test_registerHandler.html
+++ b/browser/components/feeds/test/test_registerHandler.html
@@ -40,12 +40,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=402788
ok(navigator.registerContentHandler, "navigator.registerContentHandler should be defined");
// testing a generic case
- is(true, testRegisterHandler(true, "foo", "http://localhost:8888/%s", "Foo handler"), "registering a foo protocol handler should work");
- is(true, testRegisterHandler(false, "application/rss+xml", "http://localhost:8888/%s", "Foo handler"), "registering a foo content handler should work");
+ is(true, testRegisterHandler(true, "foo", "http://mochi.test:8888/%s", "Foo handler"), "registering a foo protocol handler should work");
+ is(true, testRegisterHandler(false, "application/rss+xml", "http://mochi.test:8888/%s", "Foo handler"), "registering a foo content handler should work");
// testing with wrong uris
- is(false, testRegisterHandler(true, "foo", "http://localhost:8888/", "Foo handler"), "a protocol handler uri should contain %s");
- is(false, testRegisterHandler(false, "application/rss+xml", "http://localhost:8888/", "Foo handler"), "a content handler uri should contain %s");
+ is(false, testRegisterHandler(true, "foo", "http://mochi.test:8888/", "Foo handler"), "a protocol handler uri should contain %s");
+ is(false, testRegisterHandler(false, "application/rss+xml", "http://mochi.test:8888/", "Foo handler"), "a content handler uri should contain %s");
// the spec says we should not throw here, but it probably needs to be changed
is(false, testRegisterHandler(true, "foo", "foo/%s", "Foo handler"), "a protocol handler uri should be valid");
@@ -57,28 +57,28 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=402788
// restriction to http(s) for the uri of the handler (bug 401343)
// https should work (http already tested in the generic case)
- is(true, testRegisterHandler(true, "foo", "https://localhost:8888/%s", "Foo handler"), "registering a foo protocol handler with https scheme should work");
- is(true, testRegisterHandler(false, "application/rss+xml", "https://localhost:8888/%s", "Foo handler"), "registering a foo content handler with https scheme should work");
+ is(true, testRegisterHandler(true, "foo", "https://mochi.test:8888/%s", "Foo handler"), "registering a foo protocol handler with https scheme should work");
+ is(true, testRegisterHandler(false, "application/rss+xml", "https://mochi.test:8888/%s", "Foo handler"), "registering a foo content handler with https scheme should work");
// ftp should not work
- is(false, testRegisterHandler(true, "foo", "ftp://localhost:8888/%s", "Foo handler"), "registering a foo protocol handler with ftp scheme should not work");
- is(false, testRegisterHandler(false, "application/rss+xml", "ftp://localhost:8888/%s", "Foo handler"), "registering a foo content handler with ftp scheme should not work");
+ is(false, testRegisterHandler(true, "foo", "ftp://mochi.test:8888/%s", "Foo handler"), "registering a foo protocol handler with ftp scheme should not work");
+ is(false, testRegisterHandler(false, "application/rss+xml", "ftp://mochi.test:8888/%s", "Foo handler"), "registering a foo content handler with ftp scheme should not work");
// chrome should not work
- is(false, testRegisterHandler(true, "foo", "chrome://localhost:8888/%s", "Foo handler"), "registering a foo protocol handler with chrome scheme should not work");
- is(false, testRegisterHandler(false, "application/rss+xml", "chrome://localhost:8888/%s", "Foo handler"), "registering a foo content handler with chrome scheme should not work");
+ is(false, testRegisterHandler(true, "foo", "chrome://mochi.test:8888/%s", "Foo handler"), "registering a foo protocol handler with chrome scheme should not work");
+ is(false, testRegisterHandler(false, "application/rss+xml", "chrome://mochi.test:8888/%s", "Foo handler"), "registering a foo content handler with chrome scheme should not work");
// foo should not work
- is(false, testRegisterHandler(true, "foo", "foo://localhost:8888/%s", "Foo handler"), "registering a foo protocol handler with foo scheme should not work");
- is(false, testRegisterHandler(false, "application/rss+xml", "foo://localhost:8888/%s", "Foo handler"), "registering a foo content handler with foo scheme should not work");
+ is(false, testRegisterHandler(true, "foo", "foo://mochi.test:8888/%s", "Foo handler"), "registering a foo protocol handler with foo scheme should not work");
+ is(false, testRegisterHandler(false, "application/rss+xml", "foo://mochi.test:8888/%s", "Foo handler"), "registering a foo content handler with foo scheme should not work");
// for security reasons, protocol handlers should never be registered for some schemes (chrome, vbscript, ...) (bug 402788)
- is(false, testRegisterHandler(true, "chrome", "http://localhost:8888/%s", "chrome handler"), "registering a chrome protocol handler should not work");
- is(false, testRegisterHandler(true, "vbscript", "http://localhost:8888/%s", "vbscript handler"), "registering a vbscript protocol handler should not work");
- is(false, testRegisterHandler(true, "javascript", "http://localhost:8888/%s", "javascript handler"), "registering a javascript protocol handler should not work");
- is(false, testRegisterHandler(true, "moz-icon", "http://localhost:8888/%s", "moz-icon handler"), "registering a moz-icon protocol handler should not work");
+ is(false, testRegisterHandler(true, "chrome", "http://mochi.test:8888/%s", "chrome handler"), "registering a chrome protocol handler should not work");
+ is(false, testRegisterHandler(true, "vbscript", "http://mochi.test:8888/%s", "vbscript handler"), "registering a vbscript protocol handler should not work");
+ is(false, testRegisterHandler(true, "javascript", "http://mochi.test:8888/%s", "javascript handler"), "registering a javascript protocol handler should not work");
+ is(false, testRegisterHandler(true, "moz-icon", "http://mochi.test:8888/%s", "moz-icon handler"), "registering a moz-icon protocol handler should not work");
// for security reasons, content handlers should never be registered for some types (html, ...)
- is(true, testRegisterHandler(false, "application/rss+xml", "http://localhost:8888/%s", "Foo handler"), "registering rss content handlers should work");
- is(true, testRegisterHandler(false, "application/atom+xml", "http://localhost:8888/%s", "Foo handler"), "registering atom content handlers should work");
- todo(false, testRegisterHandler(false, "text/html", "http://localhost:8888/%s", "Foo handler"), "registering html content handlers should not work"); // bug 403798
+ is(true, testRegisterHandler(false, "application/rss+xml", "http://mochi.test:8888/%s", "Foo handler"), "registering rss content handlers should work");
+ is(true, testRegisterHandler(false, "application/atom+xml", "http://mochi.test:8888/%s", "Foo handler"), "registering atom content handlers should work");
+ todo(false, testRegisterHandler(false, "text/html", "http://mochi.test:8888/%s", "Foo handler"), "registering html content handlers should not work"); // bug 403798
diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js
index 74f79197b5f..8ec728d14de 100644
--- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js
+++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js
@@ -129,7 +129,7 @@ function addDownload(dm, aParams)
aParams.targetFile.append(aParams.resultFileName);
}
if (!("sourceURI" in aParams))
- aParams.sourceURI = "http://localhost:8888/browser/browser/components/privatebrowsing/test/browser/staller.sjs";
+ aParams.sourceURI = "http://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/staller.sjs";
if (!("downloadName" in aParams))
aParams.downloadName = null;
if (!("runBeforeStart" in aParams))
diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js
index c7ef5e6e9ff..45d81792b2b 100644
--- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js
+++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js
@@ -43,7 +43,7 @@ function test() {
let pb = Cc["@mozilla.org/privatebrowsing;1"].
getService(Ci.nsIPrivateBrowsingService);
- const testPageURL = "http://localhost:8888/browser/" +
+ const testPageURL = "http://mochi.test:8888/browser/" +
"browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt_page.html";
waitForExplicitFinish();
diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js
index 6482837d998..f4194ddb72f 100644
--- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js
+++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js
@@ -51,7 +51,7 @@ function test() {
getService(Ci.nsICookieManager);
waitForExplicitFinish();
- const TEST_URL = "http://localhost:8888/browser/browser/components/privatebrowsing/test/browser/title.sjs";
+ const TEST_URL = "http://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/title.sjs";
function cleanup() {
// delete all history items
diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js
index ba66cacf362..a7caf02b6e9 100644
--- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js
+++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js
@@ -46,7 +46,7 @@ function test() {
let oldPopupPolicy = gPrefService.getBoolPref("dom.disable_open_during_load");
gPrefService.setBoolPref("dom.disable_open_during_load", true);
- const TEST_URI = "http://localhost:8888/browser/browser/components/privatebrowsing/test/browser/popup.html";
+ const TEST_URI = "http://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/popup.html";
waitForExplicitFinish();
diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js
index 6aff23e6279..bc72e185198 100644
--- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js
+++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js
@@ -44,7 +44,7 @@ function test() {
let pb = Cc["@mozilla.org/privatebrowsing;1"].
getService(Ci.nsIPrivateBrowsingService);
- const testPageURL = "http://localhost:8888/browser/" +
+ const testPageURL = "http://mochi.test:8888/browser/" +
"browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle_page.html";
waitForExplicitFinish();
diff --git a/browser/components/search/test/426329.xml b/browser/components/search/test/426329.xml
index 6bad8a58061..e4545cc7712 100644
--- a/browser/components/search/test/426329.xml
+++ b/browser/components/search/test/426329.xml
@@ -4,8 +4,8 @@
426329 Search
utf-8
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABGklEQVQoz2NgGB6AnZ1dUlJSXl4eSDIyMhLW4Ovr%2B%2Fr168uXL69Zs4YoG%2BLi4i5dusTExMTGxsbNzd3f37937976%2BnpmZmagbHR09J49e5YvX66kpATVEBYW9ubNm2nTphkbG7e2tp44cQLIuHfvXm5urpaWFlDKysqqu7v73LlzECMYIiIiHj58mJCQoKKicvXq1bS0NKBgW1vbjh074uPjgeqAXE1NzSdPnvDz84M0AEUvXLgAsW379u1z5swBen3jxo2zZ892cHB4%2BvQp0KlAfwI1cHJyghQFBwfv2rULokFXV%2FfixYu7d%2B8GGqGgoMDKyrpu3br9%2B%2FcDuXl5eVA%2FAEWBfoWHAdAYoNuAYQ0XAeoUERFhGDYAAPoUaT2dfWJuAAAAAElFTkSuQmCC
-
+
- http://localhost:8888/browser/browser/components/search/test/test.html
+ http://mochi.test:8888/browser/browser/components/search/test/test.html
diff --git a/browser/components/search/test/483086-1.xml b/browser/components/search/test/483086-1.xml
index e792fc95092..9dbba4886de 100644
--- a/browser/components/search/test/483086-1.xml
+++ b/browser/components/search/test/483086-1.xml
@@ -3,7 +3,7 @@
483086a
Bug 483086 Test 1
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABGklEQVQoz2NgGB6AnZ1dUlJSXl4eSDIyMhLW4Ovr%2B%2Fr168uXL69Zs4YoG%2BLi4i5dusTExMTGxsbNzd3f37937976%2BnpmZmagbHR09J49e5YvX66kpATVEBYW9ubNm2nTphkbG7e2tp44cQLIuHfvXm5urpaWFlDKysqqu7v73LlzECMYIiIiHj58mJCQoKKicvXq1bS0NKBgW1vbjh074uPjgeqAXE1NzSdPnvDz84M0AEUvXLgAsW379u1z5swBen3jxo2zZ892cHB4%2BvQp0KlAfwI1cHJyghQFBwfv2rULokFXV%2FfixYu7d%2B8GGqGgoMDKyrpu3br9%2B%2FcDuXl5eVA%2FAEWBfoWHAdAYoNuAYQ0XAeoUERFhGDYAAPoUaT2dfWJuAAAAAElFTkSuQmCC
-
+
foo://example.com
diff --git a/browser/components/search/test/483086-2.xml b/browser/components/search/test/483086-2.xml
index ed2d4a71c4a..f130b906899 100644
--- a/browser/components/search/test/483086-2.xml
+++ b/browser/components/search/test/483086-2.xml
@@ -3,7 +3,7 @@
483086b
Bug 483086 Test 2
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABGklEQVQoz2NgGB6AnZ1dUlJSXl4eSDIyMhLW4Ovr%2B%2Fr168uXL69Zs4YoG%2BLi4i5dusTExMTGxsbNzd3f37937976%2BnpmZmagbHR09J49e5YvX66kpATVEBYW9ubNm2nTphkbG7e2tp44cQLIuHfvXm5urpaWFlDKysqqu7v73LlzECMYIiIiHj58mJCQoKKicvXq1bS0NKBgW1vbjh074uPjgeqAXE1NzSdPnvDz84M0AEUvXLgAsW379u1z5swBen3jxo2zZ892cHB4%2BvQp0KlAfwI1cHJyghQFBwfv2rULokFXV%2FfixYu7d%2B8GGqGgoMDKyrpu3br9%2B%2FcDuXl5eVA%2FAEWBfoWHAdAYoNuAYQ0XAeoUERFhGDYAAPoUaT2dfWJuAAAAAElFTkSuQmCC
-
+
http://example.com
diff --git a/browser/components/search/test/browser_415700.js b/browser/components/search/test/browser_415700.js
index 9de472c4f87..44c872aa95d 100644
--- a/browser/components/search/test/browser_415700.js
+++ b/browser/components/search/test/browser_415700.js
@@ -56,7 +56,7 @@ function test() {
waitForExplicitFinish();
gObs.addObserver(observers, "browser-search-engine-modified", false);
- gSS.addEngine("http://localhost:8888/browser/browser/components/search/test/testEngine.xml",
+ gSS.addEngine("http://mochi.test:8888/browser/browser/components/search/test/testEngine.xml",
Ci.nsISearchEngine.DATA_XML, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABGklEQVQoz2NgGB6AnZ1dUlJSXl4eSDIyMhLW4Ovr%2B%2Fr168uXL69Zs4YoG%2BLi4i5dusTExMTGxsbNzd3f37937976%2BnpmZmagbHR09J49e5YvX66kpATVEBYW9ubNm2nTphkbG7e2tp44cQLIuHfvXm5urpaWFlDKysqqu7v73LlzECMYIiIiHj58mJCQoKKicvXq1bS0NKBgW1vbjh074uPjgeqAXE1NzSdPnvDz84M0AEUvXLgAsW379u1z5swBen3jxo2zZ892cHB4%2BvQp0KlAfwI1cHJyghQFBwfv2rULokFXV%2FfixYu7d%2B8GGqGgoMDKyrpu3br9%2B%2FcDuXl5eVA%2FAEWBfoWHAdAYoNuAYQ0XAeoUERFhGDYAAPoUaT2dfWJuAAAAAElFTkSuQmCC",
false);
}
diff --git a/browser/components/search/test/browser_426329.js b/browser/components/search/test/browser_426329.js
index f9ed3530142..8d38693623a 100644
--- a/browser/components/search/test/browser_426329.js
+++ b/browser/components/search/test/browser_426329.js
@@ -33,7 +33,7 @@ function test() {
}
obs.addObserver(observer, "browser-search-engine-modified", false);
- ss.addEngine("http://localhost:8888/browser/browser/components/search/test/426329.xml",
+ ss.addEngine("http://mochi.test:8888/browser/browser/components/search/test/426329.xml",
Ci.nsISearchEngine.DATA_XML, "data:image/x-icon,%00",
false);
diff --git a/browser/components/search/test/browser_483086.js b/browser/components/search/test/browser_483086.js
index 6495106a30e..f449ebe7322 100644
--- a/browser/components/search/test/browser_483086.js
+++ b/browser/components/search/test/browser_483086.js
@@ -58,7 +58,7 @@ function test() {
}
gObs.addObserver(observer, "browser-search-engine-modified", false);
- gSS.addEngine("http://localhost:8888/browser/browser/components/search/test/483086-1.xml",
+ gSS.addEngine("http://mochi.test:8888/browser/browser/components/search/test/483086-1.xml",
Ci.nsISearchEngine.DATA_XML, "data:image/x-icon;%00",
false);
}
@@ -80,7 +80,7 @@ function test2() {
}
gObs.addObserver(observer, "browser-search-engine-modified", false);
- gSS.addEngine("http://localhost:8888/browser/browser/components/search/test/483086-2.xml",
+ gSS.addEngine("http://mochi.test:8888/browser/browser/components/search/test/483086-2.xml",
Ci.nsISearchEngine.DATA_XML, "data:image/x-icon;%00",
false);
}
diff --git a/browser/components/search/test/testEngine.xml b/browser/components/search/test/testEngine.xml
index 8a7dbc1a0db..21ddc4b9a9f 100644
--- a/browser/components/search/test/testEngine.xml
+++ b/browser/components/search/test/testEngine.xml
@@ -4,9 +4,9 @@
Foo Search
utf-8
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABGklEQVQoz2NgGB6AnZ1dUlJSXl4eSDIyMhLW4Ovr%2B%2Fr168uXL69Zs4YoG%2BLi4i5dusTExMTGxsbNzd3f37937976%2BnpmZmagbHR09J49e5YvX66kpATVEBYW9ubNm2nTphkbG7e2tp44cQLIuHfvXm5urpaWFlDKysqqu7v73LlzECMYIiIiHj58mJCQoKKicvXq1bS0NKBgW1vbjh074uPjgeqAXE1NzSdPnvDz84M0AEUvXLgAsW379u1z5swBen3jxo2zZ892cHB4%2BvQp0KlAfwI1cHJyghQFBwfv2rULokFXV%2FfixYu7d%2B8GGqGgoMDKyrpu3br9%2B%2FcDuXl5eVA%2FAEWBfoWHAdAYoNuAYQ0XAeoUERFhGDYAAPoUaT2dfWJuAAAAAElFTkSuQmCC
-
+
- http://localhost:8888/browser/browser/components/search/test/
+ http://mochi.test:8888/browser/browser/components/search/test/
fooalias
diff --git a/browser/components/sessionstore/test/browser/browser_248970_a.js b/browser/components/sessionstore/test/browser/browser_248970_a.js
index ab282eee20d..4937d07694b 100644
--- a/browser/components/sessionstore/test/browser/browser_248970_a.js
+++ b/browser/components/sessionstore/test/browser/browser_248970_a.js
@@ -115,7 +115,7 @@ function test() {
this.removeEventListener("load", arguments.callee, true);
// private browsing session, add new tab: (C)
- const testURL_C = "http://localhost:8888/";
+ const testURL_C = "http://mochi.test:8888/";
let tab_C = gBrowser.addTab(testURL_C);
tab_C.linkedBrowser.addEventListener("load", function (aEvent) {
diff --git a/browser/components/sessionstore/test/browser/browser_248970_b.js b/browser/components/sessionstore/test/browser/browser_248970_b.js
index 0301e48a7f9..1246ad6f814 100644
--- a/browser/components/sessionstore/test/browser/browser_248970_b.js
+++ b/browser/components/sessionstore/test/browser/browser_248970_b.js
@@ -114,7 +114,7 @@ function test() {
const testURL = "chrome://mochikit/content/browser/" +
"browser/components/sessionstore/test/browser/browser_248970_b_sample.html";
- const testURL2 = "http://localhost:8888/browser/" +
+ const testURL2 = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_248970_b_sample.html";
// get closed tab count
diff --git a/browser/components/sessionstore/test/browser/browser_339445.js b/browser/components/sessionstore/test/browser/browser_339445.js
index b2e8dfb70d7..cb2b22fd073 100644
--- a/browser/components/sessionstore/test/browser/browser_339445.js
+++ b/browser/components/sessionstore/test/browser/browser_339445.js
@@ -39,7 +39,7 @@ function test() {
waitForExplicitFinish();
- let testURL = "http://localhost:8888/browser/" +
+ let testURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_339445_sample.html";
let tab = gBrowser.addTab(testURL);
diff --git a/browser/components/sessionstore/test/browser/browser_423132.js b/browser/components/sessionstore/test/browser/browser_423132.js
index deacd8784c3..3f33eff14dd 100644
--- a/browser/components/sessionstore/test/browser/browser_423132.js
+++ b/browser/components/sessionstore/test/browser/browser_423132.js
@@ -63,7 +63,7 @@ function test() {
// the interval pref to 0
gPrefService.setIntPref("browser.sessionstore.interval", 0);
- const testURL = "http://localhost:8888/browser/" +
+ const testURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_423132_sample.html";
// open a new window
diff --git a/browser/components/sessionstore/test/browser/browser_447951.js b/browser/components/sessionstore/test/browser/browser_447951.js
index 7c860c1e814..32b78dcff9c 100644
--- a/browser/components/sessionstore/test/browser/browser_447951.js
+++ b/browser/components/sessionstore/test/browser/browser_447951.js
@@ -40,7 +40,7 @@ function test() {
// test setup
let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
waitForExplicitFinish();
- const baseURL = "http://localhost:8888/browser/" +
+ const baseURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_447951_sample.html#";
let tab = gBrowser.addTab();
diff --git a/browser/components/sessionstore/test/browser/browser_459906.js b/browser/components/sessionstore/test/browser/browser_459906.js
index 56cf5c2dccd..2886385a80a 100644
--- a/browser/components/sessionstore/test/browser/browser_459906.js
+++ b/browser/components/sessionstore/test/browser/browser_459906.js
@@ -39,7 +39,7 @@ function test() {
waitForExplicitFinish();
- let testURL = "http://localhost:8888/browser/" +
+ let testURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_459906_sample.html";
let uniqueValue = "Unique: " + Date.now();
@@ -81,7 +81,7 @@ function test() {
innerDomain = iframes[0].document.domain;
}
catch (ex) { /* throws for chrome: documents */ }
- is(innerDomain, "localhost", "XSS exploit prevented!");
+ is(innerDomain, "mochi.test", "XSS exploit prevented!");
// clean up
gBrowser.removeTab(tab2);
diff --git a/browser/components/sessionstore/test/browser/browser_461743.js b/browser/components/sessionstore/test/browser/browser_461743.js
index 744480608cf..754fa6dee38 100644
--- a/browser/components/sessionstore/test/browser/browser_461743.js
+++ b/browser/components/sessionstore/test/browser/browser_461743.js
@@ -39,7 +39,7 @@ function test() {
waitForExplicitFinish();
- let testURL = "http://localhost:8888/browser/" +
+ let testURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_461743_sample.html";
let frameCount = 0;
diff --git a/browser/components/sessionstore/test/browser/browser_463205_sample.html b/browser/components/sessionstore/test/browser/browser_463205_sample.html
index c774d0263fc..119d3b05cac 100644
--- a/browser/components/sessionstore/test/browser/browser_463205_sample.html
+++ b/browser/components/sessionstore/test/browser/browser_463205_sample.html
@@ -17,7 +17,7 @@
}
else {
frames[1].document.location.hash = "#original";
- frames[0].document.location = "http://localhost:8888/browser/" +
+ frames[0].document.location = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_463205_helper.html";
}
}, false);
diff --git a/browser/components/sessionstore/test/browser/browser_463206.js b/browser/components/sessionstore/test/browser/browser_463206.js
index bc5f604382c..4e973f25a70 100644
--- a/browser/components/sessionstore/test/browser/browser_463206.js
+++ b/browser/components/sessionstore/test/browser/browser_463206.js
@@ -39,7 +39,7 @@ function test() {
waitForExplicitFinish();
- let testURL = "http://localhost:8888/browser/" +
+ let testURL = "http://mochi.test:8888/browser/" +
"browser/components/sessionstore/test/browser/browser_463206_sample.html";
var frameCount = 0;
diff --git a/browser/components/sessionstore/test/browser/browser_464620_a.html b/browser/components/sessionstore/test/browser/browser_464620_a.html
index a2cf68cc1d6..c1871ea7672 100644
--- a/browser/components/sessionstore/test/browser/browser_464620_a.html
+++ b/browser/components/sessionstore/test/browser/browser_464620_a.html
@@ -6,7 +6,7 @@
@@ -87,4 +87,4 @@ function post(e, res) {
Inner page
-