mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Remove debug spam from Navigator methods
These are logged ~1000 times on fast.com.
This commit is contained in:
parent
908455ab06
commit
76152845fd
Notes:
github-actions[bot]
2024-10-06 16:51:39 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/76152845fdb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1653
1 changed files with 0 additions and 14 deletions
|
@ -25,16 +25,12 @@ String NavigatorIDMixin::app_version() const
|
|||
|
||||
// If the navigator compatibility mode is Chrome or WebKit
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Chrome || navigator_compatibility_mode == NavigatorCompatibilityMode::WebKit) {
|
||||
dbgln("Call to NavigatorIDMixin::app_version, using Chrome or WebKit compatibility mode");
|
||||
|
||||
// Return trail.
|
||||
return trail;
|
||||
}
|
||||
|
||||
// If the navigator compatibility mode is Gecko
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Gecko) {
|
||||
dbgln("Call to NavigatorIDMixin::app_version, using Gecko compatibility mode");
|
||||
|
||||
// If trail starts with "5.0 (Windows", then return "5.0 (Windows)".
|
||||
if (trail.starts_with_bytes("5.0 (Windows"sv, CaseSensitivity::CaseSensitive))
|
||||
return "5.0 (Windows)"_string;
|
||||
|
@ -73,16 +69,12 @@ String NavigatorIDMixin::product_sub() const
|
|||
|
||||
// If the navigator compatibility mode is Chrome or WebKit
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Chrome || navigator_compatibility_mode == NavigatorCompatibilityMode::WebKit) {
|
||||
dbgln("Call to NavigatorIDMixin::product_sub, using Chrome or WebKit compatibility mode");
|
||||
|
||||
// The string "20030107".
|
||||
return "20030107"_string;
|
||||
}
|
||||
|
||||
// If the navigator compatibility mode is Gecko
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Gecko) {
|
||||
dbgln("Call to NavigatorIDMixin::product_sub, using Gecko compatibility mode");
|
||||
|
||||
// The string "20100101".
|
||||
return "20100101"_string;
|
||||
}
|
||||
|
@ -106,24 +98,18 @@ String NavigatorIDMixin::vendor() const
|
|||
|
||||
// If the navigator compatibility mode is Chrome
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Chrome) {
|
||||
dbgln("Call to NavigatorIDMixin::vendor, using Chrome compatibility mode");
|
||||
|
||||
// The string "Google Inc.".
|
||||
return "Google Inc."_string;
|
||||
}
|
||||
|
||||
// If the navigator compatibility mode is Gecko
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::Gecko) {
|
||||
dbgln("Call to NavigatorIDMixin::vendor, using Gecko compatibility mode");
|
||||
|
||||
// The empty string.
|
||||
return ""_string;
|
||||
}
|
||||
|
||||
// If the navigator compatibility mode is WebKit
|
||||
if (navigator_compatibility_mode == NavigatorCompatibilityMode::WebKit) {
|
||||
dbgln("Call to NavigatorIDMixin::vendor, using WebKit compatibility mode");
|
||||
|
||||
// The string "Apple Computer, Inc.".
|
||||
return "Apple Computer, Inc."_string;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue