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:
parent
c4f94b0846
commit
40ec976781
3 changed files with 14 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue