Accept navigation inside popups if the redirection stays within the set of accepted URLs. This helps support the account switching feature in Gmail for example.
An additional heuristics ensures that trampoline URLs don't leave a blank window in their originating webapp, as we navigate back to the page just before the trampoline. This avoids regressions in Facebook, Twitter and other apps using popup redirects to open external links. Fixes: 1324848