1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibWeb: Move pdfViewerSupported's answer to Page

This will also be accessed by navigator.{plugins,mimeTypes} to
determine if they should expose any information.
This commit is contained in:
Luke Wilde 2023-02-28 00:20:09 +00:00 committed by Andreas Kling
parent 57d28c57f7
commit 5e422bdae0
3 changed files with 18 additions and 2 deletions

View file

@ -32,12 +32,11 @@ public:
bool cookie_enabled() const { return true; }
// NavigatorPlugins
// FIXME: Actually support pdf viewing
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-javaenabled
bool java_enabled() const { return false; }
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-pdfviewerenabled
bool pdf_viewer_enabled() const { return false; }
bool pdf_viewer_enabled() const;
bool webdriver() const;