From 05752764fbb9cdf32dca4cfdd224d27cca887656 Mon Sep 17 00:00:00 2001 From: Felipe Gomes Date: Thu, 19 Apr 2012 18:47:52 -0700 Subject: [PATCH] Bug 746848. Support pref for webapps installer dry-run. r=gavin a=desktop-only --- browser/modules/WebappsInstaller.jsm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser/modules/WebappsInstaller.jsm b/browser/modules/WebappsInstaller.jsm index a03b16c19cc4..2916fe4e86f4 100644 --- a/browser/modules/WebappsInstaller.jsm +++ b/browser/modules/WebappsInstaller.jsm @@ -22,6 +22,12 @@ let WebappsInstaller = { */ install: function(aData) { + try { + if (Services.prefs.getBoolPref("browser.mozApps.installer.dry_run")) { + return true; + } + } catch (ex) {} + #ifdef XP_WIN let shell = new WinNativeApp(aData); #elifdef XP_MACOSX