mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user