mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWeb: Make HTML::Window::page() return a Page&
This commit is contained in:
@@ -56,8 +56,7 @@ Vector<String> Plugin::supported_property_names() const
|
||||
{
|
||||
// The Plugin interface supports named properties. If the user agent's PDF viewer supported is true, then they are the PDF viewer mime types. Otherwise, they are the empty list.
|
||||
auto const& window = verify_cast<HTML::Window>(HTML::relevant_global_object(*this));
|
||||
VERIFY(window.page());
|
||||
if (!window.page()->pdf_viewer_supported())
|
||||
if (!window.page().pdf_viewer_supported())
|
||||
return {};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-mime-types
|
||||
|
||||
Reference in New Issue
Block a user