Get what you're saying about the cross being right at Salah, that feels offside to me, at any rate.Totally different scenarios though, the Liverpool one was a cross aimed at Salah who was offside, it should not be then classed as a new passage of play when it arrives at him via a defenders header, he was the target and therefore offside.
From memory, a Villa player passed it to Mings Bernardo was behind him and then Mings fucked up and Bernardo stole the ball and was away but I am willing to be corrected on this.
City's was a pass forward from a city player, it was then controlled by Ming's and immediately robbed. However, I've just remembered, they subsequently changed the rules to stop this or something. I can't really fathom why Salah's counted.