This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit
Martin Brennan cecdef83a8
FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419)
Firefox does not support window.ClipboardItem yet (it is behind
a flag (dom.events.asyncClipboard.clipboardItem) as at version 87.)
so we need to fall back to the normal non-async clipboard copy, that
works in every browser except Safari.

This commit also tests the clipboardCopyAsync function by stubbing out
the clipboard on the window.navigator.

This fixes an issue in the discourse-chat plugin, where the
"Quote in Topic" button errored in Firefox.
2022-04-11 13:00:45 +10:00
..
controllers FEATURE: allow moderators to bulk change ownership (#15997) 2022-02-18 14:28:27 -05:00
ember DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
lib FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419) 2022-04-11 13:00:45 +10:00
mixins DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
models FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
services FEATURE: cache last post number (#15772) 2022-02-10 13:09:28 +11:00
utils DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
localization-test.js FIX: Translation overrides from fallback locale didn't work on client 2021-12-17 14:03:35 +01:00