Changeset 245971 in webkit
- Timestamp:
- May 31, 2019, 10:09:23 AM (7 years ago)
- Location:
- branches/safari-608.1.27-branch
- Files:
-
- 3 deleted
- 23 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios/mediastream/audio-muted-in-background-tab-expected.txt (deleted)
-
LayoutTests/platform/ios/mediastream/audio-muted-in-background-tab.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/SourcesCocoa.txt (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (6 diffs)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
-
Source/WebCore/page/RuntimeEnabledFeatures.h (modified) (2 diffs)
-
Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp (modified) (3 diffs)
-
Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.h (modified) (2 diffs)
-
Source/WebCore/platform/mediastream/RealtimeMediaSourceFactory.h (modified) (3 diffs)
-
Source/WebCore/platform/mediastream/ios/CoreAudioCaptureSourceIOS.mm (modified) (1 diff)
-
Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h (modified) (1 diff)
-
Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp (modified) (1 diff)
-
Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm (deleted)
-
Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp (modified) (2 diffs)
-
Source/WebCore/testing/Internals.cpp (modified) (2 diffs)
-
Source/WebCore/testing/Internals.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.idl (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb (modified) (1 diff)
-
Source/WebKit/Shared/WebPreferences.yaml (modified) (1 diff)
-
Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (modified) (1 diff)
-
Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (modified) (1 diff)
-
Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.cpp (modified) (1 diff)
-
Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1.27-branch/LayoutTests/ChangeLog
r245953 r245971 1 2019-05-31 Kocsen Chung <kocsen_chung@apple.com> 2 3 Revert r245946. rdar://problem/47390407 4 1 5 2019-05-30 Ryosuke Niwa <rniwa@webkit.org> 2 6 -
branches/safari-608.1.27-branch/Source/WebCore/ChangeLog
r245960 r245971 1 2019-05-31 Kocsen Chung <kocsen_chung@apple.com> 2 3 Revert r245946. rdar://problem/47390407 4 1 5 2019-05-31 Joonghun Park <jh718.park@samsung.com> 2 6 -
branches/safari-608.1.27-branch/Source/WebCore/SourcesCocoa.txt
r245946 r245971 543 543 platform/mediastream/mac/RealtimeIncomingVideoSourceCocoa.mm 544 544 platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp 545 platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm546 545 platform/mediastream/mac/RealtimeOutgoingAudioSourceCocoa.cpp 547 546 platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.cpp -
branches/safari-608.1.27-branch/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r245946 r245971 7279 7279 4162A4551011464700DFF3ED /* JSDedicatedWorkerGlobalScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDedicatedWorkerGlobalScope.cpp; sourceTree = "<group>"; }; 7280 7280 4162A4561011464700DFF3ED /* JSDedicatedWorkerGlobalScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDedicatedWorkerGlobalScope.h; sourceTree = "<group>"; }; 7281 416CE4A4229DF12E00A8A686 /* RealtimeMediaSourceCenterMac.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = RealtimeMediaSourceCenterMac.mm; sourceTree = "<group>"; };7282 7281 416D759F20C6441300D02D2C /* NetworkLoadInformation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetworkLoadInformation.h; sourceTree = "<group>"; }; 7283 7282 416E0B37209BC3C2004A95D9 /* FetchIdentifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FetchIdentifier.h; sourceTree = "<group>"; }; … … 15884 15883 5CDD83391E4324BB00621E83 /* RealtimeIncomingVideoSourceCocoa.mm */, 15885 15884 4A0FFAA31AAF5EF60062803B /* RealtimeMediaSourceCenterMac.cpp */, 15886 416CE4A4229DF12E00A8A686 /* RealtimeMediaSourceCenterMac.mm */,15887 15885 41103AA71E39790A00769F14 /* RealtimeOutgoingAudioSourceCocoa.cpp */, 15888 15886 41103AA81E39790A00769F14 /* RealtimeOutgoingAudioSourceCocoa.h */, … … 16389 16387 isa = PBXGroup; 16390 16388 children = ( 16389 6F0CD694229ED32700C5994E /* InlineLine.h */, 16390 6F0CD692229ED31900C5994E /* InlineLine.cpp */, 16391 16391 6FE7DDDD20EC6E8B008B5B4E /* text */, 16392 16392 6F7CA3C9208C2B2E002F29AB /* InlineFormattingContext.cpp */, … … 16399 16399 1123AFDC209ABBBA00736ACC /* InlineInvalidation.h */, 16400 16400 6FE7CFA02177EEF1005B1573 /* InlineItem.h */, 16401 6F0CD692229ED31900C5994E /* InlineLine.cpp */,16402 6F0CD694229ED32700C5994E /* InlineLine.h */,16403 16401 6FB47E612277425A00C7BCB0 /* InlineLineBox.h */, 16404 16402 6FE198132178397B00446F08 /* InlineLineBreaker.cpp */, … … 28194 28192 714C7C671FDAD2A900F2BEE1 /* AnimationPlaybackEventInit.h in Headers */, 28195 28193 71025ECD1F99F0CE004A250C /* AnimationTimeline.h in Headers */, 28194 6F0CD695229ED32700C5994E /* InlineLine.h in Headers */, 28196 28195 0F580FAF149800D400FB5BD8 /* AnimationUtilities.h in Headers */, 28197 28196 57152B5A21CB3E88000C37CA /* ApduCommand.h in Headers */, … … 29499 29498 6FE7CFA22177EEF2005B1573 /* InlineItem.h in Headers */, 29500 29499 BCE789161120D6080060ECE5 /* InlineIterator.h in Headers */, 29501 6F0CD695229ED32700C5994E /* InlineLine.h in Headers */,29502 29500 6FB47E632277425A00C7BCB0 /* InlineLineBox.h in Headers */, 29503 29501 6FE198172178397C00446F08 /* InlineLineBreaker.h in Headers */, -
branches/safari-608.1.27-branch/Source/WebCore/dom/Document.cpp
r245958 r245971 7649 7649 return; 7650 7650 7651 RealtimeMediaSourceCenter::singleton().set CapturePageState(hidden(), page()->isMediaCaptureMuted());7651 RealtimeMediaSourceCenter::singleton().setVideoCapturePageState(hidden(), page()->isMediaCaptureMuted()); 7652 7652 #endif 7653 7653 } -
branches/safari-608.1.27-branch/Source/WebCore/page/RuntimeEnabledFeatures.h
r245946 r245971 357 357 bool pageAtRuleSupportEnabled() const { return m_pageAtRuleSupportEnabled; } 358 358 void setPageAtRuleSupportEnabled(bool isEnabled) { m_pageAtRuleSupportEnabled = isEnabled; } 359 360 bool interruptAudioOnPageVisibilityChangeEnabled() const { return m_interruptAudioOnPageVisibilityChangeEnabled; }361 void setInterruptAudioOnPageVisibilityChangeEnabled(bool enabled) { m_interruptAudioOnPageVisibilityChangeEnabled = enabled; }362 359 363 360 WEBCORE_EXPORT static RuntimeEnabledFeatures& sharedFeatures(); … … 544 541 545 542 bool m_referrerPolicyAttributeEnabled { false }; 546 bool m_interruptAudioOnPageVisibilityChangeEnabled { false };547 543 548 544 friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>; -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp
r245946 r245971 39 39 #include "Logging.h" 40 40 #include "MediaStreamPrivate.h" 41 #include "RuntimeEnabledFeatures.h"42 41 #include <wtf/SHA1.h> 43 42 … … 264 263 } 265 264 266 void RealtimeMediaSourceCenter::setCapturePageState(bool interrupted, bool pageMuted) 267 { 268 if (RuntimeEnabledFeatures::sharedFeatures().interruptAudioOnPageVisibilityChangeEnabled()) 269 audioCaptureFactory().setAudioCapturePageState(interrupted, pageMuted); 265 void RealtimeMediaSourceCenter::setVideoCapturePageState(bool interrupted, bool pageMuted) 266 { 270 267 videoCaptureFactory().setVideoCapturePageState(interrupted, pageMuted); 271 268 } … … 321 318 } 322 319 323 #if !PLATFORM(COCOA)324 bool RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange()325 {326 return false;327 }328 #endif329 330 320 } // namespace WebCore 331 321 -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.h
r245946 r245971 87 87 WEBCORE_EXPORT void setDevicesChangedObserver(std::function<void()>&&); 88 88 89 void set CapturePageState(bool interrupted, bool pageMuted);89 void setVideoCapturePageState(bool, bool); 90 90 91 91 void captureDevicesChanged(); 92 93 WEBCORE_EXPORT static bool shouldInterruptAudioOnPageVisibilityChange();94 92 95 93 private: … … 116 114 VideoCaptureFactory* m_videoCaptureFactoryOverride { nullptr }; 117 115 DisplayCaptureFactory* m_displayCaptureFactoryOverride { nullptr }; 118 119 bool m_shouldInterruptAudioOnPageVisibilityChange { false };120 116 }; 121 117 -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/RealtimeMediaSourceFactory.h
r245946 r245971 58 58 virtual CaptureSourceOrError createAudioCaptureSource(const CaptureDevice&, String&&, const MediaConstraints*) = 0; 59 59 virtual CaptureDeviceManager& audioCaptureDeviceManager() = 0; 60 virtual void setAudioCapturePageState(bool interrupted, bool pageMuted)61 {62 UNUSED_PARAM(interrupted);63 UNUSED_PARAM(pageMuted);64 }65 60 66 61 protected: … … 77 72 virtual CaptureSourceOrError createVideoCaptureSource(const CaptureDevice&, String&&, const MediaConstraints*) = 0; 78 73 virtual CaptureDeviceManager& videoCaptureDeviceManager() = 0; 79 virtual void setVideoCapturePageState(bool interrupted, bool pageMuted) 80 { 81 UNUSED_PARAM(interrupted); 82 UNUSED_PARAM(pageMuted); 83 } 74 virtual void setVideoCapturePageState(bool, bool) { } 84 75 85 76 protected: … … 92 83 virtual CaptureSourceOrError createDisplayCaptureSource(const CaptureDevice&, const MediaConstraints*) = 0; 93 84 virtual CaptureDeviceManager& displayCaptureDeviceManager() = 0; 85 virtual void setDisplayCapturePageState(bool , bool) { } 94 86 95 87 protected: -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/ios/CoreAudioCaptureSourceIOS.mm
r245946 r245971 127 127 } 128 128 129 void CoreAudioCaptureSourceFactory::setAudioCapturePageState(bool interrupted, bool pageMuted)130 {131 if (auto* activeSource = this->activeSource())132 activeSource->setInterrupted(interrupted, pageMuted);133 }134 135 129 } 136 130 -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h
r245946 r245971 143 143 144 144 CaptureDeviceManager& audioCaptureDeviceManager() final; 145 #if PLATFORM(IOS_FAMILY)146 void setAudioCapturePageState(bool interrupted, bool pageMuted) final;147 #endif148 145 }; 149 146 -
branches/safari-608.1.27-branch/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp
r245946 r245971 39 39 #include "Logging.h" 40 40 #include "MediaStreamPrivate.h" 41 #include "RuntimeEnabledFeatures.h"42 41 #include "ScreenDisplayCaptureSourceMac.h" 43 42 #include "WindowDisplayCaptureSourceMac.h" -
branches/safari-608.1.27-branch/Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp
r245946 r245971 97 97 private: 98 98 #if PLATFORM(IOS_FAMILY) 99 void setVideoCapturePageState(bool interrupted, bool pageMuted) final99 void setVideoCapturePageState(bool interrupted, bool pageMuted) 100 100 { 101 101 if (activeSource()) … … 140 140 } 141 141 private: 142 #if PLATFORM(IOS_FAMILY)143 void setAudioCapturePageState(bool interrupted, bool pageMuted) final144 {145 if (activeSource())146 activeSource()->setInterrupted(interrupted, pageMuted);147 }148 #endif149 142 CaptureDeviceManager& audioCaptureDeviceManager() final { return MockRealtimeMediaSourceCenter::singleton().audioCaptureDeviceManager(); } 150 143 }; -
branches/safari-608.1.27-branch/Source/WebCore/testing/Internals.cpp
r245947 r245971 533 533 534 534 MediaEngineConfigurationFactory::disableMock(); 535 536 #if ENABLE(MEDIA_STREAM)537 RuntimeEnabledFeatures::sharedFeatures().setInterruptAudioOnPageVisibilityChangeEnabled(false);538 #endif539 535 } 540 536 … … 1507 1503 1508 1504 #if ENABLE(MEDIA_STREAM) 1509 void Internals::setShouldInterruptAudioOnPageVisibilityChange(bool shouldInterrupt)1510 {1511 RuntimeEnabledFeatures::sharedFeatures().setInterruptAudioOnPageVisibilityChangeEnabled(shouldInterrupt);1512 }1513 1505 1514 1506 void Internals::setMockMediaCaptureDevicesEnabled(bool enabled) -
branches/safari-608.1.27-branch/Source/WebCore/testing/Internals.h
r245947 r245971 517 517 518 518 #if ENABLE(MEDIA_STREAM) 519 void setShouldInterruptAudioOnPageVisibilityChange(bool);520 519 void setMockMediaCaptureDevicesEnabled(bool); 521 520 void setMediaCaptureRequiresSecureConnection(bool); -
branches/safari-608.1.27-branch/Source/WebCore/testing/Internals.idl
r245947 r245971 673 673 [Conditional=WEB_RTC] void applyRotationForOutgoingVideoSources(RTCPeerConnection connection); 674 674 675 [Conditional=MEDIA_STREAM] void setShouldInterruptAudioOnPageVisibilityChange(boolean shouldInterrupt);676 675 [Conditional=MEDIA_STREAM] void setCameraMediaStreamTrackOrientation(MediaStreamTrack track, short orientation); 677 676 [Conditional=MEDIA_STREAM] void observeMediaStreamTrack(MediaStreamTrack track); -
branches/safari-608.1.27-branch/Source/WebKit/ChangeLog
r245957 r245971 1 2019-05-31 Kocsen Chung <kocsen_chung@apple.com> 2 3 Revert r245946. rdar://problem/47390407 4 1 5 2019-05-31 Carlos Garcia Campos <cgarcia@igalia.com> 2 6 -
branches/safari-608.1.27-branch/Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb
r245946 r245971 37 37 #include <WebCore/DeprecatedGlobalSettings.h> 38 38 #include <WebCore/LibWebRTCProvider.h> 39 #include <WebCore/RealtimeMediaSourceCenter.h>40 39 #include <WebCore/SecurityOrigin.h> 41 40 #include <WebCore/Settings.h> -
branches/safari-608.1.27-branch/Source/WebKit/Shared/WebPreferences.yaml
r245946 r245971 546 546 condition: ENABLE(WEB_RTC) 547 547 548 InterruptAudioOnPageVisibilityChangeEnabled:549 type: bool550 defaultValue: WebCore::RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange()551 webcoreBinding: RuntimeEnabledFeatures552 condition: ENABLE(MEDIA_STREAM)553 554 548 WebRTCUnifiedPlanEnabled: 555 549 type: bool -
branches/safari-608.1.27-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm
r245946 r245971 650 650 } 651 651 652 - (BOOL)_interruptAudioOnPageVisibilityChangeEnabled653 {654 return _preferences->interruptAudioOnPageVisibilityChangeEnabled();655 }656 657 - (void)_setInterruptAudioOnPageVisibilityChangeEnabled:(BOOL)enabled658 {659 _preferences->setInterruptAudioOnPageVisibilityChangeEnabled(enabled);660 }661 662 652 - (BOOL)_enumeratingAllNetworkInterfacesEnabled 663 653 { -
branches/safari-608.1.27-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h
r245946 r245971 121 121 @property (nonatomic, setter=_setWebRTCLegacyAPIEnabled:) BOOL _webRTCLegacyAPIEnabled WK_API_AVAILABLE(macos(10.13), ios(11.0)); 122 122 @property (nonatomic, setter=_setInactiveMediaCaptureSteamRepromptIntervalInMinutes:) double _inactiveMediaCaptureSteamRepromptIntervalInMinutes WK_API_AVAILABLE(macos(10.13.4), ios(11.3)); 123 @property (nonatomic, setter=_setInterruptAudioOnPageVisibilityChangeEnabled:) BOOL _interruptAudioOnPageVisibilityChangeEnabled WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));124 123 125 124 @property (nonatomic, setter=_setJavaScriptCanAccessClipboard:) BOOL _javaScriptCanAccessClipboard WK_API_AVAILABLE(macos(10.13), ios(11.0)); -
branches/safari-608.1.27-branch/Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.cpp
r245946 r245971 367 367 } 368 368 369 #if PLATFORM(IOS) 370 void UserMediaCaptureManager::setAudioCapturePageState(bool interrupted, bool pageMuted) 371 { 372 if (auto* activeSource = static_cast<AudioCaptureFactory*>(this)->activeSource()) 373 activeSource->setInterrupted(interrupted, pageMuted); 374 } 375 376 void UserMediaCaptureManager::setVideoCapturePageState(bool interrupted, bool pageMuted) 377 { 378 if (auto* activeSource = static_cast<VideoCaptureFactory*>(this)->activeSource()) 379 activeSource->setInterrupted(interrupted, pageMuted); 380 } 369 } 370 381 371 #endif 382 383 }384 385 #endif -
branches/safari-608.1.27-branch/Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.h
r245946 r245971 80 80 WebCore::CaptureDeviceManager& displayCaptureDeviceManager() final { return m_noOpCaptureDeviceManager; } 81 81 82 #if PLATFORM(IOS_FAMILY)83 void setAudioCapturePageState(bool interrupted, bool pageMuted) final;84 void setVideoCapturePageState(bool interrupted, bool pageMuted) final;85 #endif86 87 82 // IPC::MessageReceiver 88 83 void didReceiveMessage(IPC::Connection&, IPC::Decoder&) final;
Note:
See TracChangeset
for help on using the changeset viewer.