mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
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:
parent
59a867d3e3
commit
1bf4d3391e
Notes:
github-actions[bot]
2025-07-17 14:56:57 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 1bf4d3391e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5489
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 9 additions and 9 deletions
|
@ -16,8 +16,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
class BrowsingContext final : public JS::Cell
|
||||
, public Weakable<BrowsingContext> {
|
||||
class BrowsingContext final : public JS::Cell {
|
||||
GC_CELL(BrowsingContext, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(BrowsingContext);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue