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

Changeset 280884 in webkit


Ignore:
Timestamp:
Aug 10, 2021, 11:10:27 PM (5 years ago)
Author:
Peng Liu
Message:

REGRESSION (r280726): [ Big Sur wk1 ] 25 imported/w3c/web-platform-tests/fetch/ failing
https://bugs.webkit.org/show_bug.cgi?id=228926

Reviewed by Jer Noble.

Revert a part of r280726 while investigating the test failures.

  • WebView/WebPreferencesDefaultValues.mm:

(WebKit::isFeatureFlagEnabled):

Location:
trunk/Source/WebKitLegacy/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r280881 r280884  
     12021-08-10  Peng Liu  <peng.liu6@apple.com>
     2
     3        REGRESSION (r280726): [ Big Sur wk1 ] 25 imported/w3c/web-platform-tests/fetch/ failing
     4        https://bugs.webkit.org/show_bug.cgi?id=228926
     5
     6        Reviewed by Jer Noble.
     7
     8        Revert a part of r280726 while investigating the test failures.
     9
     10        * WebView/WebPreferencesDefaultValues.mm:
     11        (WebKit::isFeatureFlagEnabled):
     12
    1132021-08-10  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm

    r280726 r280884  
    5050#if HAVE(SYSTEM_FEATURE_FLAGS)
    5151
    52 #if PLATFORM(MAC)
    53     static bool isSystemWebKit = [] {
    54         NSBundle *bundle = [NSBundle bundleForClass:NSClassFromString(@"WebView")];
    55         return [bundle.bundlePath hasPrefix:@"/System/"];
    56     }();
    57 
    58     if (isSystemWebKit)
    59         return _os_feature_enabled_impl("WebKit", (const char*)featureName.characters8());
    60 
    61     return defaultValue;
    62 #else
     52    // FIXME: On MacOS, we need to deal with the cases when system feature flags are not available.
     53    // But we need to fix <http://webkit.org/b/228926> first.
     54#if PLATFORM(COCOA)
    6355    UNUSED_PARAM(defaultValue);
    6456    return _os_feature_enabled_impl("WebKit", (const char*)featureName.characters8());
Note: See TracChangeset for help on using the changeset viewer.