⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236474 in webkit


Ignore:
Timestamp:
Sep 25, 2018, 2:06:31 PM (8 years ago)
Author:
achristensen@apple.com
Message:

Allow for suffixes to com.apple.WebKit.WebContent
​https://bugs.webkit.org/show_bug.cgi?id=189972

Reviewed by Chris Dumez.

Source/bmalloc:

  • bmalloc/ProcessCheck.mm:

(bmalloc::gigacageEnabledForProcess):

Source/WebCore:

  • platform/cocoa/RuntimeApplicationChecksCocoa.mm:

(WebCore::isInWebProcess):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236468 r236474  
     12018-09-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Allow for suffixes to com.apple.WebKit.WebContent
     4        https://bugs.webkit.org/show_bug.cgi?id=189972
     5
     6        Reviewed by Chris Dumez.
     7
     8        * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
     9        (WebCore::isInWebProcess):
     10
    1112018-09-25  Wenson Hsieh  <wenson_hsieh@apple.com>
    212
  • trunk/Source/WebCore/platform/cocoa/RuntimeApplicationChecksCocoa.mm

    r234447 r236474  
    8787bool isInWebProcess()
    8888{
    89     static bool mainBundleIsWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent.Development"]
    90         || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent"]
    91         || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebProcess"];
     89    static bool mainBundleIsWebProcess = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@"com.apple.WebKit.WebContent"];
    9290    return mainBundleIsWebProcess;
    9391}
  • trunk/Source/bmalloc/ChangeLog

    r236450 r236474  
     12018-09-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Allow for suffixes to com.apple.WebKit.WebContent
     4        https://bugs.webkit.org/show_bug.cgi?id=189972
     5
     6        Reviewed by Chris Dumez.
     7
     8        * bmalloc/ProcessCheck.mm:
     9        (bmalloc::gigacageEnabledForProcess):
     10
    1112018-09-24  Fujii Hironori  <Hironori.Fujii@sony.com>
    212
  • trunk/Source/bmalloc/bmalloc/ProcessCheck.mm

    r233773 r236474  
    3939    NSString *appName = [[NSBundle mainBundle] bundleIdentifier];
    4040    if (appName) {
    41         bool isWebProcess = [appName isEqualToString:@"com.apple.WebKit.WebContent.Development"]
    42             || [appName isEqualToString:@"com.apple.WebKit.WebContent"]
    43             || [appName isEqualToString:@"com.apple.WebProcess"];
     41        bool isWebProcess = [appName hasPrefix:@"com.apple.WebKit.WebContent"];
    4442        return isWebProcess;
    4543    }
Note: See TracChangeset for help on using the changeset viewer.