From e8fcc4d761d3e0bff0575c4d36c57e387c24777c Mon Sep 17 00:00:00 2001 From: Matthew Turnbull Date: Sun, 11 Oct 2015 14:35:00 +0200 Subject: [PATCH] Bug 1213620 - Expose DownloadsButton to the global scope for addon-compat. r=gijs --- browser/components/downloads/content/indicator.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser/components/downloads/content/indicator.js b/browser/components/downloads/content/indicator.js index b4df74c6067d..5f3bec2e9f21 100644 --- a/browser/components/downloads/content/indicator.js +++ b/browser/components/downloads/content/indicator.js @@ -181,6 +181,12 @@ const DownloadsButton = { } }; +Object.defineProperty(this, "DownloadsButton", { + value: DownloadsButton, + enumerable: true, + writable: false +}); + //////////////////////////////////////////////////////////////////////////////// //// DownloadsIndicatorView