I have been using CSTTC without issue until recently, where I found that using %RT% format throws an exception:
14:34:07.506 clipboard<BG>: failed to write text/data to clipboard: TypeError: Clipboard.write: Argument 1 can't be converted to a sequence.
copyToClipboard moz-extension://6ebf3598-f26a-4036-8a43-851309901bab/common/commands.js:92
onClick moz-extension://6ebf3598-f26a-4036-8a43-851309901bab/background/context-menu.js:473
common.js:77:11
I've been investigating and debugging myself and made a few discoveries:
I tried using CSTTC%RT% in a different Firefox installation: Firefox 116, which works. However, after updating to 122.0b3, the issue is present. This leads me to believe there were changes made after 116 which either broke or removed API features CSTTC used.
The tab generated by CSTTC for copying the %RT% content no longer opens as it used to, which seems to be causing the problem.
Steps to reproduce
Use CSTTC on Firefox 116+
Attempt to copy any tab on any website using %RT% format
Possible fix
The following change to commands.js appears to resolve the issue, and the %RT% format works as expected.
Environment
123.0a1 (2023-12-28) (64-bit)
1.6.2
Short description
I have been using CSTTC without issue until recently, where I found that using
%RT%
format throws an exception:Affected code:
commands.js:92
andcontext-menu.js:473
.I've been investigating and debugging myself and made a few discoveries:
I tried using CSTTC
%RT%
in a different Firefox installation: Firefox116
, which works. However, after updating to122.0b3
, the issue is present. This leads me to believe there were changes made after116
which either broke or removed API features CSTTC used.The tab generated by CSTTC for copying the
%RT%
content no longer opens as it used to, which seems to be causing the problem.Steps to reproduce
116+
%RT%
formatPossible fix
The following change to
commands.js
appears to resolve the issue, and the%RT%
format works as expected.