I guess there is a mistake in color management logic between Adjustment Layers and Color Picker.
Here is how to reproduce:
- Switch image to Document mode.
- Set Document ICC profile to something like sRGB.
- Set Image ICC profile to sRGB with Linear Gamma.
- Add White Point Adjustment Layer (Setup Grey Point mode)
If White Point Adjustment Layer placed on top of image, it works in Document ICC profile as expected and pick colors based on Document ICC profile as expected.
PROBLEM: If White Point Adjustment Layer placed inside image, it works in Image ICC profile as expected, but incorrectly pick color values based on Document ICC profile.
I see the same problem in Channel Mixer tool, so i guess same problem may exist with all other tools that use Color Picker.
P.S. The good news is that there is no problem if i create additional color managed Isolated Group with Linear ICC profile and put White Point Adjustment Layer inside that group. In this scenario it works in Group ICC profile as expected and pick colors based on Group ICC profile as expected.