passphraseGet() without specifying the key -- this indeeds looks dodgy (as well as whenMasterPassphraseEntered(). I'll come up with edge cases that may disrupt the correct operation and then refactor with TDD.
Originally posted by @rrrooommmaaa in #4091 (comment)