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

Changeset 271448 in webkit


Ignore:
Timestamp:
Jan 13, 2021, 11:42:29 AM (6 years ago)
Author:
wilander@apple.com
Message:

PCM: Experimental debug mode needs to be read from defaults differently on iOS
https://bugs.webkit.org/show_bug.cgi?id=220573
<rdar://problem/73092137>

Reviewed by Brent Fulgham.

Experimental features on iOS use the prefix "WebKitExperimental" so we
need to read it that way on that platform. PCM is not supported on other
platforms than macOS and iOS at this point.

  • UIProcess/Cocoa/WebProcessPoolCocoa.mm:

(WebKit::WebProcessPool::platformInitializeNetworkProcess):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r271445 r271448  
     12021-01-13  John Wilander  <wilander@apple.com>
     2
     3        PCM: Experimental debug mode needs to be read from defaults differently on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=220573
     5        <rdar://problem/73092137>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Experimental features on iOS use the prefix "WebKitExperimental" so we
     10        need to read it that way on that platform. PCM is not supported on other
     11        platforms than macOS and iOS at this point.
     12
     13        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     14        (WebKit::WebProcessPool::platformInitializeNetworkProcess):
     15
    1162021-01-13  Megan Gardner  <megan_gardner@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r271294 r271448  
    492492
    493493    parameters.enablePrivateClickMeasurement = ![defaults objectForKey:WebPreferencesKey::privateClickMeasurementEnabledKey()] || [defaults boolForKey:WebPreferencesKey::privateClickMeasurementEnabledKey()];
    494     parameters.enablePrivateClickMeasurementDebugMode = [defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::privateClickMeasurementDebugModeEnabledKey().createCFString().get()]];
     494#if PLATFORM(MAC)
     495    NSString *format = @"Experimental%@";
     496#else
     497    NSString *format = @"WebKitExperimental%@";
     498#endif
     499    parameters.enablePrivateClickMeasurementDebugMode = [defaults boolForKey:[NSString stringWithFormat:format, WebPreferencesKey::privateClickMeasurementDebugModeEnabledKey().createCFString().get()]];
    495500}
    496501
Note: See TracChangeset for help on using the changeset viewer.