Changeset 262179 in webkit


Ignore:
Timestamp:
May 26, 2020 10:19:45 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

MacApplication::isSafari should allow safari bundle id variants
https://bugs.webkit.org/show_bug.cgi?id=212401

Patch by Alex Christensen <achristensen@webkit.org> on 2020-05-26
Reviewed by Timothy Hatcher.

There is a test environment with bundle ID com.apple.Safari.something.
This change is blocking rdar://problem/63574451

  • platform/cocoa/RuntimeApplicationChecksCocoa.mm:

(WebCore::MacApplication::isSafari):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r262177 r262179  
     12020-05-26  Alex Christensen  <achristensen@webkit.org>
     2
     3        MacApplication::isSafari should allow safari bundle id variants
     4        https://bugs.webkit.org/show_bug.cgi?id=212401
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        There is a test environment with bundle ID com.apple.Safari.something.
     9        This change is blocking rdar://problem/63574451
     10
     11        * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
     12        (WebCore::MacApplication::isSafari):
     13
    1142020-05-26  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/platform/cocoa/RuntimeApplicationChecksCocoa.mm

    r261695 r262179  
    9797bool MacApplication::isSafari()
    9898{
    99     static bool isSafari = applicationBundleIsEqualTo("com.apple.Safari"_s) || applicationBundleIsEqualTo("com.apple.SafariTechnologyPreview"_s);
     99    static bool isSafari = applicationBundleIsEqualTo("com.apple.Safari"_s)
     100        || applicationBundleIsEqualTo("com.apple.SafariTechnologyPreview"_s)
     101        || applicationBundleIdentifier().startsWith("com.apple.Safari.");
    100102    return isSafari;
    101103}
Note: See TracChangeset for help on using the changeset viewer.