<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.dumpPolicyDelegateCallbacks();
    testRunner.queueLoad("resources/user-gesture-window-open-to-notify-done-from-subframe.html");
}
</script>
This page opens a 2nd page with the "should open external URLs" flag set to false.<br>
That page has a subframe with a link that - when clicked - calls window.open to a 3rd page.<br>
That 3rd page should have the flag set to true because it was from a user gesture.<br>
