diff --git a/toolkit/content/aboutNetworking.js b/toolkit/content/aboutNetworking.js index cadae39e8..1edf2f203 100644 --- a/toolkit/content/aboutNetworking.js +++ b/toolkit/content/aboutNetworking.js @@ -176,6 +176,14 @@ function init() { doLookup(); }); + let clearDNSCache = document.getElementById("clearDNSCache"); + clearDNSCache.addEventListener("click", function() { + Cc["@mozilla.org/network/dns-service;1"] + .getService(Ci.nsIDNSService) + .clearCache(); + requestAllNetworkingData(); + }); + let setLogButton = document.getElementById("set-log-file-button"); setLogButton.addEventListener("click", setLogFile); diff --git a/toolkit/content/aboutNetworking.xhtml b/toolkit/content/aboutNetworking.xhtml index c8c98bf8a..45ffc0850 100644 --- a/toolkit/content/aboutNetworking.xhtml +++ b/toolkit/content/aboutNetworking.xhtml @@ -96,6 +96,8 @@