mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:45:06 +00:00
LibWeb: Make HTML::Window::page() return a Page&
This commit is contained in:
parent
7c95ebc302
commit
9793d69d4f
10 changed files with 40 additions and 83 deletions
|
@ -38,8 +38,7 @@ Vector<String> PluginArray::supported_property_names() const
|
|||
{
|
||||
// The PluginArray interface supports named properties. If the user agent's PDF viewer supported is true, then they are the PDF viewer plugin names. 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-plugin-names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue