1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 13:55:06 +00:00

LibWeb: Inherit BrowsingContext from AbstractBrowsingContext

This commit is contained in:
Aliaksandr Kalenik 2023-03-14 12:40:03 +03:00 committed by Tim Flynn
parent c4f94b0846
commit 40ec976781
3 changed files with 14 additions and 25 deletions

View file

@ -620,7 +620,7 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex
// a boolean noopener are as follows:
// 1. Let chosen be null.
JS::GCPtr<BrowsingContext> chosen = nullptr;
JS::GCPtr<AbstractBrowsingContext> chosen = nullptr;
// 2. Let windowType be "existing or none".
auto window_type = WindowType::ExistingOrNone;
@ -734,7 +734,7 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex
}
// 9. Return chosen and windowType.
return { chosen, window_type };
return { chosen.ptr(), window_type };
}
// https://html.spec.whatwg.org/multipage/browsers.html#document-tree-child-browsing-context