From 98a1db32476960589a08ece9fefbae25c3b81efa Mon Sep 17 00:00:00 2001 From: YFdyh000 Date: Thu, 13 Aug 2015 21:38:00 +0100 Subject: [PATCH] Bug 1194503 - make appendNotification not set accesskey="undefined" if passed a structure with no accesskey, r=gijs --HG-- extra : commitid : 9JUxylKErLp extra : histedit_source : 21111a242a741a43c68c8449f3908ae1edef2ab3 --- toolkit/content/widgets/notification.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/content/widgets/notification.xml b/toolkit/content/widgets/notification.xml index d2cb07916d63..e998e031a3b0 100644 --- a/toolkit/content/widgets/notification.xml +++ b/toolkit/content/widgets/notification.xml @@ -122,7 +122,8 @@ var button = aButtons[b]; var buttonElem = document.createElementNS(XULNS, "button"); buttonElem.setAttribute("label", button.label); - buttonElem.setAttribute("accesskey", button.accessKey); + if (typeof button.accessKey == "string") + buttonElem.setAttribute("accesskey", button.accessKey); if (typeof button.type == "string") { buttonElem.setAttribute("type", button.type); if ((button.type == "menu-button" || button.type == "menu") &&