Changeset 280327 in webkit
- Timestamp:
- Jul 26, 2021, 5:06:18 PM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r280318 r280327 1 2021-07-26 Jer Noble <jer.noble@apple.com> 2 3 [Cocoa] WebKit is making GroupActivities API calls for all WebKit clients 4 https://bugs.webkit.org/show_bug.cgi?id=228299 5 <rdar://80802982> 6 7 Reviewed by Eric Carlson. 8 9 * Scripts/Preferences/WebPreferencesExperimental.yaml: 10 1 11 2021-07-26 Per Arne <pvollan@apple.com> 2 12 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
r280239 r280327 677 677 default: true 678 678 WebKit: 679 default: true679 default: WebKit::defaultMediaSessionCoordinatorEnabled() 680 680 WebCore: 681 681 default: true -
trunk/Source/WebKit/ChangeLog
r280326 r280327 1 2021-07-26 Jer Noble <jer.noble@apple.com> 2 3 [Cocoa] WebKit is making GroupActivities API calls for all WebKit clients 4 https://bugs.webkit.org/show_bug.cgi?id=228299 5 <rdar://80802982> 6 7 Reviewed by Eric Carlson. 8 9 Tie registering for GroupActivities notifications to the MediaSessionCoordinatorEnabled 10 WebPreference, and make the default value for that preference depend on having the 11 "com.apple.developer.group-session.urlactivity" entitlement. All WebKit clients with 12 that entitlement will have the preference enabled by default; all other clients will 13 have that preference disabled by default. 14 15 * Shared/WebPreferencesDefaultValues.cpp: 16 (WebKit::defaultMediaSessionCoordinatorEnabled): 17 * Shared/WebPreferencesDefaultValues.h: 18 * UIProcess/WebPageProxy.cpp: 19 (WebKit::m_limitsNavigationsToAppBoundDomains): 20 (WebKit::WebPageProxy::~WebPageProxy): 21 (WebKit::WebPageProxy::didCommitLoadForFrame): 22 1 23 2021-07-26 Jer Noble <jer.noble@apple.com> 2 24 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
r279974 r280327 36 36 #endif 37 37 38 #if ENABLE(MEDIA_SESSION_COORDINATOR) 39 #import <wtf/cocoa/Entitlements.h> 40 #endif 41 38 42 namespace WebKit { 39 43 … … 331 335 #endif // ENABLE(MEDIA_SOURCE) 332 336 337 #if ENABLE(MEDIA_SESSION_COORDINATOR) 338 bool defaultMediaSessionCoordinatorEnabled() 339 { 340 static dispatch_once_t onceToken; 341 static bool enabled { false }; 342 dispatch_once(&onceToken, ^{ 343 enabled = WTF::processHasEntitlement("com.apple.developer.group-session.urlactivity"); 344 }); 345 return enabled; 346 } 347 #endif 348 333 349 } // namespace WebKit -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h
r279974 r280327 114 114 #endif 115 115 116 #if ENABLE(MEDIA_SESSION_COORDINATOR) 117 bool defaultMediaSessionCoordinatorEnabled(); 118 #endif 119 116 120 } // namespace WebKit -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r280122 r280327 573 573 574 574 #if ENABLE(MEDIA_SESSION_COORDINATOR) && HAVE(GROUP_ACTIVITIES) 575 GroupActivitiesSessionNotifier::sharedNotifier().addWebPage(*this); 575 if (m_preferences->mediaSessionCoordinatorEnabled()) 576 GroupActivitiesSessionNotifier::sharedNotifier().addWebPage(*this); 576 577 #endif 577 578 } … … 614 615 615 616 #if ENABLE(MEDIA_SESSION_COORDINATOR) && HAVE(GROUP_ACTIVITIES) 616 GroupActivitiesSessionNotifier::sharedNotifier().removeWebPage(*this); 617 if (m_preferences->mediaSessionCoordinatorEnabled()) 618 GroupActivitiesSessionNotifier::sharedNotifier().removeWebPage(*this); 617 619 #endif 618 620 } … … 4945 4947 4946 4948 #if ENABLE(MEDIA_SESSION_COORDINATOR) && HAVE(GROUP_ACTIVITIES) 4947 if (frame->isMainFrame() )4949 if (frame->isMainFrame() && m_preferences->mediaSessionCoordinatorEnabled()) 4948 4950 GroupActivitiesSessionNotifier::sharedNotifier().webPageURLChanged(*this); 4949 4951 #endif
Note:
See TracChangeset
for help on using the changeset viewer.