Skip to content

Conversation

@theIDinside
Copy link
Contributor

Chrome seem to already have this behavior, gecko does not at time of writing, that instead hangs forever.

Chrome seem to already have this behavior, gecko does not at time of
writing, that instead hangs forever.
await new Promise(resolve => w.onload = resolve);

await test_driver.bless("navigate", async function() {
w.navigation.navigate(new URL("resources/navigate-during-onnavigate-should-reject-helper.html", location.href).href);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use a relative URL

Suggested change
w.navigation.navigate(new URL("resources/navigate-during-onnavigate-should-reject-helper.html", location.href).href);
w.navigation.navigate("resources/navigate-during-onnavigate-should-reject-helper.html");

await new Promise(resolve => onmessage = resolve);
w.close();
}, "Test that await navigation.back().finished during onnavigate should reject");
</script> No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LF at EOF please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants