Changeset 266931 in webkit


Ignore:
Timestamp:
Sep 11, 2020 11:53:24 AM (4 years ago)
Author:
jer.noble@apple.com
Message:

[iOS] Add Experimental setting to disable calling PID Inheritance API.
https://bugs.webkit.org/show_bug.cgi?id=216387
<rdar://problem/66286777>

Reviewed by Eric Carlson.

Source/WebCore:

  • page/RuntimeEnabledFeatures.h:

(WebCore::RuntimeEnabledFeatures::setDisableMediaExperiencePIDInheritance):
(WebCore::RuntimeEnabledFeatures::disableMediaExperiencePIDInheritance const):

  • page/Settings.yaml:
  • platform/audio/ios/MediaSessionHelperIOS.mm:

(MediaSessionHelperiOS::providePresentingApplicationPID):

Source/WebKit:

  • Shared/WebPreferences.yaml:
Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r266930 r266931  
     12020-09-11  Jer Noble  <jer.noble@apple.com>
     2
     3        [iOS] Add Experimental setting to disable calling PID Inheritance API.
     4        https://bugs.webkit.org/show_bug.cgi?id=216387
     5        <rdar://problem/66286777>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * page/RuntimeEnabledFeatures.h:
     10        (WebCore::RuntimeEnabledFeatures::setDisableMediaExperiencePIDInheritance):
     11        (WebCore::RuntimeEnabledFeatures::disableMediaExperiencePIDInheritance const):
     12        * page/Settings.yaml:
     13        * platform/audio/ios/MediaSessionHelperIOS.mm:
     14        (MediaSessionHelperiOS::providePresentingApplicationPID):
     15
    1162020-09-11  Zalan Bujtas  <zalan@apple.com>
    217
  • trunk/Source/WebCore/page/RuntimeEnabledFeatures.h

    r266360 r266931  
    290290#endif
    291291
     292#if HAVE(CELESTIAL)
     293    void setDisableMediaExperiencePIDInheritance(bool isDisabled) { m_disableMediaExperiencePIDInheritance = isDisabled; }
     294    bool disableMediaExperiencePIDInheritance() const { return m_disableMediaExperiencePIDInheritance; }
     295#endif
     296
    292297private:
    293298    // Never instantiate.
     
    431436#endif
    432437
     438#if HAVE(CELESTIAL)
     439    bool m_disableMediaExperiencePIDInheritance { false };
     440#endif
     441
    433442    friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>;
    434443};
  • trunk/Source/WebCore/page/Settings.yaml

    r266360 r266931  
    11161116scriptMarkupEnabled:
    11171117  initial: true
    1118 
  • trunk/Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.mm

    r264177 r266931  
    3131#import "Logging.h"
    3232#import "MediaPlaybackTargetCocoa.h"
     33#import "RuntimeEnabledFeatures.h"
    3334#import "WebCoreThreadRun.h"
    3435#import <AVFoundation/AVAudioSession.h>
     
    184185        return;
    185186    m_havePresentedApplicationPID = true;
     187
     188    if (RuntimeEnabledFeatures::sharedFeatures().disableMediaExperiencePIDInheritance())
     189        return;
    186190
    187191    if (!canLoadAVSystemController_PIDToInheritApplicationStateFrom())
  • trunk/Source/WebKit/ChangeLog

    r266929 r266931  
     12020-09-11  Jer Noble  <jer.noble@apple.com>
     2
     3        [iOS] Add Experimental setting to disable calling PID Inheritance API.
     4        https://bugs.webkit.org/show_bug.cgi?id=216387
     5        <rdar://problem/66286777>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * Shared/WebPreferences.yaml:
     10
    1112020-09-11  Kate Cheney  <katherine_cheney@apple.com>
    212
  • trunk/Source/WebKit/Shared/WebPreferences.yaml

    r266360 r266931  
    21582158  category: experimental
    21592159  condition: ENABLE(CORE_IMAGE_ACCELERATED_FILTER_RENDER)
     2160
     2161DisableMediaExperiencePIDInheritance:
     2162  type: bool
     2163  defaultValue: false
     2164  webcoreBinding: RuntimeEnabledFeatures
     2165  humanReadableName: "Disable Media Experience PID Inheritance"
     2166  humanReadableDescription: "Disable Media Experience PID Inheritance"
     2167  category: experimental
     2168  condition: HAVE(CELESTIAL)
Note: See TracChangeset for help on using the changeset viewer.