mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
Revert "LibWeb: Fix endless spinning in apply_the_history_step()"
This reverts commit 609a72f7c7.
This commit is contained in:
@@ -1 +1 @@
|
|||||||
PASS: did not crash
|
|
||||||
@@ -1,16 +1,12 @@
|
|||||||
<script src="../include.js"></script><div id="foo"><iframe></iframe><script>
|
<script src="../include.js"></script>
|
||||||
setTimeout(function () {
|
<div id="foo">
|
||||||
foo.remove();
|
<iframe></iframe>
|
||||||
window.done = true;
|
<script>
|
||||||
}, 0);
|
setTimeout(function () {
|
||||||
</script></div><iframe></iframe><script>
|
foo.remove();
|
||||||
asyncTest(function (done) {
|
// Pass (didn't crash)
|
||||||
let internalId;
|
internals.signalTextTestIsDone();
|
||||||
internalId = setInterval(function () {
|
|
||||||
if (window.done) {
|
|
||||||
clearInterval(internalId);
|
|
||||||
done();
|
|
||||||
}
|
|
||||||
}, 0);
|
}, 0);
|
||||||
});
|
</script>
|
||||||
</script>PASS: did not crash
|
</div>
|
||||||
|
<iframe></iframe>
|
||||||
|
|||||||
@@ -572,7 +572,7 @@ TraversableNavigable::HistoryStepResult TraversableNavigable::apply_the_history_
|
|||||||
// AD-HOC: Since currently populate_session_history_entry_document does not run in parallel
|
// AD-HOC: Since currently populate_session_history_entry_document does not run in parallel
|
||||||
// we call spin_until to interrupt execution of this function and let document population
|
// we call spin_until to interrupt execution of this function and let document population
|
||||||
// to complete.
|
// to complete.
|
||||||
main_thread_event_loop().spin_until([&] {
|
main_thread_event_loop().spin_processing_tasks_with_source_until(Task::Source::NavigationAndTraversal, [&] {
|
||||||
return !changing_navigable_continuations.is_empty() || completed_change_jobs == total_change_jobs;
|
return !changing_navigable_continuations.is_empty() || completed_change_jobs == total_change_jobs;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user