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: |
eb6fceda3af05f260a87dccc11d1e9c8 |
User & Date: | olr on 2019-05-13 06:33:47 |
Other Links: | manifest | tags |
Context
2019-05-13
| ||
07:57 | [fr] ajustements et faux positifs check-in: 5679818a47 user: olr tags: trunk, fr | |
06:33 | [fx] copy to clipbdoard still works for Chrome (Firefox bug) check-in: eb6fceda3a user: olr tags: trunk, fx | |
2019-05-12
| ||
18:57 | [fx] update manifest.json check-in: 49d3639117 user: olr tags: trunk, fx | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [83825726d2] to [66d1a87b27].
︙ | ︙ | |||
224 225 226 227 228 229 230 | 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 | | | 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); } |
︙ | ︙ |