ladybird/Tests/LibWeb/Text/input/HTML/javascript-navigation-stays-in-same-process.html
Luke Wilde 61c1e4a855 LibWebView: Keep javascript URL navigations in the same process
JavaScript URLs run in the same document context the navigation was
started in, so they're not eligible to be moved to a new WebContent
process.

Fixes the "Login as demo user" link on https://demo.immich.app/
2025-03-16 10:59:41 -04:00

11 lines
342 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<div id="test">Hello world, this was printed by a JavaScript navigation!</div>
<script>
asyncTest((done) => {
location.href = "javascript:void println(document.getElementById('test').innerText)";
setTimeout(() => {
done();
}, 0);
});
</script>