From 7697c262dbb06249576e80e58d6f61f62d1217cf Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Tue, 7 Nov 2017 09:28:28 -0800 Subject: [PATCH] Limit download button to Google Chrome As discussed on ticket the download button only appears to work on Google Chrome on mobile browsers. Bug: T179529 Bug: T179914 Change-Id: I8bbda8d5a8aa42dd23773fea424c1a70e31d6f85 --- resources/skins.minerva.scripts/init.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/skins.minerva.scripts/init.js b/resources/skins.minerva.scripts/init.js index c6bd0be..72eab1f 100644 --- a/resources/skins.minerva.scripts/init.js +++ b/resources/skins.minerva.scripts/init.js @@ -232,7 +232,10 @@ config.get( 'wgMinervaDownloadIcon' ) && !page.isMainPage() && // The iOS print dialog does not provide pdf functionality (see T177215) - !browser.isIos() + !browser.isIos() && + // Currently restricted to Chrome (T179529) until we have good fallbacks for browsers + // which do not provide print functionality + window.chrome !== undefined ) { // Because the page actions are floated to the right, their order in the // DOM is reversed in the display. The watchstar is last in the DOM and