diff --git a/accessible/tests/mochitest/tree/test_combobox.xul b/accessible/tests/mochitest/tree/test_combobox.xul index 886fa289bd6..9d14e126a1f 100644 --- a/accessible/tests/mochitest/tree/test_combobox.xul +++ b/accessible/tests/mochitest/tree/test_combobox.xul @@ -171,7 +171,7 @@ + value="http://localhost:8888/redirect-a11y.html"/> diff --git a/browser/base/content/test/browser_bug329212.js b/browser/base/content/test/browser_bug329212.js index af0b285b454..95508a00a94 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://mochi.test:8888/browser/browser/base/content/test/title_test.svg"; + "http://localhost: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 d861bdd9492..5f274a0afbf 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://mochi.test:8888/browser/browser/base/content/test/moz.png"; + "http://localhost: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://mochi.test:8888/browser/browser/base/content/test/zoom_test.html"; + "http://localhost: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://mochi.test:8888/browser/browser/base/content/test/zoom_test.html"; + "http://localhost: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 0a14e225938..5e2512aa283 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://mochi.test:8888/browser/browser/base/content/test/browser_bug479408_sample.html"); + "http://localhost: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 02e08ad180b..194c7afd640 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://mochi.test:8888/#0"); + addTab("http://localhost:8888/#0"); gBrowser.selectedTab = tabs[0]; - addTab("http://mochi.test:8888/#1"); - addTab("http://mochi.test:8888/#2",gBrowser.currentURI); - addTab("http://mochi.test:8888/#3",gBrowser.currentURI); + addTab("http://localhost:8888/#1"); + addTab("http://localhost:8888/#2",gBrowser.currentURI); + addTab("http://localhost:8888/#3",gBrowser.currentURI); gBrowser.selectedTab = tabs[tabs.length - 1]; gBrowser.selectedTab = tabs[0]; - addTab("http://mochi.test:8888/#4",gBrowser.currentURI); + addTab("http://localhost:8888/#4",gBrowser.currentURI); gBrowser.selectedTab = tabs[3]; - addTab("http://mochi.test:8888/#5",gBrowser.currentURI); + addTab("http://localhost:8888/#5",gBrowser.currentURI); gBrowser.removeTab(tabs.pop()); addTab("about:blank",gBrowser.currentURI); gBrowser.moveTabTo(gBrowser.selectedTab, 1); - addTab("http://mochi.test:8888/#6",gBrowser.currentURI); + addTab("http://localhost:8888/#6",gBrowser.currentURI); addTab(); - addTab("http://mochi.test:8888/#7"); + addTab("http://localhost:8888/#7"); return tabs; } diff --git a/browser/base/content/test/test_offlineNotification.html b/browser/base/content/test/test_offlineNotification.html index 33c099cf8dd..d9ab78293c4 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-mochi.test"); + var notification = notificationBox.getNotificationWithValue("offline-app-requested-localhost"); 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 f8414c1da53..3548774259a 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("mochi.test", "offline-app"); + pm.remove("localhost", "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-mochi.test"); + .getNotificationWithValue("offline-app-requested-localhost"); 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 ba7263a184d..f015651a38b 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://mochi.test:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=%s"; + var handlerPage = "http://localhost: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://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"; + 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"; 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 9c304e77a08..fc1b68aa950 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://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"); + 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"); // testing with wrong uris - 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"); + 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"); // 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://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"); + 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"); // ftp 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"); + 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"); // chrome 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"); + 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"); // foo 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"); + 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"); // for security reasons, protocol handlers should never be registered for some schemes (chrome, vbscript, ...) (bug 402788) - 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"); + 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"); // for security reasons, content handlers should never be registered for some types (html, ...) - 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 + 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 diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadmonitor.js index 8ec728d14de..74f79197b5f 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://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/staller.sjs"; + aParams.sourceURI = "http://localhost: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 45d81792b2b..c7ef5e6e9ff 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://mochi.test:8888/browser/" + + const testPageURL = "http://localhost: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 f4194ddb72f..6482837d998 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://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/title.sjs"; + const TEST_URL = "http://localhost: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 a7caf02b6e9..ba66cacf362 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://mochi.test:8888/browser/browser/components/privatebrowsing/test/browser/popup.html"; + const TEST_URI = "http://localhost: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 bc72e185198..6aff23e6279 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://mochi.test:8888/browser/" + + const testPageURL = "http://localhost: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 e4545cc7712..6bad8a58061 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://mochi.test:8888/browser/browser/components/search/test/test.html + http://localhost: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 9dbba4886de..e792fc95092 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 f130b906899..ed2d4a71c4a 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 44c872aa95d..9de472c4f87 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://mochi.test:8888/browser/browser/components/search/test/testEngine.xml", + gSS.addEngine("http://localhost: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 8d38693623a..f9ed3530142 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://mochi.test:8888/browser/browser/components/search/test/426329.xml", + ss.addEngine("http://localhost: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 f449ebe7322..6495106a30e 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://mochi.test:8888/browser/browser/components/search/test/483086-1.xml", + gSS.addEngine("http://localhost: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://mochi.test:8888/browser/browser/components/search/test/483086-2.xml", + gSS.addEngine("http://localhost: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 21ddc4b9a9f..8a7dbc1a0db 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://mochi.test:8888/browser/browser/components/search/test/ + http://localhost: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 4937d07694b..ab282eee20d 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://mochi.test:8888/"; + const testURL_C = "http://localhost: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 1246ad6f814..0301e48a7f9 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://mochi.test:8888/browser/" + + const testURL2 = "http://localhost: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 cb2b22fd073..b2e8dfb70d7 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://mochi.test:8888/browser/" + + let testURL = "http://localhost: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 3f33eff14dd..deacd8784c3 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://mochi.test:8888/browser/" + + const testURL = "http://localhost: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 32b78dcff9c..7c860c1e814 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://mochi.test:8888/browser/" + + const baseURL = "http://localhost: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 2886385a80a..56cf5c2dccd 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://mochi.test:8888/browser/" + + let testURL = "http://localhost: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, "mochi.test", "XSS exploit prevented!"); + is(innerDomain, "localhost", "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 754fa6dee38..744480608cf 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://mochi.test:8888/browser/" + + let testURL = "http://localhost: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 119d3b05cac..c774d0263fc 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://mochi.test:8888/browser/" + + frames[0].document.location = "http://localhost: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 4e973f25a70..bc5f604382c 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://mochi.test:8888/browser/" + + let testURL = "http://localhost: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 c1871ea7672..a2cf68cc1d6 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 - + \ No newline at end of file diff --git a/content/base/test/file_CrossSiteXHR_inner.jar b/content/base/test/file_CrossSiteXHR_inner.jar index 011c6cb24e4..032617c6f4f 100644 Binary files a/content/base/test/file_CrossSiteXHR_inner.jar and b/content/base/test/file_CrossSiteXHR_inner.jar differ diff --git a/content/base/test/file_htmlserializer_1_links.html b/content/base/test/file_htmlserializer_1_links.html index bd5467f234c..b0dfbc50fd0 100644 --- a/content/base/test/file_htmlserializer_1_links.html +++ b/content/base/test/file_htmlserializer_1_links.html @@ -11,7 +11,7 @@ adipiscing elit. Nam eu sapien. Sed viverra lacus. Donec quis ipsum. Nunc cursus aliquet lectus. Nunc vitae eros. Class aptent taciti sociosqu ad litora torquent per +href="http://localhost:8888/tests/content/base/test/file_htmlserializer_1_result1.html">per conubia nostra, per inceptos hymenaeos.

@@ -50,4 +50,4 @@ ut gravida eros leo ut libero

Nam eu sapien. Sed viverra lacus. Donec quis ipsum. Nunc cursus -aliquet lectus. Nunc vitae eros. Class aptent taciti

+aliquet lectus. Nunc vitae eros. Class aptent taciti

\ No newline at end of file diff --git a/content/base/test/file_xhtmlserializer_1.xhtml b/content/base/test/file_xhtmlserializer_1.xhtml index 64271ce2cee..600bdb37dff 100644 --- a/content/base/test/file_xhtmlserializer_1.xhtml +++ b/content/base/test/file_xhtmlserializer_1.xhtml @@ -57,4 +57,4 @@ ut gravida eros
leo ut libero lacus risus pulvinar ante. - + \ No newline at end of file diff --git a/content/base/test/file_xhtmlserializer_1_links.xhtml b/content/base/test/file_xhtmlserializer_1_links.xhtml index 3db4d350441..803244e2f2e 100644 --- a/content/base/test/file_xhtmlserializer_1_links.xhtml +++ b/content/base/test/file_xhtmlserializer_1_links.xhtml @@ -14,7 +14,7 @@ adipiscing elit. Nam eu sapien. Sed viverra lacus. Donec quis ipsum. Nunc cursus aliquet lectus. Nunc vitae eros. Class aptent taciti sociosqu ad litora torquent per +href="http://localhost:8888/tests/content/base/test/file_htmlserializer_1_result1.html">per conubia nostra, per inceptos hymenaeos.

@@ -68,4 +68,4 @@ pharetra rutrum,
lacus risus pulvinar ante. - + \ No newline at end of file diff --git a/content/base/test/test_CSP.html b/content/base/test/test_CSP.html index 8b3aa794cdb..3875e387fa1 100644 --- a/content/base/test/test_CSP.html +++ b/content/base/test/test_CSP.html @@ -119,15 +119,7 @@ SimpleTest.waitForExplicitFinish(); // save this for last so that our listeners are registered. // ... this loads the testbed of good and bad requests. - -netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); -var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); -var pps = Components.classes["@mozilla.org/network/protocol-proxy-service;1"].getService(); - -var uri = ios.newURI("http://example.com", null, null); -var pi = pps.resolve(uri, 0); -var proxy = pi.host + ":" + pi.port; -document.getElementById('cspframe').src = 'file_CSP.sjs?main=1&proxy=' + proxy; +document.getElementById('cspframe').src = 'file_CSP.sjs?main=1'; diff --git a/content/base/test/test_CrossSiteXHR.html b/content/base/test/test_CrossSiteXHR.html index f45c223a39e..b799cccdcaa 100644 --- a/content/base/test/test_CrossSiteXHR.html +++ b/content/base/test/test_CrossSiteXHR.html @@ -68,7 +68,7 @@ function runTest() { // Test preflight-less requests basePath = "/tests/content/base/test/file_CrossSiteXHR_server.sjs?" - baseURL = "http://mochi.test:8888" + basePath; + baseURL = "http://localhost:8888" + basePath; if (!runOriginTests) { origins = []; diff --git a/content/base/test/test_CrossSiteXHR_cache.html b/content/base/test/test_CrossSiteXHR_cache.html index 6cc2aaa0039..d1cfabaf80f 100644 --- a/content/base/test/test_CrossSiteXHR_cache.html +++ b/content/base/test/test_CrossSiteXHR_cache.html @@ -419,7 +419,7 @@ function runTest() { }, ]; - baseURL = "http://mochi.test:8888/tests/content/base/test/" + + baseURL = "http://localhost:8888/tests/content/base/test/" + "file_CrossSiteXHR_cache_server.sjs?"; setStateURL = baseURL + "setState="; diff --git a/content/base/test/test_XHRDocURI.html b/content/base/test/test_XHRDocURI.html index 24236d85b59..1a582debffb 100644 --- a/content/base/test/test_XHRDocURI.html +++ b/content/base/test/test_XHRDocURI.html @@ -31,13 +31,13 @@ function runTest() { is(document.baseURI, "http://example.org/", "wrong doc baseURI"); xhr = new XMLHttpRequest; - xhr.open("GET", "http://mochi.test:8888/tests/content/base/test/file_XHRDocURI.xml"); + xhr.open("GET", "http://localhost:8888/tests/content/base/test/file_XHRDocURI.xml"); xhr.onreadystatechange = function(e) { if (!xhr.responseXML) return; - is(xhr.responseXML.documentURI, "http://mochi.test:8888/tests/content/base/test/file_XHRDocURI.xml", + is(xhr.responseXML.documentURI, "http://localhost:8888/tests/content/base/test/file_XHRDocURI.xml", "wrong url"); - is(xhr.responseXML.baseURI, "http://mochi.test:8888/tests/content/base/test/file_XHRDocURI.xml", + is(xhr.responseXML.baseURI, "http://localhost:8888/tests/content/base/test/file_XHRDocURI.xml", "wrong base"); if (xhr.readyState == 4) { gen.next(); @@ -48,7 +48,7 @@ function runTest() { xhr = new XMLHttpRequest; - xhr.open("GET", "http://mochi.test:8888/tests/content/base/test/file_XHRDocURI.text"); + xhr.open("GET", "http://localhost:8888/tests/content/base/test/file_XHRDocURI.text"); xhr.onreadystatechange = function(e) { is(xhr.responseXML, null, "should not have document"); if (xhr.readyState == 4) diff --git a/content/base/test/test_bug345339.html b/content/base/test/test_bug345339.html index 323d5c799ad..acba2edae72 100644 --- a/content/base/test/test_bug345339.html +++ b/content/base/test/test_bug345339.html @@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=345339
 
