Skip to content

Commit

Permalink
LibWeb: Remove needless capture of a URL in TraversableNavigable
Browse files Browse the repository at this point in the history
  • Loading branch information
trflynn89 committed Nov 28, 2024
1 parent aeaa284 commit b479e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibWeb/HTML/TraversableNavigable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ WebIDL::ExceptionOr<GC::Ref<TraversableNavigable>> TraversableNavigable::create_
// Skip the initial navigation as well. This matches the behavior of the window open steps.

if (url_matches_about_blank(initial_navigation_url)) {
Platform::EventLoopPlugin::the().deferred_invoke(GC::create_function(traversable->heap(), [traversable, initial_navigation_url] {
Platform::EventLoopPlugin::the().deferred_invoke(GC::create_function(traversable->heap(), [traversable] {
// FIXME: We do this other places too when creating a new about:blank document. Perhaps it's worth a spec issue?
HTML::HTMLParser::the_end(*traversable->active_document());

Expand Down

0 comments on commit b479e82

Please sign in to comment.