mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +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:
parent
9808f8164f
commit
6e64bf5464
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/ADKaster
Commit: 6e64bf5464
Pull-request: https://github.com/SerenityOS/serenity/pull/20817
4 changed files with 4 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue