changeset 64:46c0595f2dcc

Remove SubmitEvent compatibility code This API is supported by the latest Firefox ESR release.
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Sat, 17 Apr 2021 23:07:57 +0200
parents 47b46f51aa5a
children 106d78e26d3c
files options/options.js
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/options/options.js	Tue Nov 17 15:31:50 2020 +0100
+++ b/options/options.js	Sat Apr 17 23:07:57 2021 +0200
@@ -29,24 +29,6 @@
         feedReadersForm.elements['remove'].textContent =
                 browser.i18n.getMessage('feedReaderRemoveButton');
         feedReadersForm.addEventListener('change', this);
-        // FIXME remove once the Firefox ESR release supports SubmitEvent
-        if (typeof SubmitEvent === 'undefined') {
-            for (let element of [
-                        feedReadersForm.elements['move-up'],
-                        feedReadersForm.elements['move-down'],
-                        feedReadersForm.elements['remove']
-                    ]) {
-                element.addEventListener('click', ev => {
-                    ev.preventDefault();
-                    let submitEvent = new Event('submit', {
-                        'bubbles':true,
-                        'cancelable':true
-                    });
-                    submitEvent.submitter = ev.target;
-                    feedReadersForm.dispatchEvent(submitEvent)
-                });
-            }
-        }
 
         let addFeedReaderForm = document.forms['add-feed-reader'];
         addFeedReaderForm.elements['add'].textContent =