Issue #2632434 by yongt9412, EclipseGc, ivanjaros, Berdir: Conditions are not limited by available contexts (cherry picked from commit 7076c704)