This main frame load starts with the should-open-external-urls flag set to false.
It loads a new page programmatically, leaving the flag false.
That new page clicks a link, which should set the flag to true.