diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 3bb75011..a6f61dad 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -1625,10 +1625,18 @@ class Display extends EventDispatcher { _copyHostSelection() { if (this._contentOriginFrameId === null || window.getSelection().toString()) { return false; } - this._copyHostSelectionInner(); + this._copyHostSelectionSafe(); return true; } + async _copyHostSelectionSafe() { + try { + await this._copyHostSelectionInner(); + } catch (e) { + // NOP + } + } + async _copyHostSelectionInner() { switch (this._browser) { case 'firefox':