Bug 781386 followup: fix forgotten review nit (reset pref that this test sets on test end)
authorGavin Sharp <gavin@gavinsharp.com>
Sat, 11 Aug 2012 20:55:58 -0700
changeset 102170 038266727ddc37a3573aa535ab3892f04ffb6229
parent 102169 245a6349b1c19bf763692181a030c320a3314614
child 102171 f89feda9d99743dbae5fef2cacd8ae46b5a78e6f
push id13344
push usergsharp@mozilla.com
push dateSun, 12 Aug 2012 03:56:12 +0000
treeherdermozilla-inbound@038266727ddc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs781386
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 781386 followup: fix forgotten review nit (reset pref that this test sets on test end)
browser/base/content/test/browser_social_shareButton.js
--- a/browser/base/content/test/browser_social_shareButton.js
+++ b/browser/base/content/test/browser_social_shareButton.js
@@ -15,16 +15,17 @@ function test() {
   // Need to load a non-empty page for the social share button to appear
   let tab = gBrowser.selectedTab = gBrowser.addTab("about:", {skipAnimation: true});
   tab.linkedBrowser.addEventListener("load", function tabLoad(event) {
     tab.linkedBrowser.removeEventListener("load", tabLoad, true);
     executeSoon(tabLoaded);
   }, true);
 
   registerCleanupFunction(function() {
+    Services.prefs.clearUserPref(prefName);
     gBrowser.removeTab(tab);
   });
 }
 
 function tabLoaded() {
   ok(Social, "Social module loaded");
 
   let manifest = { // normal provider