Bug 213485 - Web Inspector: detect macOS 11 Big Sur from userAgent string
Summary: Web Inspector: detect macOS 11 Big Sur from userAgent string
Status: RESOLVED DUPLICATE of bug 213490
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-22 13:36 PDT by Nikita Vasilyev
Modified: 2022-02-14 16:01 PST (History)
3 users (show)

See Also:


Attachments
Patch (2.62 KB, patch)
2020-06-22 13:47 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2020-06-22 13:36:43 PDT
https://www.apple.com/macos/big-sur-preview/
Comment 1 Radar WebKit Bug Importer 2020-06-22 13:36:57 PDT
<rdar://problem/64606470>
Comment 2 Nikita Vasilyev 2020-06-22 13:47:17 PDT
Created attachment 402509 [details]
Patch
Comment 3 Nikita Vasilyev 2020-06-22 17:06:56 PDT

*** This bug has been marked as a duplicate of bug 213490 ***
Comment 4 Joseph Pecoraro 2022-02-14 16:01:05 PST
Comment on attachment 402509 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402509&action=review

> Source/WebInspectorUI/UserInterface/Base/Platform.js:59
> +    if (baseVersion === "11") {

I think it would be safe to assume you can just check the base version for new releases and don't need a sub-switch on the sub version:

    if (baseVersion === "11") {
        WI.Platform.version.name = "big-sur";
        return;
    }

    console.assert(baseVersion === "10");
    …
Comment 5 Joseph Pecoraro 2022-02-14 16:01:37 PST
Oh wow never mind I just got an update on this multiple years old bug! Sorry!