Criticality and superfluidity in liquid ^4He under nonequilibrium conditions