Grammalecte  Check-in [eb6fceda3a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[fx] copy to clipbdoard still works for Chrome (Firefox bug)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256:eb6fceda3af05f260a87dccc11d1e9c8fd5e28d4a1e424ddd2b5eb6bc99641ce
User & Date: olr 2019-05-13 06:33:47
Context
2019-05-13
07:57
[fr] ajustements et faux positifs check-in: 5679818a47 user: olr tags: fr, trunk
06:33
[fx] copy to clipbdoard still works for Chrome (Firefox bug) check-in: eb6fceda3a user: olr tags: fx, trunk
2019-05-12
18:57
[fx] update manifest.json check-in: 49d3639117 user: olr tags: fx, trunk
Changes

Changes to gc_lang/fr/webext/content_scripts/init.js.

224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
        catch (e) {
            showError(e);
        }
    },

    sendTextToClipboard (sText)  {
        // recipe from https://github.com/mdn/webextensions-examples/blob/master/context-menu-copy-link-with-types/clipboard-helper.js
        // It doesn’t seem to work anymore
        //console.log(sText);
        function setClipboardData (xEvent) {
            document.removeEventListener("copy", setClipboardData, true);
            xEvent.stopImmediatePropagation();
            xEvent.preventDefault();
            xEvent.clipboardData.setData("text/plain", sText);
        }







|







224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
        catch (e) {
            showError(e);
        }
    },

    sendTextToClipboard (sText)  {
        // recipe from https://github.com/mdn/webextensions-examples/blob/master/context-menu-copy-link-with-types/clipboard-helper.js
        // It doesn’t seem to work anymore on Firefox. Still OK on Chrome.
        //console.log(sText);
        function setClipboardData (xEvent) {
            document.removeEventListener("copy", setClipboardData, true);
            xEvent.stopImmediatePropagation();
            xEvent.preventDefault();
            xEvent.clipboardData.setData("text/plain", sText);
        }