Content aware output to new layer doesn't work on locked layer
Adobe Photoshop Version: 23.4.1 20220615.r.547 3121b66 x64
Operating System: Windows 10 64-bit
Steps to reproduce:
1. Make a selection on a locked layer
2. Go to Edit > Content-Aware Fill...
3. Set Output Settings to New Layer
4. Click OK or Apply
Expected result:
New layer is created with the content-aware fill while the original layer is unchanged, OR the Content-Aware Fill... menu item should be greyed out.
Actual result:
Error message saying "Could not complete your request because the layer is locked."
