michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: "use strict"; michael@0: michael@0: var Feedback = { michael@0: observe: function(aMessage, aTopic, aData) { michael@0: if (aTopic !== "Feedback:Show") michael@0: return; michael@0: michael@0: // Only prompt for feedback if this isn't a distribution build. michael@0: try { michael@0: Services.prefs.getCharPref("distribution.id"); michael@0: } catch (e) { michael@0: BrowserApp.addTab("about:feedback", { selected: true, parentId: BrowserApp.selectedTab.id }); michael@0: } michael@0: } michael@0: };