After updating from Safari 13 to Safari 14 (on macOS 10.15.6),
I have noticed that all text-filtering Automator workflows no
longer work correctly in Safari.
For an example of such workflow, see the screenshot below. It shows
a simple workflow that takes the current text selection from any app,
pipes it through the
fmt command, and replaces the original
selection with that command’s output:
I have a few workflows of this construction, i.e., consisting of
a single Run Shell Script action running a command that takes
the text selection on its stdin and outputs the text to replace
the selection with on its stdout. I have been using them without
any issues for quite a long time (at least, for the last two major
releases of macOS).
However, when a workflow like that is run from the newly updated
Safari 14, it fails to replace the text selection with the output
of the workflow. Instead, it simply deletes the selected text.
The issue is clearly specific to Safari 14 only, because the same
workflows still work correctly (i.e., replace the selection with
the command’s output) in all other apps (e.g., TextEdit).
Is this caused by some security-related change in Safari 14, or
is it simply a bug that has been accidentally introduced in this
update? In the former case, how this behavior can be reverted?
In the latter case, how and where should we report the bug?