mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
parent
a0b44ff5e7
commit
85b424464a
Notes:
github-actions[bot]
2025-01-21 16:49:39 +00:00
Author: https://github.com/trflynn89
Commit: 85b424464a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3335
191 changed files with 574 additions and 574 deletions
|
@ -45,7 +45,7 @@ bool Navigator::pdf_viewer_enabled() const
|
|||
{
|
||||
// The NavigatorPlugins mixin's pdfViewerEnabled getter steps are to return the user agent's PDF viewer supported.
|
||||
// NOTE: The NavigatorPlugins mixin should only be exposed on the Window object.
|
||||
auto const& window = verify_cast<HTML::Window>(HTML::current_principal_global_object());
|
||||
auto const& window = as<HTML::Window>(HTML::current_principal_global_object());
|
||||
return window.page().pdf_viewer_supported();
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ bool Navigator::webdriver() const
|
|||
// Returns true if webdriver-active flag is set, false otherwise.
|
||||
|
||||
// NOTE: The NavigatorAutomationInformation interface should not be exposed on WorkerNavigator.
|
||||
auto const& window = verify_cast<HTML::Window>(HTML::current_principal_global_object());
|
||||
auto const& window = as<HTML::Window>(HTML::current_principal_global_object());
|
||||
return window.page().is_webdriver_active();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue