diff --git a/browser/components/customizableui/CustomizableWidgets.jsm b/browser/components/customizableui/CustomizableWidgets.jsm index a78ea7f74f37..6cc5d8a018a0 100644 --- a/browser/components/customizableui/CustomizableWidgets.jsm +++ b/browser/components/customizableui/CustomizableWidgets.jsm @@ -793,11 +793,54 @@ if (Services.prefs.getBoolPref("privacy.panicButton.enabled")) { } }, onViewShowing(aEvent) { + let win = aEvent.target.ownerGlobal; + let doc = win.document; + let eventBlocker = null; + if (!doc.querySelector("#PanelUI-panic-timeframe")) { + win.MozXULElement.insertFTLIfNeeded("browser/panicButton.ftl"); + let frag = win.MozXULElement.parseXULToFragment(` + + + + + + + + + + + + + + + + + + + + + + +