diff --git a/content/base/test/test_bug475156.html b/content/base/test/test_bug475156.html
index 3a2a68337eb..e27cde42777 100644
--- a/content/base/test/test_bug475156.html
+++ b/content/base/test/test_bug475156.html
@@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=475156
 
 SimpleTest.waitForExplicitFinish();
 
-var path = "http://mochi.test:8888/tests/content/base/test/";
+var path = "http://localhost:8888/tests/content/base/test/";
 
 function fromCache(xhr)
 {
diff --git a/content/html/content/test/file_bug209275_3.html b/content/html/content/test/file_bug209275_3.html
index 24cf9f7dd13..afc89058375 100644
--- a/content/html/content/test/file_bug209275_3.html
+++ b/content/html/content/test/file_bug209275_3.html
@@ -12,7 +12,7 @@ function load() {
   // our new  will take precedence and the test will pass.
   document.open();
   document.write("A" +
-                 "");
+                 "");
 
   // Tell our parent to have a look at us.
   parent.gGen.next();
diff --git a/content/html/content/test/test_bug209275.xhtml b/content/html/content/test/test_bug209275.xhtml
index 37981a194a8..37d3c375339 100644
--- a/content/html/content/test/test_bug209275.xhtml
+++ b/content/html/content/test/test_bug209275.xhtml
@@ -128,7 +128,7 @@ function run() {
   yield; // wait for onload to fire.
 
   // Make sure things are what as we expect them at the beginning.
-  link123HrefIs("http://mochi.test:8888/", 1);
+  link123HrefIs("http://localhost:8888/", 1);
   is($('link4').href, loc + "#", "link 4 test 1");
   is($('link5').href, loc + "#", "link 5 test 1");
 
@@ -162,15 +162,15 @@ function run() {
 
   $('base1').href = "foo/";
   // Should be interpreted relative to current URI (not the current base), so
-  // base should now be http://mochi.test:8888/foo/
+  // base should now be http://localhost:8888/foo/
 
-  link123HrefIs("http://mochi.test:8888/", 3);
+  link123HrefIs("http://localhost:8888/", 3);
   is($('link4').href, path + "foo/#", "link 4 test 3");
 
   // Changing base2 shouldn't affect anything, because it's not the first base
   // tag.
   $('base2').href = "http://example.org/bar/";
-  link123HrefIs("http://mochi.test:8888/", 4);
+  link123HrefIs("http://localhost:8888/", 4);
   is($('link4').href, path + "foo/#", "link 4 test 4");
 
   // If we unset base1's href attribute, the document's base should come from
@@ -206,13 +206,13 @@ function run() {
   base3.parentNode.removeChild(base3);
   base4.parentNode.removeChild(base4);
 
-  link123HrefIs("http://mochi.test:8888/", 9);
+  link123HrefIs("http://localhost:8888/", 9);
   is($('link4').href, loc + "#", "link 4 test 9");
 
   // Setting the href of base0 shouldn't do anything because it's not in the
   // XHTML namespace.
   $('base0').href = "http://bar.com";
-  link123HrefIs("http://mochi.test:8888/", 10);
+  link123HrefIs("http://localhost:8888/", 10);
   is($('link4').href, loc + "#", "link 4 test 10");
 
   // We load into an iframe a document with a , then remove
@@ -231,7 +231,7 @@ function run() {
   iframeCw.location = "file_bug209275_2.html";
   yield; // wait for callback from child
   is(iframeCw.document.getElementById("link").href,
-     "http://mochi.test:8888/",
+     "http://localhost:8888/",
      "Wrong href after nuking document second time.");
 
   // Make sure that document.open() makes the document forget about any 
@@ -239,7 +239,7 @@ function run() {
   iframeCw.location = "file_bug209275_3.html";
   yield; // wait for callback from child
   is(iframeCw.document.getElementById("link").href,
-     "http://mochi.test:8888/",
+     "http://localhost:8888/",
      "Wrong href after document.open().");
 
   SimpleTest.finish();
diff --git a/content/html/content/test/test_bug353415-1.html b/content/html/content/test/test_bug353415-1.html
index 47f453ccf35..3352ee552f4 100644
--- a/content/html/content/test/test_bug353415-1.html
+++ b/content/html/content/test/test_bug353415-1.html
@@ -32,7 +32,7 @@
 
 	SimpleTest.waitForExplicitFinish();
         function doCheck(){
-		is(frames['submit_frame'].location.href, "http://mochi.test:8888/blah?field1=teststring&field2=0&field4=1&field6=3&field7=2&field8=8&field9=9&field12=", "Submit string was correct.");
+		is(frames['submit_frame'].location.href, "http://localhost:8888/blah?field1=teststring&field2=0&field4=1&field6=3&field7=2&field8=8&field9=9&field12=", "Submit string was correct.");
                 SimpleTest.finish();
 	}
 
diff --git a/content/html/content/test/test_bug353415-2.html b/content/html/content/test/test_bug353415-2.html
index 6a121db7da6..9ca189e1d79 100644
--- a/content/html/content/test/test_bug353415-2.html
+++ b/content/html/content/test/test_bug353415-2.html
@@ -57,7 +57,7 @@
 
 	SimpleTest.waitForExplicitFinish();
         function doCheck(){
-		is(frames['submit_frame'].location.href, "http://mochi.test:8888/blah?field1-2=teststring&field2-2=0&field4-2=1&field6-2=3&field7-2=2&field8-2=8&field9-2=9&field12-2=&field1=teststring&field2=0&field4=1&field6=3&field7=2&field8=8&field9=9&field12=&field14=14&field14-2=14", "Submit string was correct.");
+		is(frames['submit_frame'].location.href, "http://localhost:8888/blah?field1-2=teststring&field2-2=0&field4-2=1&field6-2=3&field7-2=2&field8-2=8&field9-2=9&field12-2=&field1=teststring&field2=0&field4=1&field6=3&field7=2&field8=8&field9=9&field12=&field14=14&field14-2=14", "Submit string was correct.");
                 SimpleTest.finish();
 	}
 
diff --git a/content/html/content/test/test_bug392567.html b/content/html/content/test/test_bug392567.html
index b8f66af1502..fac5855ba5f 100644
--- a/content/html/content/test/test_bug392567.html
+++ b/content/html/content/test/test_bug392567.html
@@ -22,7 +22,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=392567
 
 /** Test for Bug 392567 **/
 
-var dataUrl = "http://mochi.test:8888/tests/content/html/content/test/bug392567.jar";
+var dataUrl = "http://localhost:8888/tests/content/html/content/test/bug392567.jar";
 var jarUrl = "jar:" + dataUrl + "!/index.html";
 var httpUrl = location.href.replace(/\.html.*/, "_404");
 
diff --git a/content/html/document/test/bug196523-subframe.html b/content/html/document/test/bug196523-subframe.html
index ac53572a7a3..6fc153d44d3 100644
--- a/content/html/document/test/bug196523-subframe.html
+++ b/content/html/document/test/bug196523-subframe.html
@@ -2,11 +2,11 @@
 
 
diff --git a/content/xbl/test/file_bug379959_data.html b/content/xbl/test/file_bug379959_data.html
index a84b63ca33a..977b1d89ea0 100644
--- a/content/xbl/test/file_bug379959_data.html
+++ b/content/xbl/test/file_bug379959_data.html
@@ -12,7 +12,7 @@
 
 
diff --git a/content/xbl/test/test_bug379959.html b/content/xbl/test/test_bug379959.html
index 25efe713373..9c958bd7be4 100644
--- a/content/xbl/test/test_bug379959.html
+++ b/content/xbl/test/test_bug379959.html
@@ -29,7 +29,7 @@ var messages = 0;
 
 function receiveMessage(e)
 {
-  is(e.origin, "http://mochi.test:8888", "wrong sender!");
+  is(e.origin, "http://localhost:8888", "wrong sender!");
   messages++;
   gen.send(e.data);
 }
diff --git a/docshell/test/chrome/bug215405_window.xul b/docshell/test/chrome/bug215405_window.xul
index 6006af254c1..6a05fdc494a 100644
--- a/docshell/test/chrome/bug215405_window.xul
+++ b/docshell/test/chrome/bug215405_window.xul
@@ -52,7 +52,7 @@
     }
 
     const text="MOZILLA";
-    const nostoreURI = "http://mochi.test:8888/tests/docshell/test/chrome/" +
+    const nostoreURI = "http://localhost:8888/tests/docshell/test/chrome/" +
                        "215405_nostore.html";
     const nocacheURI = "https://example.com:443/tests/docshell/test/chrome/" +
                        "215405_nocache.html";
diff --git a/docshell/test/chrome/bug92598_window.xul b/docshell/test/chrome/bug92598_window.xul
index 16c81cd23b0..6d76a1e78b4 100644
--- a/docshell/test/chrome/bug92598_window.xul
+++ b/docshell/test/chrome/bug92598_window.xul
@@ -118,7 +118,7 @@
     function testsIterator() {
       // Load a page with a no-cache header, followed by a simple page
       // On pagehide, first page should report it is not being persisted
-      var test1DocURI = "http://mochi.test:8888/tests/docshell/test/chrome/92598_nostore.html";
+      var test1DocURI = "http://localhost:8888/tests/docshell/test/chrome/92598_nostore.html";
 
       gExpected = [{type: "pagehide", persisted: true},
                    {type: "load", title: "test1"},
diff --git a/docshell/test/chrome/docshell_helpers.js b/docshell/test/chrome/docshell_helpers.js
index 3c44497ebb3..b5633da3b18 100755
--- a/docshell/test/chrome/docshell_helpers.js
+++ b/docshell/test/chrome/docshell_helpers.js
@@ -410,7 +410,7 @@ function enableBFCache(enable) {
  * directory.
  */
 function getHttpUrl(filename) {
-  return "http://mochi.test:8888/chrome/docshell/test/chrome/" + filename;
+  return "http://localhost:8888/chrome/docshell/test/chrome/" + filename;
 }
 
 /**
diff --git a/docshell/test/test_bug369814.html b/docshell/test/test_bug369814.html
index 58bb6e9f85b..70b07911db2 100644
--- a/docshell/test/test_bug369814.html
+++ b/docshell/test/test_bug369814.html
@@ -58,7 +58,7 @@ function loadEvent(window, callback)
 
 function loadTestTarget(callback)
 {
-  gTargetWindow = window.open("http://mochi.test:8888", "bug369814target");
+  gTargetWindow = window.open("http://localhost:8888", "bug369814target");
   loadEvent(gTargetWindow, callback);
 }
 
@@ -126,37 +126,37 @@ function anchorTest(test) {
 
 var gTests = [
   { "name" : "iframes.html loaded from non-jar type, pref disabled",
-    "url" : "jar:http://mochi.test:8888/tests/docshell/test/bug369814.zip!/iframes.html",
+    "url" : "jar:http://localhost:8888/tests/docshell/test/bug369814.zip!/iframes.html",
     "pref" : false,
     "pokes" : { },
     "func" : loadErrorTest,
   },
   { "name" : "refresh.html loaded from non-jar type, pref enabled",
-    "url" : "jar:http://mochi.test:8888/tests/docshell/test/bug369814.zip!/refresh.html",
+    "url" : "jar:http://localhost:8888/tests/docshell/test/bug369814.zip!/refresh.html",
     "pref" : true,
     "pokes" : { },
     "func" : refreshTest,
   },
   { "name" : "iframes.html loaded from non-jar type, pref enabled",
-    "url" : "jar:http://mochi.test:8888/tests/docshell/test/bug369814.zip!/iframes.html",
+    "url" : "jar:http://localhost:8888/tests/docshell/test/bug369814.zip!/iframes.html",
     "pref" : true,
     "pokes" : { },
     "func" : iframeTest,
   },
   { "name" : "anchors.html loaded from non-jar type, pref enabled",
-    "url" : "jar:http://mochi.test:8888/tests/docshell/test/bug369814.zip!/anchors.html",
+    "url" : "jar:http://localhost:8888/tests/docshell/test/bug369814.zip!/anchors.html",
     "pref" : true,
     "pokes" : { },
     "func" : anchorTest,
   },
   { "name" : "iframes.html loaded from view-source jar type, pref disabled",
-    "url" : "jar:view-source:http://mochi.test:8888/tests/docshell/test/bug369814.jar!/iframes.html",
+    "url" : "jar:view-source:http://localhost:8888/tests/docshell/test/bug369814.jar!/iframes.html",
     "pref" : false,
     "pokes" : { },
     "func" : loadErrorTest
   },
   { "name" : "iframes.html loaded from view-source jar type, pref enabled",
-    "url" : "jar:view-source:http://mochi.test:8888/tests/docshell/test/bug369814.jar!/iframes.html",
+    "url" : "jar:view-source:http://localhost:8888/tests/docshell/test/bug369814.jar!/iframes.html",
     "pref" : true,
     "pokes" : { },
     "func" : loadErrorTest
diff --git a/docshell/test/test_bug529119-1.html b/docshell/test/test_bug529119-1.html
index a9e66b58515..994e89ef76b 100644
--- a/docshell/test/test_bug529119-1.html
+++ b/docshell/test/test_bug529119-1.html
@@ -10,7 +10,7 @@
 
 SimpleTest.waitForExplicitFinish();
 
-var workingURL = "http://mochi.test:8888/tests/docshell/test/bug529119-window.html";
+var workingURL = "http://localhost:8888/tests/docshell/test/bug529119-window.html";
 var faultyURL = "http://some-non-existent-domain-27489274c892748217cn2384.com/";
 
 var w = null;
diff --git a/docshell/test/test_bug529119-2.html b/docshell/test/test_bug529119-2.html
index b1f284f933f..d4b7b5379d9 100644
--- a/docshell/test/test_bug529119-2.html
+++ b/docshell/test/test_bug529119-2.html
@@ -10,7 +10,7 @@
 
 SimpleTest.waitForExplicitFinish();
 
-var workingURL = "http://mochi.test:8888/tests/docshell/test/bug529119-window.html";
+var workingURL = "http://localhost:8888/tests/docshell/test/bug529119-window.html";
 var faultyURL = "http://some-non-existent-domain-27489274c892748217cn2384.com/";
 
 var w = null;
diff --git a/docshell/test/test_bug94514.html b/docshell/test/test_bug94514.html
index 7a7a6b4e296..e1aab19b140 100644
--- a/docshell/test/test_bug94514.html
+++ b/docshell/test/test_bug94514.html
@@ -23,7 +23,7 @@ not get added to global history.
 
 SimpleTest.waitForExplicitFinish();
 
-var startURI = "http://mochi.test:8888/tests/docshell/test/bug94514-postpage.html";
+var startURI = "http://localhost:8888/tests/docshell/test/bug94514-postpage.html";
 var postedURI = startURI + "?posted=1";
 
 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
diff --git a/dom/tests/mochitest/ajax/offline/445544.cacheManifest b/dom/tests/mochitest/ajax/offline/445544.cacheManifest
index 1258eead2ff..0ffef2b9e22 100644
--- a/dom/tests/mochitest/ajax/offline/445544.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/445544.cacheManifest
@@ -1,7 +1,7 @@
 CACHE MANIFEST
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 test_bug445544.html
 445544_part1.html
diff --git a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest b/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest
index 2054737c898..9301bc5c9e8 100644
--- a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest
@@ -1,4 +1,4 @@
 # This doesn't start with the magic cache manifest line.
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
diff --git a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest b/dom/tests/mochitest/ajax/offline/fallback.cacheManifest
index 08c772b5b78..0872e0acb38 100644
--- a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/fallback.cacheManifest
@@ -1,7 +1,7 @@
 CACHE MANIFEST
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 FALLBACK:
 namespace1/ fallback.html
diff --git a/dom/tests/mochitest/ajax/offline/foreign2.html b/dom/tests/mochitest/ajax/offline/foreign2.html
index b0efa00ece6..7638418d90b 100644
--- a/dom/tests/mochitest/ajax/offline/foreign2.html
+++ b/dom/tests/mochitest/ajax/offline/foreign2.html
@@ -1,4 +1,4 @@
-
+
 
 Foreign page 2
 
@@ -15,13 +15,13 @@ function manifestUpdated()
     .getService(Components.interfaces.nsIApplicationCacheService);
 
   var foreign2cache = appCacheService.chooseApplicationCache(
-    "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.html");
+    "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.html");
 
   OfflineTest.ok(foreign2cache, "Foreign 2 cache present, chosen for foreign2.html");
-  OfflineTest.is(foreign2cache.groupID, "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest")
+  OfflineTest.is(foreign2cache.groupID, "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest")
 
   var foreign1cache = appCacheService.getActiveCache(
-    "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest");
+    "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest");
   OfflineTest.ok(foreign1cache, "Foreign 1 cache loaded");
   foreign1cache.discard();
 
@@ -35,15 +35,15 @@ function onLoaded()
     .getService(Components.interfaces.nsIApplicationCacheService);
 
   var foreign1cache = appCacheService.getActiveCache(
-    "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest");
+    "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest");
   OfflineTest.ok(foreign1cache, "Foreign 1 cache loaded");
 
   var foreign2cache = appCacheService.getActiveCache(
-    "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest");
+    "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest");
   OfflineTest.ok(!foreign2cache, "Foreign 2 cache not present");
 
   foreign1cache = appCacheService.chooseApplicationCache(
-    "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.html");
+    "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/foreign2.html");
   OfflineTest.ok(!foreign1cache, "foreign2.html not chosen from foreign1 cache");
 
   try
diff --git a/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs b/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
index 55326a4cf15..99eac6cea83 100644
--- a/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
+++ b/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
@@ -1,6 +1,6 @@
 function handleRequest(request, response)
 {
   response.setStatusLine(request.httpVersion, 307, "Moved temporarly");
-  response.setHeader("Location", "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/updating.cacheManifest");
+  response.setHeader("Location", "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/updating.cacheManifest");
   response.setHeader("Content-Type", "text/cache-manifest");
 }
diff --git a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest b/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest
index f2be3df1d0a..99635666efd 100644
--- a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest
@@ -1,7 +1,7 @@
 CACHE MANIFEST
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 # The following item doesn't exist, and will cause an update error.
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/doesntExist.html
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/doesntExist.html
diff --git a/dom/tests/mochitest/ajax/offline/obsolete.html b/dom/tests/mochitest/ajax/offline/obsolete.html
index 51dfb252460..23c31b4a7fe 100644
--- a/dom/tests/mochitest/ajax/offline/obsolete.html
+++ b/dom/tests/mochitest/ajax/offline/obsolete.html
@@ -50,7 +50,7 @@ applicationCache.oncached = function() {
 
   // Make the obsoleting.sjs return 404 NOT FOUND code
   var req = new XMLHttpRequest();
-  req.open("GET", "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/obsoletingManifest.sjs?state=");
+  req.open("GET", "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/obsoletingManifest.sjs?state=");
   var channel = req.channel
     .QueryInterface(Components.interfaces.nsIApplicationCacheChannel);
   channel.chooseApplicationCache = false;
diff --git a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest b/dom/tests/mochitest/ajax/offline/overlap.cacheManifest
index 6cb6702c58a..3b0b917d41b 100644
--- a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/overlap.cacheManifest
@@ -1,9 +1,9 @@
 CACHE MANIFEST
 
 CACHE:
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 NETWORK:
 bogus/specific/
diff --git a/dom/tests/mochitest/ajax/offline/redirects.sjs b/dom/tests/mochitest/ajax/offline/redirects.sjs
index aafd37e2b59..bbd3b561bdf 100644
--- a/dom/tests/mochitest/ajax/offline/redirects.sjs
+++ b/dom/tests/mochitest/ajax/offline/redirects.sjs
@@ -2,28 +2,28 @@ ver1manifest =
   "CACHE MANIFEST\n" +
   "# v1\n" +
   "\n" +
-  "http://mochi.test:8888/tests/SimpleTest/SimpleTest.js\n" +
-  "http://mochi.test:8888/MochiKit/packed.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
+  "http://localhost:8888/tests/SimpleTest/SimpleTest.js\n" +
+  "http://localhost:8888/MochiKit/packed.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
 
 ver2manifest =
   "CACHE MANIFEST\n" +
   "# v2\n" +
   "\n" +
-  "http://mochi.test:8888/tests/SimpleTest/SimpleTest.js\n" +
-  "http://mochi.test:8888/MochiKit/packed.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
+  "http://localhost:8888/tests/SimpleTest/SimpleTest.js\n" +
+  "http://localhost:8888/MochiKit/packed.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
 
 ver3manifest =
   "CACHE MANIFEST\n" +
   "# v3\n" +
   "\n" +
-  "http://mochi.test:8888/tests/SimpleTest/SimpleTest.js\n" +
-  "http://mochi.test:8888/MochiKit/packed.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
-  "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
+  "http://localhost:8888/tests/SimpleTest/SimpleTest.js\n" +
+  "http://localhost:8888/MochiKit/packed.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" +
+  "http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs";
 
 function handleRequest(request, response)
 {
diff --git a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest b/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest
index c20d81289f3..7699bad7751 100644
--- a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest
+++ b/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest
@@ -1,11 +1,11 @@
 CACHE MANIFEST
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 # The following item doesn't have the same scheme as the manifest, and
 # will be ignored.
-https://mochi.test:8888/MochiKit/packed.js
+https://localhost:8888/MochiKit/packed.js
 
 # The following item is not a valid URI and will be ignored
 bad:/uri/invalid
diff --git a/dom/tests/mochitest/ajax/offline/simpleManifest.notmanifest b/dom/tests/mochitest/ajax/offline/simpleManifest.notmanifest
index ae508d49155..af51becdbd1 100644
--- a/dom/tests/mochitest/ajax/offline/simpleManifest.notmanifest
+++ b/dom/tests/mochitest/ajax/offline/simpleManifest.notmanifest
@@ -1,12 +1,12 @@
 CACHE MANIFEST
 
-http://mochi.test:8888/tests/SimpleTest/SimpleTest.js
-http://mochi.test:8888/MochiKit/packed.js
-http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
+http://localhost:8888/tests/SimpleTest/SimpleTest.js
+http://localhost:8888/MochiKit/packed.js
+http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js
 
 # The following item doesn't have the same scheme as the manifest, and
 # will be ignored.
-https://mochi.test:8888/MochiKit/packed.js
+https://localhost:8888/MochiKit/packed.js
 
 # The following item is not a valid URI and will be ignored
 bad:/uri/invalid
diff --git a/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html b/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html
index 9947bb68b87..525afaa5d5a 100644
--- a/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html
+++ b/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html
@@ -1,4 +1,4 @@
-
+
 
 bad manifest magic
 
@@ -17,9 +17,9 @@ function handleError() {
 
   // These items are listed in the manifest, but the error should have
   // prevented them from being committed to the cache.
-  OfflineTest.checkCache("http://mochi.test:8888/tests/SimpleTest/SimpleTest.js", false);
-  OfflineTest.checkCache("http://mochi.test:8888/MochiKit/packed.js", false);
-  OfflineTest.checkCache("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js", false);
+  OfflineTest.checkCache("http://localhost:8888/tests/SimpleTest/SimpleTest.js", false);
+  OfflineTest.checkCache("http://localhost:8888/MochiKit/packed.js", false);
+  OfflineTest.checkCache("http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js", false);
 
   OfflineTest.teardown();
   OfflineTest.finish();
diff --git a/dom/tests/mochitest/ajax/offline/test_badManifestMime.html b/dom/tests/mochitest/ajax/offline/test_badManifestMime.html
index e1403378540..f2120c1f9b3 100644
--- a/dom/tests/mochitest/ajax/offline/test_badManifestMime.html
+++ b/dom/tests/mochitest/ajax/offline/test_badManifestMime.html
@@ -1,4 +1,4 @@
-
+
 
 bad manifest content type
 
@@ -17,9 +17,9 @@ function handleError() {
 
   // These items are listed in the manifest, but the error should have
   // prevented them from being committed to the cache.
-  OfflineTest.checkCache("http://mochi.test:8888/tests/SimpleTest/SimpleTest.js", false);
-  OfflineTest.checkCache("http://mochi.test:8888/MochiKit/packed.js", false);
-  OfflineTest.checkCache("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js", false);
+  OfflineTest.checkCache("http://localhost:8888/tests/SimpleTest/SimpleTest.js", false);
+  OfflineTest.checkCache("http://localhost:8888/MochiKit/packed.js", false);
+  OfflineTest.checkCache("http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js", false);
 
   OfflineTest.teardown();
   OfflineTest.finish();
diff --git a/dom/tests/mochitest/ajax/offline/test_bug460353.html b/dom/tests/mochitest/ajax/offline/test_bug460353.html
index 1825598fcd1..dd05ab7bef7 100644
--- a/dom/tests/mochitest/ajax/offline/test_bug460353.html
+++ b/dom/tests/mochitest/ajax/offline/test_bug460353.html
@@ -1,4 +1,4 @@
-
+
 
 Bug 460353
 
@@ -81,8 +81,8 @@ function finish()
             .newURI(window.location.href, null, null);
   pm.remove(uri.host, "offline-app");
 
-  cleanCache("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest");
-  cleanCache("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/updatingManifest.sjs");
+  cleanCache("http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest");
+  cleanCache("http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/updatingManifest.sjs");
 
   SimpleTest.finish();
 }
diff --git a/dom/tests/mochitest/ajax/offline/test_bug474696.html b/dom/tests/mochitest/ajax/offline/test_bug474696.html
index ad539ac8243..378b537cfdd 100644
--- a/dom/tests/mochitest/ajax/offline/test_bug474696.html
+++ b/dom/tests/mochitest/ajax/offline/test_bug474696.html
@@ -1,4 +1,4 @@
-
+
 
 Fallback on different origin redirect test
 
@@ -8,9 +8,10 @@
 
 
 
diff --git a/dom/tests/mochitest/bugs/bug346659-opener-echoer.html b/dom/tests/mochitest/bugs/bug346659-opener-echoer.html
index 49c04cc2402..441b3f66f51 100644
--- a/dom/tests/mochitest/bugs/bug346659-opener-echoer.html
+++ b/dom/tests/mochitest/bugs/bug346659-opener-echoer.html
@@ -1,6 +1,6 @@
 
diff --git a/dom/tests/mochitest/bugs/bug346659-opener.html b/dom/tests/mochitest/bugs/bug346659-opener.html
index 52facb07a22..208371acb87 100644
--- a/dom/tests/mochitest/bugs/bug346659-opener.html
+++ b/dom/tests/mochitest/bugs/bug346659-opener.html
@@ -8,7 +8,7 @@
       } else if ("write" in cmd) {
         window.testNum = cmd.write;
       }
-      window.opener.postMessage(s, "http://mochi.test:8888");
+      window.opener.postMessage(s, "http://localhost:8888/");
     }
     var childWin = window.open();
   
diff --git a/dom/tests/mochitest/bugs/bug346659-parent-echoer.html b/dom/tests/mochitest/bugs/bug346659-parent-echoer.html
index eefb44c70ea..83513efc2cf 100644
--- a/dom/tests/mochitest/bugs/bug346659-parent-echoer.html
+++ b/dom/tests/mochitest/bugs/bug346659-parent-echoer.html
@@ -1,5 +1,5 @@
 
diff --git a/dom/tests/mochitest/bugs/bug346659-parent.html b/dom/tests/mochitest/bugs/bug346659-parent.html
index 0fea91c6997..f0a86e7a516 100644
--- a/dom/tests/mochitest/bugs/bug346659-parent.html
+++ b/dom/tests/mochitest/bugs/bug346659-parent.html
@@ -10,7 +10,7 @@
       } else if ("write" in cmd) {
         window.testNum = cmd.write;
       }
-      window.opener.postMessage(s, "http://mochi.test:8888");
+      window.opener.postMessage(s, "http://localhost:8888/");
     }
   
   
diff --git a/dom/tests/mochitest/bugs/child_bug260264.html b/dom/tests/mochitest/bugs/child_bug260264.html
index 12cde3eb26f..19c4918014b 100644
--- a/dom/tests/mochitest/bugs/child_bug260264.html
+++ b/dom/tests/mochitest/bugs/child_bug260264.html
@@ -6,7 +6,7 @@
     
     
   
diff --git a/dom/tests/mochitest/bugs/file_bug504862.html b/dom/tests/mochitest/bugs/file_bug504862.html
index c1ce576f78d..c253c736e04 100644
--- a/dom/tests/mochitest/bugs/file_bug504862.html
+++ b/dom/tests/mochitest/bugs/file_bug504862.html
@@ -3,7 +3,7 @@
 
 

Move on, nothing to see here...

diff --git a/dom/tests/mochitest/bugs/iframe_bug463000.html b/dom/tests/mochitest/bugs/iframe_bug463000.html index d2b12f8fbae..0357868f85d 100644 --- a/dom/tests/mochitest/bugs/iframe_bug463000.html +++ b/dom/tests/mochitest/bugs/iframe_bug463000.html @@ -141,7 +141,7 @@ function run() prefBranch.clearUserPref("browser.privatebrowsing.keep_current_session"); - window.parent.postMessage(message, "http://mochi.test:8888"); + window.parent.postMessage(message, "http://localhost:8888"); } window.addEventListener("load", run, false); diff --git a/dom/tests/mochitest/bugs/test_bug132255.html b/dom/tests/mochitest/bugs/test_bug132255.html index f71ac98aeb0..559c007e003 100644 --- a/dom/tests/mochitest/bugs/test_bug132255.html +++ b/dom/tests/mochitest/bugs/test_bug132255.html @@ -8,7 +8,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=132255 - + Mozilla Bug 132255 diff --git a/dom/tests/mochitest/bugs/test_bug346659.html b/dom/tests/mochitest/bugs/test_bug346659.html index 77a7f7a14a1..8919f27020c 100644 --- a/dom/tests/mochitest/bugs/test_bug346659.html +++ b/dom/tests/mochitest/bugs/test_bug346659.html @@ -70,9 +70,9 @@ function handleCmd(evt) { win.childWin.x = testNum; try { if (win.childWin.opener == win) { - win.childWin.document.write(' diff --git a/dom/tests/mochitest/localstorage/interOriginFrame.js b/dom/tests/mochitest/localstorage/interOriginFrame.js index c24ddc07d04..ba8e2c422ea 100644 --- a/dom/tests/mochitest/localstorage/interOriginFrame.js +++ b/dom/tests/mochitest/localstorage/interOriginFrame.js @@ -1,6 +1,6 @@ function postMsg(message) { - parent.postMessage(message, "http://mochi.test:8888"); + parent.postMessage(message, "http://localhost:8888"); } window.addEventListener("message", onMessageReceived, false); diff --git a/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html b/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html index 6a97c8908c7..979a43e309a 100644 --- a/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html +++ b/dom/tests/mochitest/localstorage/test_localStorageKeyOrder.html @@ -54,7 +54,7 @@ function startTest() is(keyNames[i], localStorage.key(i), "key "+keyNames[i]+" on same index"); keyNamesStringify = "[\"" + keyNames.join("\",\"") + "\"]"; - frame.location = "http://mochi.test:8888/tests/dom/tests/mochitest/localstorage/frameOrder.html?" + + frame.location = "http://localhost:8888/tests/dom/tests/mochitest/localstorage/frameOrder.html?" + keyNamesStringify; } catch (ex) diff --git a/dom/tests/mochitest/sessionstorage/file_http.html b/dom/tests/mochitest/sessionstorage/file_http.html index e8614dd542c..4f151e87f35 100644 --- a/dom/tests/mochitest/sessionstorage/file_http.html +++ b/dom/tests/mochitest/sessionstorage/file_http.html @@ -6,7 +6,7 @@ window.addEventListener("message", onMessageReceived, false); function postMsg(msg) { - parent.postMessage(msg, "http://mochi.test:8888"); + parent.postMessage(msg, "http://localhost:8888"); } function onMessageReceived(event) diff --git a/dom/tests/mochitest/sessionstorage/file_https.html b/dom/tests/mochitest/sessionstorage/file_https.html index 915c54950ee..90c9427c083 100644 --- a/dom/tests/mochitest/sessionstorage/file_https.html +++ b/dom/tests/mochitest/sessionstorage/file_https.html @@ -5,7 +5,7 @@ function start() { sessionStorage.setItem("foo-https", "secure"); parent.postMessage(sessionStorage.getItem("foo-https"), - "http://mochi.test:8888"); + "http://localhost:8888"); } diff --git a/dom/tests/mochitest/sessionstorage/frameReplace.html b/dom/tests/mochitest/sessionstorage/frameReplace.html index bf5579c7185..344164e8798 100644 --- a/dom/tests/mochitest/sessionstorage/frameReplace.html +++ b/dom/tests/mochitest/sessionstorage/frameReplace.html @@ -9,17 +9,17 @@ var shell; function ok(a, message) { if (!a) - shell.postMessage("FAILURE: " + message, "http://mochi.test:8888"); + shell.postMessage("FAILURE: " + message, "http://localhost:8888"); else - shell.postMessage(message, "http://mochi.test:8888"); + shell.postMessage(message, "http://localhost:8888"); } function is(a, b, message) { if (a != b) - shell.postMessage("FAILURE: " + message + ", expected "+b+" got "+a, "http://mochi.test:8888"); + shell.postMessage("FAILURE: " + message + ", expected "+b+" got "+a, "http://localhost:8888"); else - shell.postMessage(message + ", expected "+b+" got "+a, "http://mochi.test:8888"); + shell.postMessage(message + ", expected "+b+" got "+a, "http://localhost:8888"); } function doTest() @@ -64,7 +64,7 @@ function doTest() break; } - shell.postMessage(action + "_done", "http://mochi.test:8888"); + shell.postMessage(action + "_done", "http://localhost:8888"); } diff --git a/dom/tests/mochitest/sessionstorage/interOriginSlave.js b/dom/tests/mochitest/sessionstorage/interOriginSlave.js index e3b3cdbb342..265daad470d 100644 --- a/dom/tests/mochitest/sessionstorage/interOriginSlave.js +++ b/dom/tests/mochitest/sessionstorage/interOriginSlave.js @@ -1,6 +1,6 @@ function postMsg(message) { - opener.postMessage(message, "http://mochi.test:8888"); + opener.postMessage(message, "http://localhost:8888"); } window.addEventListener("message", onMessageReceived, false); diff --git a/dom/tests/mochitest/sessionstorage/test_sessionStorageClone.html b/dom/tests/mochitest/sessionstorage/test_sessionStorageClone.html index ee1672d14fb..49f34a7664c 100644 --- a/dom/tests/mochitest/sessionstorage/test_sessionStorageClone.html +++ b/dom/tests/mochitest/sessionstorage/test_sessionStorageClone.html @@ -32,7 +32,7 @@ function doNextTest() case 1: // Open a window from the same origin and check data // are copied but not further modified on our side - slaveOrigin = "http://mochi.test:8888"; + slaveOrigin = "http://localhost:8888"; slave = window.open(slaveOrigin + slavePath + "frameEqual.html"); break; diff --git a/dom/tests/mochitest/whatwg/postMessage.jar b/dom/tests/mochitest/whatwg/postMessage.jar index d4ee4abc3d1..e7861c7da51 100644 Binary files a/dom/tests/mochitest/whatwg/postMessage.jar and b/dom/tests/mochitest/whatwg/postMessage.jar differ diff --git a/dom/tests/mochitest/whatwg/postMessage_closed_helper.html b/dom/tests/mochitest/whatwg/postMessage_closed_helper.html index 240ae57b892..cb4d26b592f 100644 --- a/dom/tests/mochitest/whatwg/postMessage_closed_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_closed_helper.html @@ -15,7 +15,7 @@ function setup() var query = location.search.substring(1); if (query == "opener") - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); } window.addEventListener("load", setup, false); diff --git a/dom/tests/mochitest/whatwg/postMessage_hash.html b/dom/tests/mochitest/whatwg/postMessage_hash.html index adb82aa5f97..3427cb43fe1 100644 --- a/dom/tests/mochitest/whatwg/postMessage_hash.html +++ b/dom/tests/mochitest/whatwg/postMessage_hash.html @@ -7,10 +7,10 @@ function receiveMessage(evt) { var response = "response-message"; - if (window.location.href !== "http://mochi.test:8888/tests/dom/tests/mochitest/whatwg/postMessage_hash.html#hash") + if (window.location.href !== "http://localhost:8888/tests/dom/tests/mochitest/whatwg/postMessage_hash.html#hash") response += " kid-at-wrong-uri(" + window.location.href + ")"; - if (evt.origin !== "http://mochi.test:8888") + if (evt.origin !== "http://localhost:8888") response += " wrong-origin(" + evt.origin + ")"; if (evt.source !== window.parent) response += " wrong-source"; @@ -19,7 +19,7 @@ function receiveMessage(evt) if (evt.lastEventId !== "") response += " wrong-lastEventId(" + evt.lastEventId + ")"; - window.parent.postMessage(response, "http://mochi.test:8888"); + window.parent.postMessage(response, "http://localhost:8888"); } window.addEventListener("message", receiveMessage, false); diff --git a/dom/tests/mochitest/whatwg/postMessage_helper.html b/dom/tests/mochitest/whatwg/postMessage_helper.html index 86e34e9d4a8..d11f609789d 100644 --- a/dom/tests/mochitest/whatwg/postMessage_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_helper.html @@ -47,7 +47,7 @@ else { response += " unexpected-message-to(" + window.location.href + ")"; - window.parent.postMessage(response, "http://mochi.test:8888"); + window.parent.postMessage(response, "http://localhost:8888"); return; } } @@ -57,7 +57,7 @@ var source = evt.source; try { - if (evt.origin != "http://mochi.test:8888") + if (evt.origin != "http://localhost:8888") response += " unexpected-origin(" + evt.origin + ")"; try @@ -82,7 +82,7 @@ function receiveCross(evt, response) { var source = evt.source; - if (evt.origin != "http://mochi.test:8888") + if (evt.origin != "http://localhost:8888") response += " unexpected-origin(" + evt.origin + ")"; try diff --git a/dom/tests/mochitest/whatwg/postMessage_idn_helper.html b/dom/tests/mochitest/whatwg/postMessage_idn_helper.html index c66932280c0..e87e5ca545d 100644 --- a/dom/tests/mochitest/whatwg/postMessage_idn_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_idn_helper.html @@ -9,7 +9,7 @@ if (!(evt instanceof MessageEvent)) response += " not-a-MessageEvent"; - if (evt.origin !== "http://mochi.test:8888") + if (evt.origin !== "http://localhost:8888") response += " wrong-sender-origin(" + evt.origin + ")"; if (evt.data !== "idn-message") response += " wrong-data(" + evt.data + ")"; diff --git a/dom/tests/mochitest/whatwg/postMessage_joined_helper.html b/dom/tests/mochitest/whatwg/postMessage_joined_helper.html index 83988d103a0..1c88223e023 100644 --- a/dom/tests/mochitest/whatwg/postMessage_joined_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_joined_helper.html @@ -14,7 +14,7 @@ http://sub1.test1.example.org/tests/dom/tests/mochitest/whatwg/postMessage_joine if (data === "subframe-test-finished") { target = window.parent; - providedOrigin = "http://mochi.test:8888"; + providedOrigin = "http://localhost:8888"; response = "test-passed"; } else if (data === "start-test") @@ -26,7 +26,7 @@ http://sub1.test1.example.org/tests/dom/tests/mochitest/whatwg/postMessage_joine else { target = window.parent; - providedOrigin = "http://mochi.test:8888"; + providedOrigin = "http://localhost:8888"; response = "not reached"; } @@ -51,7 +51,7 @@ http://sub1.test1.example.org/tests/dom/tests/mochitest/whatwg/postMessage_joine if (data == "subframe-test-finished") origin = "http://example.org"; else if (data === "start-test") - origin = "http://mochi.test:8888"; + origin = "http://localhost:8888"; else origin = "unreached"; diff --git a/dom/tests/mochitest/whatwg/postMessage_onOther.html b/dom/tests/mochitest/whatwg/postMessage_onOther.html index dd4cf370a18..8dfa4f06d99 100644 --- a/dom/tests/mochitest/whatwg/postMessage_onOther.html +++ b/dom/tests/mochitest/whatwg/postMessage_onOther.html @@ -50,7 +50,7 @@ function receiveSubDomain(evt) { - if (evt.origin !== "http://mochi.test:8888") + if (evt.origin !== "http://localhost:8888") { fail("wrong top-domain origin: " + evt.origin); return; @@ -90,7 +90,7 @@ function testSiblingPostMessage() { - window.parent.postMessage("test-finished", "http://mochi.test:8888"); + window.parent.postMessage("test-finished", "http://localhost:8888"); } function setup() diff --git a/dom/tests/mochitest/whatwg/postMessage_origin_helper.xhtml b/dom/tests/mochitest/whatwg/postMessage_origin_helper.xhtml index 9dd00c1ee29..0784980fb45 100644 --- a/dom/tests/mochitest/whatwg/postMessage_origin_helper.xhtml +++ b/dom/tests/mochitest/whatwg/postMessage_origin_helper.xhtml @@ -7,14 +7,14 @@ function receiveMessage(evt) { var response = "PASS"; - if (evt.origin !== "http://mochi.test:8888") + if (evt.origin !== "http://localhost:8888") response += " wrong-origin(" + evt.origin + ")"; if (evt.source !== window.parent) response += " wrong-source"; if (evt.data !== "PASS") response += " wrong-data(" + evt.data + ")"; - window.parent.postMessage(response, "http://mochi.test:8888"); + window.parent.postMessage(response, "http://localhost:8888"); } window.addEventListener("message", receiveMessage, false); diff --git a/dom/tests/mochitest/whatwg/postMessage_override_helper.html b/dom/tests/mochitest/whatwg/postMessage_override_helper.html index ffe5d628aa3..089d1876733 100644 --- a/dom/tests/mochitest/whatwg/postMessage_override_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_override_helper.html @@ -22,7 +22,7 @@ }; } - window.parent.postMessage(evt.data, "http://mochi.test:8888"); + window.parent.postMessage(evt.data, "http://localhost:8888"); } function setup() diff --git a/dom/tests/mochitest/whatwg/postMessage_userpass_helper.html b/dom/tests/mochitest/whatwg/postMessage_userpass_helper.html index fab25b59d7c..25309e6bcb0 100644 --- a/dom/tests/mochitest/whatwg/postMessage_userpass_helper.html +++ b/dom/tests/mochitest/whatwg/postMessage_userpass_helper.html @@ -3,12 +3,11 @@ Username/password page for postMessage tests - + Mozilla Bug 430251

-
@@ -27,7 +27,7 @@ SimpleTest.waitForExplicitFinish();
 
 function receiveMessage(evt)
 {
-  is(evt.origin, "http://mochi.test:8888", "wrong sender");
+  is(evt.origin, "http://example.com", "wrong sender");
   ok(evt.source === window.frames.kid, "wrong source");
 
   is(evt.data, "finish-test", "wrong data");
@@ -40,7 +40,7 @@ window.addEventListener("message", receiveMessage, false);
 
 function run()
 {
-  window.frames.kid.postMessage("start-test", "http://mochi.test:8888");
+  window.frames.kid.postMessage("start-test", "http://example.com");
 }
 
 window.addEventListener("load", run, false);
diff --git a/dom/tests/mochitest/whatwg/test_postMessage_origin.xhtml b/dom/tests/mochitest/whatwg/test_postMessage_origin.xhtml
index 661c38016d0..854eda53113 100644
--- a/dom/tests/mochitest/whatwg/test_postMessage_origin.xhtml
+++ b/dom/tests/mochitest/whatwg/test_postMessage_origin.xhtml
@@ -15,13 +15,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=417075
 

- - @@ -30,7 +30,7 @@ function atLoad() { try { - sameDomain.postMessage("foo", "http://mochi.test:8888"); + sameDomain.postMessage("foo", "http://localhost:8888"); ok(true, "should not have thrown for same-domain exception"); } catch (e) diff --git a/extensions/cookie/test/file_domain_inner.html b/extensions/cookie/test/file_domain_inner.html index 1a05c45f801..a34913bae4b 100644 --- a/extensions/cookie/test/file_domain_inner.html +++ b/extensions/cookie/test/file_domain_inner.html @@ -6,7 +6,7 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); diff --git a/extensions/cookie/test/file_domain_inner_inner.html b/extensions/cookie/test/file_domain_inner_inner.html index 7bc0e44a98b..f36b7f5c17a 100644 --- a/extensions/cookie/test/file_domain_inner_inner.html +++ b/extensions/cookie/test/file_domain_inner_inner.html @@ -6,7 +6,7 @@ document.cookie = "can2=has2"; // send a message to our test document, to say we're done loading - window.parent.opener.postMessage("message", "http://mochi.test:8888"); + window.parent.opener.postMessage("message", "http://localhost:8888"); diff --git a/extensions/cookie/test/file_image_inner.html b/extensions/cookie/test/file_image_inner.html index aada82d71af..7dceeb4978d 100644 --- a/extensions/cookie/test/file_image_inner.html +++ b/extensions/cookie/test/file_image_inner.html @@ -6,7 +6,7 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); diff --git a/extensions/cookie/test/file_image_inner_inner.html b/extensions/cookie/test/file_image_inner_inner.html index 1989b53de72..fe2cb1f1fd9 100644 --- a/extensions/cookie/test/file_image_inner_inner.html +++ b/extensions/cookie/test/file_image_inner_inner.html @@ -9,7 +9,7 @@ document.cookie = "can2=has2"; // send a message to our test document, to say we're done loading - window.parent.opener.postMessage("message", "http://mochi.test:8888"); + window.parent.opener.postMessage("message", "http://localhost:8888"); } diff --git a/extensions/cookie/test/file_loadflags_inner.html b/extensions/cookie/test/file_loadflags_inner.html index 7a2df56081e..019d5d84d6d 100644 --- a/extensions/cookie/test/file_loadflags_inner.html +++ b/extensions/cookie/test/file_loadflags_inner.html @@ -7,7 +7,7 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("f_lf_i msg data", "http://mochi.test:8888"); + window.opener.postMessage("f_lf_i msg data", "http://localhost:8888"); } diff --git a/extensions/cookie/test/file_localhost_inner.html b/extensions/cookie/test/file_localhost_inner.html index db9917f0009..dca27f08a71 100644 --- a/extensions/cookie/test/file_localhost_inner.html +++ b/extensions/cookie/test/file_localhost_inner.html @@ -6,9 +6,9 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); - + diff --git a/extensions/cookie/test/file_loopback_inner.html b/extensions/cookie/test/file_loopback_inner.html index e6c115c50b7..0b72126f25f 100644 --- a/extensions/cookie/test/file_loopback_inner.html +++ b/extensions/cookie/test/file_loopback_inner.html @@ -6,7 +6,7 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); diff --git a/extensions/cookie/test/file_subdomain_inner.html b/extensions/cookie/test/file_subdomain_inner.html index 5f608b81100..084fa5af162 100644 --- a/extensions/cookie/test/file_subdomain_inner.html +++ b/extensions/cookie/test/file_subdomain_inner.html @@ -6,7 +6,7 @@ document.cookie = "can=has"; // send a message to our test document, to say we're done loading - window.opener.postMessage("message", "http://mochi.test:8888"); + window.opener.postMessage("message", "http://localhost:8888"); diff --git a/extensions/cookie/test/test_same_base_domain_4.html b/extensions/cookie/test/test_same_base_domain_4.html index c7433365411..3063f17a3aa 100644 --- a/extensions/cookie/test/test_same_base_domain_4.html +++ b/extensions/cookie/test/test_same_base_domain_4.html @@ -6,7 +6,7 @@ - +

 
diff --git a/netwerk/test/httpserver/httpd.js b/netwerk/test/httpserver/httpd.js
index 4d414f2c2fb..41ae8465d27 100644
--- a/netwerk/test/httpserver/httpd.js
+++ b/netwerk/test/httpserver/httpd.js
@@ -501,11 +501,6 @@ nsHttpServer.prototype =
   // see nsIHttpServer.start
   //
   start: function(port)
-  {
-    this._start(port, "localhost")
-  },
-
-  _start: function(port, host)
   {
     if (this._socket)
       throw Cr.NS_ERROR_ALREADY_INITIALIZED;
@@ -513,8 +508,6 @@ nsHttpServer.prototype =
     this._port = port;
     this._doQuit = this._socketClosed = false;
 
-    this._host = host;
-
     // The listen queue needs to be long enough to handle
     // network.http.max-connections-per-server concurrent connections,
     // plus a safety margin in case some other process is talking to
@@ -525,18 +518,13 @@ nsHttpServer.prototype =
 
     try
     {
-      var loopback = true;
-      if (this._host != "127.0.0.1" && this._host != "localhost") {
-        var loopback = false;
-      }
-
       var socket = new ServerSocket(this._port,
-                                    loopback, // true = localhost, false = everybody
+                                    true, // loopback only
                                     maxConnections);
       dumpn(">>> listening on port " + socket.port + ", " + maxConnections +
             " pending connections");
       socket.asyncListen(this);
-      this._identity._initialize(port, host, true);
+      this._identity._initialize(port, true);
       this._socket = socket;
     }
     catch (e)
@@ -933,7 +921,7 @@ ServerIdentity.prototype =
       // Always keep at least one identity in existence at any time, unless
       // we're in the process of shutting down (the last condition above).
       this._primaryPort = -1;
-      this._initialize(this._defaultPort, host, false);
+      this._initialize(this._defaultPort, false);
     }
 
     return present;
@@ -999,17 +987,16 @@ ServerIdentity.prototype =
    * Initializes the primary name for the corresponding server, based on the
    * provided port number.
    */
-  _initialize: function(port, host, addSecondaryDefault)
+  _initialize: function(port, addSecondaryDefault)
   {
-    this._host = host;
     if (this._primaryPort !== -1)
-      this.add("http", host, port);
+      this.add("http", "localhost", port);
     else
       this.setPrimary("http", "localhost", port);
     this._defaultPort = port;
 
     // Only add this if we're being called at server startup
-    if (addSecondaryDefault && host != "127.0.0.1")
+    if (addSecondaryDefault)
       this.add("http", "127.0.0.1", port);
   },
 
@@ -1020,22 +1007,20 @@ ServerIdentity.prototype =
    */
   _teardown: function()
   {
-    if (this._host != "127.0.0.1") {
-      // Not the default primary location, nothing special to do here
-      this.remove("http", "127.0.0.1", this._defaultPort);
-    }
-    
+    // Not the default primary location, nothing special to do here
+    this.remove("http", "127.0.0.1", this._defaultPort);
+
     // This is a *very* tricky bit of reasoning here; make absolutely sure the
     // tests for this code pass before you commit changes to it.
     if (this._primaryScheme == "http" &&
-        this._primaryHost == this._host &&
+        this._primaryHost == "localhost" &&
         this._primaryPort == this._defaultPort)
     {
       // Make sure we don't trigger the readding logic in .remove(), then remove
       // the default location.
       var port = this._defaultPort;
       this._defaultPort = -1;
-      this.remove("http", this._host, port);
+      this.remove("http", "localhost", port);
 
       // Ensure a server start triggers the setPrimary() path in ._initialize()
       this._primaryPort = -1;
@@ -1043,7 +1028,7 @@ ServerIdentity.prototype =
     else
     {
       // No reason not to remove directly as it's not our primary location
-      this.remove("http", this._host, this._defaultPort);
+      this.remove("http", "localhost", this._defaultPort);
     }
   },
 
diff --git a/security/manager/ssl/tests/mochitest/bugs/test_bug480619.html b/security/manager/ssl/tests/mochitest/bugs/test_bug480619.html
index 1e759b2d89a..a5695364d10 100644
--- a/security/manager/ssl/tests/mochitest/bugs/test_bug480619.html
+++ b/security/manager/ssl/tests/mochitest/bugs/test_bug480619.html
@@ -52,7 +52,7 @@ var sink = {
   }
 };
 
-var transport = socketTransportService.createTransport(["ssl"], 1, "127.0.0.1", 4443, null);
+var transport = socketTransportService.createTransport(["ssl"], 1, "localhost", 4443, null);
 
 transport.setEventSink(sink, currentThread);
 
diff --git a/security/manager/ssl/tests/mochitest/mixedcontent/mixedContentTest.js b/security/manager/ssl/tests/mochitest/mixedcontent/mixedContentTest.js
index 327a388f102..888b56c2936 100644
--- a/security/manager/ssl/tests/mochitest/mixedcontent/mixedContentTest.js
+++ b/security/manager/ssl/tests/mochitest/mixedcontent/mixedContentTest.js
@@ -107,7 +107,7 @@ function onMessageReceived(event)
 
 function postMsg(message)
 {
-  opener.postMessage(message, "http://mochi.test:8888");
+  opener.postMessage(message, "http://localhost:8888");
 }
 
 function finish()
diff --git a/testing/mochitest/runtests.py.in b/testing/mochitest/runtests.py.in
index e8f08a67cfd..a59eeb20f51 100644
--- a/testing/mochitest/runtests.py.in
+++ b/testing/mochitest/runtests.py.in
@@ -226,7 +226,6 @@ class MochitestServer:
     self._xrePath = options.xrePath
     self._profileDir = profileDir
     self.shutdownURL = shutdownURL
-    self.webServer = "127.0.0.1"
 
   def start(self):
     "Run the Mochitest server, returning the process ID of the server."
@@ -239,7 +238,6 @@ class MochitestServer:
     args = ["-g", self._xrePath,
             "-v", "170",
             "-f", "./" + "httpd.js",
-            '-e', 'const _SERVER_ADDR="' + self.webServer + '";',
             "-f", "./" + "server.js"]
 
     xpcshell = os.path.join(self._utilityPath,
@@ -278,7 +276,7 @@ class MochitestServer:
 
 class Mochitest(object):
   # Path to the test script on the server
-  TEST_SERVER_HOST = "mochi.test:8888"
+  TEST_SERVER_HOST = "localhost:8888"
   TEST_PATH = "/tests/"
   CHROME_PATH = "/redirect.html";
   A11Y_PATH = "/redirect-a11y.html"
diff --git a/testing/mochitest/server.js b/testing/mochitest/server.js
index 46fc9873e19..e274b61623a 100644
--- a/testing/mochitest/server.js
+++ b/testing/mochitest/server.js
@@ -50,8 +50,6 @@ let (ios = Cc["@mozilla.org/network/io-service;1"]
 }
 
 const SERVER_PORT = 8888;
-var gServerAddress = "127.0.0.1";
-
 var server; // for use in the shutdown handler, if necessary
 
 //
@@ -152,29 +150,7 @@ function runServer()
 {
   serverBasePath = __LOCATION__.parent;
   server = createMochitestServer(serverBasePath);
-
-  //verify server address
-  //if a.b.c.d or 'localhost'
-  if (typeof(_SERVER_ADDR) != "undefined") {
-    if (_SERVER_ADDR == "localhost") {
-      gServerAddress = _SERVER_ADDR;      
-    } else {
-      var quads = _SERVER_ADDR.split('.');
-      if (quads.length == 4) {
-        var invalid = false;
-        for (var i=0; i < 4; i++) {
-          if (quads[i] < 0 || quads[i] > 255)
-            invalid = true;
-        }
-        if (!invalid)
-          gServerAddress = _SERVER_ADDR;
-        else
-          dumpn("WARNING: invalid server address ('" + _SERVER_ADDR + "'), using localhost");
-      }
-    }
-  }
-
-  server._start(SERVER_PORT, gServerAddress);
+  server.start(SERVER_PORT);
 
   // touch a file in the profile directory to indicate we're alive
   var foStream = Cc["@mozilla.org/network/file-output-stream;1"]
diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py
index 6ee15f7d1a1..77ee849a52d 100644
--- a/testing/xpcshell/runxpcshelltests.py
+++ b/testing/xpcshell/runxpcshelltests.py
@@ -215,7 +215,6 @@ class XPCShellTests(object):
       cmdT = ", ".join(['"' + f.replace('\\', '/') + '"'
                  for f in testTailFiles])
       cmdH = xpcsCmd + \
-                ['-e', 'const _SERVER_ADDR = "localhost";'] + \
                 ['-e', 'const _HEAD_FILES = [%s];' % cmdH] + \
                 ['-e', 'const _TAIL_FILES = [%s];' % cmdT]
 
diff --git a/toolkit/components/microformats/tests/test_Microformats_hCalendar.html b/toolkit/components/microformats/tests/test_Microformats_hCalendar.html
index e25b52fbbe0..59c438f859f 100644
--- a/toolkit/components/microformats/tests/test_Microformats_hCalendar.html
+++ b/toolkit/components/microformats/tests/test_Microformats_hCalendar.html
@@ -230,7 +230,7 @@ function test_hCard() {
   is(hcalendar.location, "Argent Hotel, San Francisco, CA", "05-calendar-simple - location");
 
   hcalendar = new hCalendar(document.getElementById("06-component-vevent-uri-relative"));
-  is(hcalendar.url, "http://mochi.test:8888/squidlist/calendar/12279/2006/1/15", "06-component-vevent-uri-relative - url");
+  is(hcalendar.url, "http://localhost:8888/squidlist/calendar/12279/2006/1/15", "06-component-vevent-uri-relative - url");
   is(hcalendar.summary, "Bad Movie Night - Gigli (blame mike spiegelman)", "06-component-vevent-uri-relative - summary");
   is(hcalendar.dtstart, "2006-01-15T00:00:00", "06-component-vevent-uri-relative - dtstart");
 
diff --git a/toolkit/components/microformats/tests/test_Microformats_hCard.html b/toolkit/components/microformats/tests/test_Microformats_hCard.html
index edaf3785a00..6edd2d16f35 100644
--- a/toolkit/components/microformats/tests/test_Microformats_hCard.html
+++ b/toolkit/components/microformats/tests/test_Microformats_hCard.html
@@ -88,13 +88,13 @@
   

John Doe - +

@@ -132,7 +132,7 @@

John Doe - +

@@ -143,7 +143,7 @@

- +

@@ -383,15 +383,15 @@
W3C
- W3C + W3C
W3C
- World Wide Web Consortium
- + W3C @@ -448,7 +448,7 @@ my website! - Joe Public + Joe Public
@@ -496,7 +496,7 @@ C1a C2a - C4 + C4 @@ -534,11 +534,11 @@
Ryan King - My other hCard + My other hCard
Ryan King - my other hcard + my other hcard
Ryan King @@ -691,7 +691,7 @@ function test_hCard() { is(hcard.n["given-name"][0], "John", "07-relative-url - given-name"); is(hcard.n["family-name"][0], "Doe", "07-relative-url - family-name"); // is(hcard.url[0], "http://microformats.org/home/blah", "07-relative-url - url"); - is(hcard.url, "http://mochi.test:8888/home/blah", "07-relative-url - url"); + is(hcard.url, "http://localhost:8888/home/blah", "07-relative-url - url"); hcard = new hCard(document.getElementById("11-multiple-urls")); @@ -706,15 +706,15 @@ function test_hCard() { is(hcard.fn, "John Doe", "12-img-src-url - fn"); is(hcard.n["given-name"][0], "John", "12-img-src-url - given-name"); is(hcard.n["family-name"][0], "Doe", "12-img-src-url - family-name"); - is(hcard.url[0], "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "12-img-src-url - url"); + is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/picture.png", "12-img-src-url - url"); hcard = new hCard(document.getElementById("13-photo-logo")); is(hcard.fn, "John Doe", "13-photo-logo - fn"); is(hcard.n["given-name"][0], "John", "13-photo-logo - given-name"); is(hcard.n["family-name"][0], "Doe", "13-photo-logo - family-name"); - is(hcard.logo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - logo"); - is(hcard.photo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - photo"); + is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - logo"); + is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - photo"); hcard = new hCard(document.getElementById("14-img-src-data-url")); @@ -757,9 +757,9 @@ function test_hCard() { is(hcard.fn, "John Doe", "18-object-data-http-uri - fn"); is(hcard.n["given-name"][0], "John", "18-object-data-http-uri - given-name"); is(hcard.n["family-name"][0], "Doe", "18-object-data-http-uri - family-name"); - is(hcard.logo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - logo"); - is(hcard.photo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - photo"); - is(hcard.url, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - url"); + is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - logo"); + is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - photo"); + is(hcard.url, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - url"); hcard = new hCard(document.getElementById("19-object-data-data-uri")); @@ -775,8 +775,8 @@ function test_hCard() { is(hcard.fn, "John Doe", "20-image-alt - fn"); is(hcard.n["given-name"][0], "John", "20-image-alt - given-name"); is(hcard.n["family-name"][0], "Doe", "20-image-alt - family-name"); - is(hcard.logo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "20-image-alt - logo"); - is(hcard.photo, "http://mochi.test:8888/tests/browser/microformats/test/picture.png", "20-image-alt - photo"); + is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "20-image-alt - logo"); + is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "20-image-alt - photo"); hcard = new hCard(document.getElementById("21-tel")); @@ -1148,16 +1148,16 @@ function test_hCard() { is(hcard.fn, "Ryan King", "38-uid.2 - fn"); is(hcard.n["given-name"][0], "Ryan", "38-uid.2 - given-name"); is(hcard.n["family-name"][0], "King", "38-uid.2 - family-name"); - is(hcard.uid, "http://mochi.test:8888/tests/browser/microformats/test/contact/", "38-uid.2 - uid"); - is(hcard.url[0], "http://mochi.test:8888/tests/browser/microformats/test/contact/", "38-uid.2 - url"); + is(hcard.uid, "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.2 - uid"); + is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.2 - url"); hcard = new hCard(document.getElementById("38-uid.3")); is(hcard.fn, "Ryan King", "38-uid.3 - fn"); is(hcard.n["given-name"][0], "Ryan", "38-uid.3 - given-name"); is(hcard.n["family-name"][0], "King", "38-uid.3 - family-name"); - is(hcard.uid, "http://mochi.test:8888/tests/browser/microformats/test/contact/", "38-uid.3 - uid"); - is(hcard.url[0], "http://mochi.test:8888/tests/browser/microformats/test/contact/", "38-uid.3 - url"); + is(hcard.uid, "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.3 - uid"); + is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.3 - url"); hcard = new hCard(document.getElementById("38-uid.4")); diff --git a/toolkit/components/passwordmgr/test/pwmgr_common.js b/toolkit/components/passwordmgr/test/pwmgr_common.js index df843fba949..a2df1a3aef2 100644 --- a/toolkit/components/passwordmgr/test/pwmgr_common.js +++ b/toolkit/components/passwordmgr/test/pwmgr_common.js @@ -153,7 +153,7 @@ function commonInit() { // Add a login that's used in multiple tests var login = Components.classes["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Components.interfaces.nsILoginInfo); - login.init("http://mochi.test:8888", "http://mochi.test:8888", null, + login.init("http://localhost:8888", "http://localhost:8888", null, "testuser", "testpass", "uname", "pword"); pwmgr.addLogin(login); diff --git a/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html b/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html index 400634aee2b..8f223604d33 100644 --- a/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html +++ b/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html @@ -102,52 +102,52 @@ ok(nsLoginInfo != null, "nsLoginInfo constructor"); // login0 has no username, so should be filtered out from the autocomplete list. var login0 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete:8888", null, + "http://localhost:8888", "http://autocomplete:8888", null, "", "user0pass", "", "pword"); var login1 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete:8888", null, + "http://localhost:8888", "http://autocomplete:8888", null, "tempuser1", "temppass1", "uname", "pword"); var login2 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete:8888", null, + "http://localhost:8888", "http://autocomplete:8888", null, "testuser2", "testpass2", "uname", "pword"); var login3 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete:8888", null, + "http://localhost:8888", "http://autocomplete:8888", null, "testuser3", "testpass3", "uname", "pword"); var login4 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete:8888", null, + "http://localhost:8888", "http://autocomplete:8888", null, "zzzuser4", "zzzpass4", "uname", "pword"); // login 5 only used in the single-user forms var login5 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete2", null, + "http://localhost:8888", "http://autocomplete2", null, "singleuser5", "singlepass5", "uname", "pword"); var login6A = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete3", null, + "http://localhost:8888", "http://autocomplete3", null, "form7user1", "form7pass1", "uname", "pword"); var login6B = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete3", null, + "http://localhost:8888", "http://autocomplete3", null, "form7user2", "form7pass2", "uname", "pword"); var login7 = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete4", null, + "http://localhost:8888", "http://autocomplete4", null, "form8user", "form8pass", "uname", "pword"); var login8A = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete5", null, + "http://localhost:8888", "http://autocomplete5", null, "form9userAB", "form9pass", "uname", "pword"); var login8B = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete5", null, + "http://localhost:8888", "http://autocomplete5", null, "form9userAAB", "form9pass", "uname", "pword"); // login8C is added later var login8C = new nsLoginInfo( - "http://mochi.test:8888", "http://autocomplete5", null, + "http://localhost:8888", "http://autocomplete5", null, "form9userAABz", "form9pass", "uname", "pword"); // try/catch in case someone runs the tests manually, twice. try { @@ -396,7 +396,7 @@ function runTest(testNum) { // Delete the first entry (of 4), "tempuser1" doKey("down"); var numLogins; - numLogins = pwmgr.countLogins("http://mochi.test:8888", "http://autocomplete:8888", null); + numLogins = pwmgr.countLogins("http://localhost:8888", "http://autocomplete:8888", null); is(numLogins, 5, "Correct number of logins before deleting one"); // On OS X, shift-backspace and shift-delete work, just delete does not. @@ -404,7 +404,7 @@ function runTest(testNum) { doKey("delete", shiftModifier); checkACForm("", ""); - numLogins = pwmgr.countLogins("http://mochi.test:8888", "http://autocomplete:8888", null); + numLogins = pwmgr.countLogins("http://localhost:8888", "http://autocomplete:8888", null); is(numLogins, 4, "Correct number of logins after deleting one"); doKey("return"); checkACForm("testuser2", "testpass2"); @@ -431,7 +431,7 @@ function runTest(testNum) { doKey("down"); doKey("delete", shiftModifier); checkACForm("", ""); - numLogins = pwmgr.countLogins("http://mochi.test:8888", "http://autocomplete:8888", null); + numLogins = pwmgr.countLogins("http://localhost:8888", "http://autocomplete:8888", null); is(numLogins, 3, "Correct number of logins after deleting one"); doKey("return"); checkACForm("zzzuser4", "zzzpass4"); @@ -458,7 +458,7 @@ function runTest(testNum) { doKey("down"); doKey("delete", shiftModifier); checkACForm("", ""); - numLogins = pwmgr.countLogins("http://mochi.test:8888", "http://autocomplete:8888", null); + numLogins = pwmgr.countLogins("http://localhost:8888", "http://autocomplete:8888", null); is(numLogins, 2, "Correct number of logins after deleting one"); doKey("return"); checkACForm("testuser2", "testpass2"); @@ -485,7 +485,7 @@ function runTest(testNum) { doKey("delete", shiftModifier); //doKey("return"); checkACForm("", ""); - numLogins = pwmgr.countLogins("http://mochi.test:8888", "http://autocomplete:8888", null); + numLogins = pwmgr.countLogins("http://localhost:8888", "http://autocomplete:8888", null); is(numLogins, 1, "Correct number of logins after deleting one"); pwmgr.removeLogin(login0); // remove the login that's not shown in the list. testNum = 99; diff --git a/toolkit/components/passwordmgr/test/test_basic_form_observer_foundLogins.html b/toolkit/components/passwordmgr/test/test_basic_form_observer_foundLogins.html index 244f1dfab4a..e16602b7f9f 100644 --- a/toolkit/components/passwordmgr/test/test_basic_form_observer_foundLogins.html +++ b/toolkit/components/passwordmgr/test/test_basic_form_observer_foundLogins.html @@ -79,10 +79,10 @@ var nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1", Components.interfaces.nsILoginInfo); var login1 = new nsLoginInfo(); -login1.init("http://mochi.test:8888", "http://www.example.com", null, +login1.init("http://localhost:8888", "http://www.example.com", null, "testuser1", "testpass1", "uname", "pword"); var login2 = new nsLoginInfo(); -login2.init("http://mochi.test:8888", "http://www.example.com", null, +login2.init("http://localhost:8888", "http://www.example.com", null, "testuser2", "testpass2", "uname", "pword"); var pwmgr = Cc["@mozilla.org/login-manager;1"]. getService(Ci.nsILoginManager); diff --git a/toolkit/components/passwordmgr/test/test_basic_form_pwonly.html b/toolkit/components/passwordmgr/test/test_basic_form_pwonly.html index f4937f3e7f9..e74559bbe6e 100644 --- a/toolkit/components/passwordmgr/test/test_basic_form_pwonly.html +++ b/toolkit/components/passwordmgr/test/test_basic_form_pwonly.html @@ -208,10 +208,10 @@ ok(nsLoginInfo != null, "nsLoginInfo constructor"); pwlogin1 = new nsLoginInfo(); pwlogin2 = new nsLoginInfo(); -pwlogin1.init("http://mochi.test:8888", "http://localhost:1111", null, +pwlogin1.init("http://localhost:8888", "http://localhost:1111", null, "", "1234", "uname", "pword"); -pwlogin2.init("http://mochi.test:8888", "http://mochi.test:8888", null, +pwlogin2.init("http://localhost:8888", "http://localhost:8888", null, "", "1234", "uname", "pword"); try { diff --git a/toolkit/components/passwordmgr/test/test_bug_360493_1.html b/toolkit/components/passwordmgr/test/test_bug_360493_1.html index e409c690964..39e74a421e3 100644 --- a/toolkit/components/passwordmgr/test/test_bug_360493_1.html +++ b/toolkit/components/passwordmgr/test/test_bug_360493_1.html @@ -22,7 +22,7 @@ Login Manager test: 360493 -
+ @@ -31,7 +31,7 @@ Login Manager test: 360493
-
+ @@ -40,7 +40,7 @@ Login Manager test: 360493
-
+ diff --git a/toolkit/components/passwordmgr/test/test_bug_427033.html b/toolkit/components/passwordmgr/test/test_bug_427033.html index f914f24c0b5..a546c316694 100644 --- a/toolkit/components/passwordmgr/test/test_bug_427033.html +++ b/toolkit/components/passwordmgr/test/test_bug_427033.html @@ -55,7 +55,7 @@ var jslogin = Components.classes["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Components.interfaces.nsILoginInfo); ok(jslogin != null, "create a login"); -jslogin.init("http://mochi.test:8888", "javascript:", null, +jslogin.init("http://localhost:8888", "javascript:", null, "jsuser", "jspass123", "uname", "pword"); try { diff --git a/toolkit/components/passwordmgr/test/test_bug_444968.html b/toolkit/components/passwordmgr/test/test_bug_444968.html index 112edee55e6..e579c3991ea 100644 --- a/toolkit/components/passwordmgr/test/test_bug_444968.html +++ b/toolkit/components/passwordmgr/test/test_bug_444968.html @@ -90,16 +90,16 @@ login2B = Cc["@mozilla.org/login-manager/loginInfo;1"]. login2C = Cc["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Ci.nsILoginInfo); -login1A.init("http://mochi.test:8888", "http://bug444968-1", null, +login1A.init("http://localhost:8888", "http://bug444968-1", null, "testuser1A", "testpass1A", "", ""); -login1B.init("http://mochi.test:8888", "http://bug444968-1", null, +login1B.init("http://localhost:8888", "http://bug444968-1", null, "", "testpass1B", "", ""); -login2A.init("http://mochi.test:8888", "http://bug444968-2", null, +login2A.init("http://localhost:8888", "http://bug444968-2", null, "testuser2A", "testpass2A", "", ""); -login2B.init("http://mochi.test:8888", "http://bug444968-2", null, +login2B.init("http://localhost:8888", "http://bug444968-2", null, "", "testpass2B", "", ""); -login2C.init("http://mochi.test:8888", "http://bug444968-2", null, +login2C.init("http://localhost:8888", "http://bug444968-2", null, "testuser2C", "testpass2C", "", ""); pwmgr.addLogin(login1A); diff --git a/toolkit/components/passwordmgr/test/test_notifications.html b/toolkit/components/passwordmgr/test/test_notifications.html index 3c2162661d8..ee01381017e 100644 --- a/toolkit/components/passwordmgr/test/test_notifications.html +++ b/toolkit/components/passwordmgr/test/test_notifications.html @@ -112,7 +112,7 @@ function checkTest() { is(gotPass, "notifyp1", "Checking submitted password"); bar = getNotificationBar(notifyBox, "password-save"); ok(bar, "got notification bar"); - is(true, pwmgr.getLoginSavingEnabled("http://mochi.test:8888"), + is(true, pwmgr.getLoginSavingEnabled("http://localhost:8888"), "Checking for login saving enabled"); clickNotificationButton(bar, kNeverButton); break; @@ -123,10 +123,10 @@ function checkTest() { is(gotPass, "notifyp1", "Checking submitted password"); bar = getNotificationBar(notifyBox, "password-save"); ok(!bar, "checking for no notification bar"); - is(false, pwmgr.getLoginSavingEnabled("http://mochi.test:8888"), + is(false, pwmgr.getLoginSavingEnabled("http://localhost:8888"), "Checking for login saving disabled"); // reenable login saving. - pwmgr.setLoginSavingEnabled("http://mochi.test:8888", true); + pwmgr.setLoginSavingEnabled("http://localhost:8888", true); break; case 4: @@ -387,13 +387,13 @@ ok(prefs != null, "Access pref branch"); var nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1", Ci.nsILoginInfo, "init"); -var login1 = new nsLoginInfo("http://mochi.test:8888", "http://mochi.test:8888", null, +var login1 = new nsLoginInfo("http://localhost:8888", "http://localhost:8888", null, "notifyu1", "notifyp1", "user", "pass"); -var login2 = new nsLoginInfo("http://mochi.test:8888", "http://mochi.test:8888", null, +var login2 = new nsLoginInfo("http://localhost:8888", "http://localhost:8888", null, "", "notifyp1", "", "pass"); -var login1B = new nsLoginInfo("http://mochi.test:8888", "http://mochi.test:8888", null, +var login1B = new nsLoginInfo("http://localhost:8888", "http://localhost:8888", null, "notifyu1B", "notifyp1B", "user", "pass"); -var login2B = new nsLoginInfo("http://mochi.test:8888", "http://mochi.test:8888", null, +var login2B = new nsLoginInfo("http://localhost:8888", "http://localhost:8888", null, "", "notifyp1B", "", "pass"); var iframe = document.getElementById("iframe"); diff --git a/toolkit/components/passwordmgr/test/test_prompt.html b/toolkit/components/passwordmgr/test/test_prompt.html index e0ed3248285..9358165aba1 100644 --- a/toolkit/components/passwordmgr/test/test_prompt.html +++ b/toolkit/components/passwordmgr/test/test_prompt.html @@ -63,11 +63,11 @@ function initLogins() { "100@beef", "user3pass", "", ""); login2E.init("http://example2.com", null, "http://example2.com", "100%beef", "user3pass", "", ""); - login3A.init("http://mochi.test:8888", null, "mochitest", + login3A.init("http://localhost:8888", null, "mochitest", "mochiuser1", "mochipass1", "", ""); - login3B.init("http://mochi.test:8888", null, "mochitest2", + login3B.init("http://localhost:8888", null, "mochitest2", "mochiuser2", "mochipass2", "", ""); - login4.init("http://mochi.test:8888", null, "mochitest3", + login4.init("http://localhost:8888", null, "mochitest3", "mochiuser3", "mochipass3-old", "", ""); pwmgr.addLogin(login1); @@ -380,7 +380,7 @@ function handleLoad() { clickNotificationButton(bar, kChangeButton); // Housekeeping: change it back - tmpLogin.init("http://mochi.test:8888", null, "mochitest", + tmpLogin.init("http://localhost:8888", null, "mochitest", "mochiuser1", "mochipass1-new", "", ""); pwmgr.modifyLogin(tmpLogin, login3A); @@ -404,7 +404,7 @@ function handleLoad() { // Housekeeping: change it back to the original login4. Actually, // just delete it and we'll re-add it as the next test. - tmpLogin.init("http://mochi.test:8888", null, "mochitest3", + tmpLogin.init("http://localhost:8888", null, "mochitest3", "mochiuser3", "mochipass3-new", "", ""); pwmgr.removeLogin(tmpLogin); // Clear cached auth from this subtest, and avoid leaking due to bug 459620. diff --git a/toolkit/components/passwordmgr/test/test_prompt_async.html b/toolkit/components/passwordmgr/test/test_prompt_async.html index 1f7f8c0a6b2..9867cf05a58 100644 --- a/toolkit/components/passwordmgr/test/test_prompt_async.html +++ b/toolkit/components/passwordmgr/test/test_prompt_async.html @@ -88,23 +88,15 @@ logins.push(login); } - //need to allow for arbitrary network servers, hardcoded for 8888, although PAC might h$ - var ios = Cc["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); - var pps = Cc["@mozilla.org/network/protocol-proxy-service;1"].getService(); - - var uri = ios.newURI("http://example.com", null, null); - var pi = pps.resolve(uri, 0); - var mozproxy = "moz-proxy://" + pi.host + ":" + pi.port; - - addLogin(mozproxy, "proxy_realm", + addLogin("moz-proxy://127.0.0.1:8888", "proxy_realm", "proxy_user", "proxy_pass"); - addLogin(mozproxy, "proxy_realm2", + addLogin("moz-proxy://127.0.0.1:8888", "proxy_realm2", "proxy_user2", "proxy_pass2"); - addLogin(mozproxy, "proxy_realm3", + addLogin("moz-proxy://127.0.0.1:8888", "proxy_realm3", "proxy_user3", "proxy_pass3"); - addLogin(mozproxy, "proxy_realm4", + addLogin("moz-proxy://127.0.0.1:8888", "proxy_realm4", "proxy_user4", "proxy_pass4"); - addLogin(mozproxy, "proxy_realm5", + addLogin("moz-proxy://127.0.0.1:8888", "proxy_realm5", "proxy_user5", "proxy_pass5"); addLogin("http://example.com", "mochirealm", "user1name", "user1pass"); @@ -274,7 +266,7 @@ case 6: // Reload the frame from the previous step and let the proxy // authentication pass but WWW fail. We expect two dialogs - // and an unathenticated page content load. + // and an unathentiocated page content load. ok(true, "doTest testNum 6"); expectedLoads = 1; expectedDialogs = 2; diff --git a/toolkit/components/passwordmgr/test/test_xhr.html b/toolkit/components/passwordmgr/test/test_xhr.html index cde89f66463..43785bce848 100644 --- a/toolkit/components/passwordmgr/test/test_xhr.html +++ b/toolkit/components/passwordmgr/test/test_xhr.html @@ -33,9 +33,9 @@ function initLogins() { login2 = Cc["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Ci.nsILoginInfo); - login1.init("http://mochi.test:8888", null, "xhr", + login1.init("http://localhost:8888", null, "xhr", "xhruser1", "xhrpass1", "", ""); - login2.init("http://mochi.test:8888", null, "xhr2", + login2.init("http://localhost:8888", null, "xhr2", "xhruser2", "xhrpass2", "", ""); pwmgr.addLogin(login1); diff --git a/toolkit/components/passwordmgr/test/test_xml_load.html b/toolkit/components/passwordmgr/test/test_xml_load.html index 0ef903c1b5c..fd7d59f5592 100644 --- a/toolkit/components/passwordmgr/test/test_xml_load.html +++ b/toolkit/components/passwordmgr/test/test_xml_load.html @@ -33,9 +33,9 @@ function initLogins() { login2 = Cc["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Ci.nsILoginInfo); - login1.init("http://mochi.test:8888", null, "xml", + login1.init("http://localhost:8888", null, "xml", "xmluser1", "xmlpass1", "", ""); - login2.init("http://mochi.test:8888", null, "xml2", + login2.init("http://localhost:8888", null, "xml2", "xmluser2", "xmlpass2", "", ""); pwmgr.addLogin(login1); diff --git a/toolkit/components/places/tests/chrome/test_329534.xul b/toolkit/components/places/tests/chrome/test_329534.xul index 438c67a124a..1563a76c25e 100644 --- a/toolkit/components/places/tests/chrome/test_329534.xul +++ b/toolkit/components/places/tests/chrome/test_329534.xul @@ -47,14 +47,14 @@ var secondURL = ""; lmsvc.stopUpdateLivemarks(); // add 2 feeds -const FEED1 = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/rss_as_html.rss"; +const FEED1 = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/rss_as_html.rss"; gLivemarkId1 = lmsvc.createLivemarkFolderOnly( toolbarFolderId, "foo", - uri("http:/mochi.test:8888/"), + uri("http:/localhost:8888/"), uri(FEED1), -1); -const FEED2 = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/sample_feed.atom"; +const FEED2 = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/sample_feed.atom"; gLivemarkId2 = lmsvc.createLivemarkFolderOnly( toolbarFolderId, "bar", - uri("http:/mochi.test:8888/"), + uri("http:/localhost:8888/"), uri(FEED2), -1); var observer = diff --git a/toolkit/components/places/tests/chrome/test_341972a.xul b/toolkit/components/places/tests/chrome/test_341972a.xul index f7565a2ce46..b4f519635ea 100644 --- a/toolkit/components/places/tests/chrome/test_341972a.xul +++ b/toolkit/components/places/tests/chrome/test_341972a.xul @@ -66,8 +66,8 @@ var observer = onPageAnnotationRemoved: function(aUri, aAnnotationName) {} }; -const FEEDSPEC = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/sample_feed.atom"; -const INITIALSITESPEC = "http://mochi.test:8888/"; +const FEEDSPEC = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/sample_feed.atom"; +const INITIALSITESPEC = "http://localhost:8888/"; const FEEDSITESPEC = "http://example.org/"; gLivemarkId = lmsvc.createLivemarkFolderOnly(toolbarFolderId, "foo", diff --git a/toolkit/components/places/tests/chrome/test_342484.xul b/toolkit/components/places/tests/chrome/test_342484.xul index 81c019565bd..f339a13788b 100644 --- a/toolkit/components/places/tests/chrome/test_342484.xul +++ b/toolkit/components/places/tests/chrome/test_342484.xul @@ -83,10 +83,10 @@ function runTest() { SimpleTest.finish(); } -const FEEDSPEC = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/bad_links.atom"; +const FEEDSPEC = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/bad_links.atom"; gLivemarkId = lmsvc.createLivemarkFolderOnly(toolbarFolderId, "foo", - uri("http:/mochi.test/"), + uri("http:/localhost/"), uri(FEEDSPEC), -1); bmsvc.addObserver(observer, false); lmsvc.reloadLivemarkFolder(gLivemarkId); diff --git a/toolkit/components/places/tests/chrome/test_381357.xul b/toolkit/components/places/tests/chrome/test_381357.xul index b06ec72a2d7..c6027ea2a55 100644 --- a/toolkit/components/places/tests/chrome/test_381357.xul +++ b/toolkit/components/places/tests/chrome/test_381357.xul @@ -67,10 +67,10 @@ var observer = }; -const FEEDSPEC = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/rss_as_html.rss"; +const FEEDSPEC = "http://localhost:8888/tests/toolkit/components/places/tests/chrome/rss_as_html.rss"; gLivemarkId = lmsvc.createLivemarkFolderOnly(toolbarFolderId, "foo", - uri("http:/mochi.test/"), + uri("http:/localhost/"), uri(FEEDSPEC), -1); bmsvc.addObserver(observer, false); lmsvc.reloadLivemarkFolder(gLivemarkId); diff --git a/toolkit/components/places/tests/mochitest/test_bug_461710.html b/toolkit/components/places/tests/mochitest/test_bug_461710.html index 39ca5294139..9137f8b133d 100644 --- a/toolkit/components/places/tests/mochitest/test_bug_461710.html +++ b/toolkit/components/places/tests/mochitest/test_bug_461710.html @@ -60,7 +60,7 @@ const kRed = "rgb(255, 0, 0)"; const kBlue = "rgb(0, 0, 255)"; var testpath = document.location.pathname + "/../bug_461710/"; -var prefix = "http://mochi.test:8888" + testpath; +var prefix = "http://localhost:8888" + testpath; var subtests = [ "visited_page.html", // 1 "link_page.html", // 2 diff --git a/toolkit/content/tests/browser/browser_bug471962.js b/toolkit/content/tests/browser/browser_bug471962.js index 18d74a3b9bb..7b5b7fe65c1 100644 --- a/toolkit/content/tests/browser/browser_bug471962.js +++ b/toolkit/content/tests/browser/browser_bug471962.js @@ -53,7 +53,7 @@ function test() { // --- Test implementation --- const kBaseUrl = - "http://mochi.test:8888/browser/toolkit/content/tests/browser/data/"; + "http://localhost:8888/browser/toolkit/content/tests/browser/data/"; function FramePostData_TestGenerator() { // Display the outer page, and wait for it to be loaded. Loading the URI diff --git a/toolkit/mozapps/downloads/tests/chrome/test_unkownContentType_dialog_layout.xul b/toolkit/mozapps/downloads/tests/chrome/test_unkownContentType_dialog_layout.xul index 83d88fda549..7060575159e 100644 --- a/toolkit/mozapps/downloads/tests/chrome/test_unkownContentType_dialog_layout.xul +++ b/toolkit/mozapps/downloads/tests/chrome/test_unkownContentType_dialog_layout.xul @@ -62,14 +62,14 @@ const UCT_URI = "chrome://mozapps/content/downloads/unknownContentType.xul"; let testIndex = -1; let tests = [ { // This URL will trigger the simple UI, where only the Save an Cancel buttons are available - url: "http://mochi.test:8888/chrome/toolkit/mozapps/downloads/tests/chrome/unknownContentType_dialog_layout_data.pif", + url: "http://localhost:8888/chrome/toolkit/mozapps/downloads/tests/chrome/unknownContentType_dialog_layout_data.pif", elements: { basicBox: { collapsed: false }, normalBox: { collapsed: true } } }, { // This URL will trigger the full UI - url: "http://mochi.test:8888/chrome/toolkit/mozapps/downloads/tests/chrome/unknownContentType_dialog_layout_data.txt", + url: "http://localhost:8888/chrome/toolkit/mozapps/downloads/tests/chrome/unknownContentType_dialog_layout_data.txt", elements: { basicBox: { collapsed: true }, normalBox: { collapsed: false } diff --git a/uriloader/exthandler/tests/mochitest/handlerApps.js b/uriloader/exthandler/tests/mochitest/handlerApps.js index cf591e5a1f3..7d99fb453eb 100644 --- a/uriloader/exthandler/tests/mochitest/handlerApps.js +++ b/uriloader/exthandler/tests/mochitest/handlerApps.js @@ -48,7 +48,7 @@ function test() { createInstance(Components.interfaces.nsIWebHandlerApp); webHandler.name = "Test Web Handler App"; webHandler.uriTemplate = - "http://mochi.test:8888/tests/uriloader/exthandler/tests/mochitest/" + + "http://localhost:8888/tests/uriloader/exthandler/tests/mochitest/" + "handlerApp.xhtml?uri=%s"; // set up the uri to test with diff --git a/widget/tests/test_bug429954.xul b/widget/tests/test_bug429954.xul index 02f1bbce8b9..4fc9e4b1194 100644 --- a/widget/tests/test_bug429954.xul +++ b/widget/tests/test_bug429954.xul @@ -42,6 +42,7 @@ SimpleTest.waitForFocus(function () { "screenX=" + maxX + "screenY=" + maxY); }); + ]]>