mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Remove outdated old_queue_global_event_with_document
The FIXME here describes an old constraint on JS Interpreters which no longer holds. It hails from a time when we had the global object and JS realm attached to the document.
This commit is contained in:
committed by
Andreas Kling
parent
9808f8164f
commit
6e64bf5464
@@ -238,13 +238,6 @@ void EventLoop::process()
|
||||
schedule();
|
||||
}
|
||||
|
||||
// FIXME: This is here to paper over an issue in the HTML parser where it'll create new interpreters (and thus ESOs) on temporary documents created for innerHTML if it uses Document::realm() to get the global object.
|
||||
// Use queue_global_task instead.
|
||||
void old_queue_global_task_with_document(HTML::Task::Source source, DOM::Document& document, JS::SafeFunction<void()> steps)
|
||||
{
|
||||
main_thread_event_loop().task_queue().add(HTML::Task::create(source, &document, move(steps)));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-global-task
|
||||
void queue_global_task(HTML::Task::Source source, JS::Object& global_object, JS::SafeFunction<void()> steps)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user