mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +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:
parent
57d28c57f7
commit
5e422bdae0
3 changed files with 18 additions and 2 deletions
|
@ -114,6 +114,8 @@ public:
|
|||
void dismiss_dialog();
|
||||
void accept_dialog();
|
||||
|
||||
bool pdf_viewer_supported() const { return m_pdf_viewer_supported; }
|
||||
|
||||
private:
|
||||
PageClient& m_client;
|
||||
|
||||
|
@ -139,6 +141,12 @@ private:
|
|||
Optional<Empty> m_pending_alert_response;
|
||||
Optional<bool> m_pending_confirm_response;
|
||||
Optional<DeprecatedString> m_pending_prompt_response;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-supported
|
||||
// Each user agent has a PDF viewer supported boolean, whose value is implementation-defined (and might vary according to user preferences).
|
||||
// Spec Note: This value also impacts the navigation processing model.
|
||||
// FIXME: Actually support pdf viewing
|
||||
bool m_pdf_viewer_supported { false };
|
||||
};
|
||||
|
||||
class PageClient {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue