From 14b3d7aed7f6fac9a91ec8fee98054446c60c177 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Jun 2019 02:06:30 +0300 Subject: [PATCH] since FF impulitely complains when we are asking permission pulitely, we are not longer asking for permission, it's quieter this way... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index d460815e..6bafedde 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -3338,12 +3338,11 @@ var BrowserPrototype = { : this.load(str) }.bind(this), 5) }, + // NOTE: FF does not support permission querying so we are not asking, + // yes this may result in things breaking, but all the shards + // should be contained within the handler... __copy: function(text){ - navigator.permissions.query({name: 'clipboard-write'}) - .then(function({state}){ - ;(state == 'granted' || state == 'prompt' ) ? - navigator.clipboard.writeText(text || this.path) - : console.warn('.__copy(..): clipboard-write not allowed.') }) }, + navigator.clipboard.writeText(text || this.path) }, // Element renderers...