diff --git a/js/messaging.js b/js/messaging.js index 67fa1dca..6f6efbd6 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -443,7 +443,8 @@ function openEditor(id) { function closeCurrentTab() { - chrome.tabs.getCurrent(tab => { + // https://bugzilla.mozilla.org/show_bug.cgi?id=1409375 + getOwnTab().then(tab => { if (tab) { chrome.tabs.remove(tab.id); }