From f493040f72d5633b200a7b60ea9a3eccda47dd8d Mon Sep 17 00:00:00 2001 From: Marina Samuel Date: Tue, 19 Nov 2013 16:33:37 -0500 Subject: [PATCH] Bug 928068 - Story - Don't allow switching to Metro while in private browser mode. r=bbondy --- browser/components/customizableui/src/CustomizableUI.jsm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/customizableui/src/CustomizableUI.jsm b/browser/components/customizableui/src/CustomizableUI.jsm index 753b601a3515..c8b09be72ef6 100644 --- a/browser/components/customizableui/src/CustomizableUI.jsm +++ b/browser/components/customizableui/src/CustomizableUI.jsm @@ -1679,6 +1679,10 @@ let CustomizableUIInternal = { return null; } + if (aData.id == "switch-to-metro-button") { + widget.showInPrivateBrowsing = false; + } + delete widget.implementation.currentArea; widget.implementation.__defineGetter__("currentArea", function() widget.currentArea);