LibWeb: Use GC::Ptr for BrowsingContext pointer saved in Document

Likely we forgot to update `WeakPtr` to `GC::Ptr` after converting
`BrowsingContext` to GC-allocated object.
This commit is contained in:
Aliaksandr Kalenik 2025-07-17 16:26:59 +02:00 committed by Sam Atkins
parent 59a867d3e3
commit 1bf4d3391e
Notes: github-actions[bot] 2025-07-17 14:56:57 +00:00
5 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@ bool BarProp::visible() const
{
// 1. Let browsingContext be this's relevant global object's browsing context.
auto& global_object = HTML::relevant_global_object(*this);
auto* browsing_context = as<HTML::Window>(global_object).associated_document().browsing_context();
auto browsing_context = as<HTML::Window>(global_object).associated_document().browsing_context();
// 2. If browsingContext is null, then return true.
if (!browsing_context) {