[tor-commits] [tor-browser/esr24] Bug 996019 - Fix browser_bug435325.js to not connect to example.com. r=ehsan, a=test-only
mikeperry at torproject.org
mikeperry at torproject.org
Fri Aug 29 05:26:39 UTC 2014
commit 4244dc23cc57deb50607119f367eeafbcb446d6e
Author: Nathan Froyd <froydnj at mozilla.com>
Date: Tue Apr 15 16:14:10 2014 -0400
Bug 996019 - Fix browser_bug435325.js to not connect to example.com. r=ehsan, a=test-only
---
browser/base/content/test/browser_bug435325.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/browser/base/content/test/browser_bug435325.js b/browser/base/content/test/browser_bug435325.js
index 2e9136d..fe05c75 100644
--- a/browser/base/content/test/browser_bug435325.js
+++ b/browser/base/content/test/browser_bug435325.js
@@ -51,6 +51,11 @@ function checkPage() {
// Now press the "Try Again" button
ok(gBrowser.contentDocument.getElementById("errorTryAgain"),
"The error page has got a #errorTryAgain element");
+
+ // Re-enable the proxy so example.com is resolved to localhost, rather than
+ // the actual example.com.
+ Services.prefs.setIntPref("network.proxy.type", proxyPrefValue);
+
gBrowser.contentDocument.getElementById("errorTryAgain").click();
ok(!Services.io.offline, "After clicking the Try Again button, we're back " +
@@ -60,7 +65,6 @@ function checkPage() {
}
registerCleanupFunction(function() {
- Services.prefs.setIntPref("network.proxy.type", proxyPrefValue);
Services.prefs.setBoolPref("browser.cache.disk.enable", true);
Services.prefs.setBoolPref("browser.cache.memory.enable", true);
Services.io.offline = false;
More information about the tor-commits
mailing list