From 52063c8633b90f19fec66bec9dc288479072dc9d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 13 Nov 2021 12:18:26 -0500 Subject: [PATCH] Force-close popup panel when reporting a filter issue Necessary on Firefox. --- src/js/popup-fenix.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/js/popup-fenix.js b/src/js/popup-fenix.js index c01431ccb..8799070ff 100644 --- a/src/js/popup-fenix.js +++ b/src/js/popup-fenix.js @@ -27,12 +27,6 @@ import punycode from '../lib/punycode.js'; /******************************************************************************/ -{ -// >>>>> start of local scope - -/******************************************************************************/ - - let popupFontSize = 'unset'; vAPI.localStorage.getItemAsync('popupFontSize').then(value => { if ( typeof value !== 'string' || value === 'unset' ) { return; } @@ -850,6 +844,8 @@ const gotoReport = function() { what: 'launchReporter', tabId: popupData.tabId, }); + + vAPI.closePopup(); }; /******************************************************************************/ @@ -1413,6 +1409,3 @@ document.querySelector('#firewall > [data-type="3p-frame"] .filter') }); /******************************************************************************/ - -// <<<<< end of local scope -}