mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-09 02:21:53 +00:00
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/
11 lines
342 B
HTML
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>
|