WebKit Bugzilla
Attachment 339120 Details for
Bug 185136
: [MediaStream] remove WK1 support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch
bug-185136-20180430100305.patch (text/plain), 34.36 KB, created by
Eric Carlson
on 2018-04-30 10:03:06 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Eric Carlson
Created:
2018-04-30 10:03:06 PDT
Size:
34.36 KB
patch
obsolete
>Subversion Revision: 230915 >diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index 30b9aaafd35d528f75eb9f8e9ab4a875389b2af1..4cd7418c1ab4f0e05ebf8827dcf60a3b8662dec8 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,16 @@ >+2018-04-30 Eric Carlson <eric.carlson@apple.com> >+ >+ [MediaStream] remove WK1 support >+ https://bugs.webkit.org/show_bug.cgi?id=185136 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * WebKit.xcodeproj/project.pbxproj: >+ * WebProcess/WebCoreSupport/WebUserMediaClient.cpp: Removed. >+ * WebProcess/WebCoreSupport/WebUserMediaClient.h: Removed. >+ * WebProcess/WebPage/WebPage.cpp: >+ (WebKit::m_credentialsMessenger): >+ > 2018-04-23 Zan Dobersek <zdobersek@igalia.com> > > [CoordGraphics] Remove unused trajectory cruft in CoordinatedLayerTreeHost, CoordinatedGraphicsLayer >diff --git a/Source/WebKitLegacy/ChangeLog b/Source/WebKitLegacy/ChangeLog >index 688b84e012d977c903d3490fb86e2420d8570f5c..87210098f4b7697b3005834a99b76f2d426b55de 100644 >--- a/Source/WebKitLegacy/ChangeLog >+++ b/Source/WebKitLegacy/ChangeLog >@@ -1,3 +1,12 @@ >+2018-04-30 Eric Carlson <eric.carlson@apple.com> >+ >+ [MediaStream] remove WK1 support >+ https://bugs.webkit.org/show_bug.cgi?id=185136 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * WebKitLegacy.xcodeproj/project.pbxproj: >+ > 2018-04-16 Youenn Fablet <youenn@apple.com> > > Use NetworkLoadChecker to handle synchronous HTTP loads >diff --git a/Source/WebKitLegacy/mac/ChangeLog b/Source/WebKitLegacy/mac/ChangeLog >index 20282c75dc0ce12b8eb8a63c77bc3d8a64df31a1..d04aad5e27dcbe4887e162bc1941cb53416e0ee0 100644 >--- a/Source/WebKitLegacy/mac/ChangeLog >+++ b/Source/WebKitLegacy/mac/ChangeLog >@@ -1,3 +1,20 @@ >+2018-04-30 Eric Carlson <eric.carlson@apple.com> >+ >+ [MediaStream] remove WK1 support >+ https://bugs.webkit.org/show_bug.cgi?id=185136 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * WebCoreSupport/WebUserMediaClient.h: Removed. >+ * WebCoreSupport/WebUserMediaClient.mm: Removed. >+ * WebView/WebView.mm: >+ (-[WebView _commonInitializationWithFrameName:groupName:]): >+ (-[WebView _preferencesChanged:]): >+ (-[WebView _setUserMediaClient:]): Deleted. >+ (-[WebView _userMediaClient]): Deleted. >+ * WebView/WebViewData.h: >+ * WebView/WebViewPrivate.h: >+ > 2018-04-20 Timothy Hatcher <timothy@apple.com> > > NULL dereference crash sometimes under [super initWithCoder:] in WebView >diff --git a/Source/WebKit/WebKit.xcodeproj/project.pbxproj b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >index 882bb8aadb2dc01184c4c3fb77fb7f36e5ff9ab4..b6283be1b2a64643d3fa8b357a2f211db25fe804 100644 >--- a/Source/WebKit/WebKit.xcodeproj/project.pbxproj >+++ b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >@@ -123,8 +123,6 @@ > 0FF2649F1A1FF9C6001FE759 /* RemoteLayerTreeScrollingPerformanceData.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F707C771A1FEE8300DA7A45 /* RemoteLayerTreeScrollingPerformanceData.mm */; }; > 0FF264A01A1FF9CC001FE759 /* RemoteLayerTreeScrollingPerformanceData.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F707C791A1FEEA300DA7A45 /* RemoteLayerTreeScrollingPerformanceData.h */; }; > 15739BBC1B42040300D258C1 /* UserMediaPermissionRequestManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A410F4219AF7B27002EBAB5 /* UserMediaPermissionRequestManager.cpp */; }; >- 15739BBD1B42042D00D258C1 /* WebUserMediaClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A410F4919AF7B80002EBAB5 /* WebUserMediaClient.h */; }; >- 15739BBE1B42046600D258C1 /* WebUserMediaClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A410F4819AF7B80002EBAB5 /* WebUserMediaClient.cpp */; }; > 1A002D43196B337000B9AD44 /* _WKSessionStateInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A002D42196B337000B9AD44 /* _WKSessionStateInternal.h */; }; > 1A002D44196B338900B9AD44 /* _WKSessionState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A002D3F196B329400B9AD44 /* _WKSessionState.h */; settings = {ATTRIBUTES = (Private, ); }; }; > 1A002D45196B338E00B9AD44 /* _WKSessionState.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A002D3E196B329400B9AD44 /* _WKSessionState.mm */; }; >@@ -3381,8 +3379,6 @@ > 4A410F3C19AF7B04002EBAB5 /* UserMediaPermissionRequestProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaPermissionRequestProxy.h; sourceTree = "<group>"; }; > 4A410F4219AF7B27002EBAB5 /* UserMediaPermissionRequestManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UserMediaPermissionRequestManager.cpp; sourceTree = "<group>"; }; > 4A410F4319AF7B27002EBAB5 /* UserMediaPermissionRequestManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaPermissionRequestManager.h; sourceTree = "<group>"; }; >- 4A410F4819AF7B80002EBAB5 /* WebUserMediaClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebUserMediaClient.cpp; sourceTree = "<group>"; }; >- 4A410F4919AF7B80002EBAB5 /* WebUserMediaClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebUserMediaClient.h; sourceTree = "<group>"; }; > 4F601430155C5A32001FBDE0 /* BlockingResponseMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BlockingResponseMap.h; sourceTree = "<group>"; }; > 510031F61379CACB00C8DFE4 /* SecItemShim.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = SecItemShim.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; > 51021E9B12B16788005C033C /* WebContextMenuClientMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebContextMenuClientMac.mm; sourceTree = "<group>"; }; >@@ -7144,8 +7140,6 @@ > 1A1E093218861D3800D2DC49 /* WebProgressTrackerClient.h */, > D3B9484411FF4B6500032B39 /* WebSearchPopupMenu.cpp */, > D3B9484511FF4B6500032B39 /* WebSearchPopupMenu.h */, >- 4A410F4819AF7B80002EBAB5 /* WebUserMediaClient.cpp */, >- 4A410F4919AF7B80002EBAB5 /* WebUserMediaClient.h */, > 83EE57591DB7D60600C74C50 /* WebValidationMessageClient.cpp */, > 83EE575A1DB7D60600C74C50 /* WebValidationMessageClient.h */, > ); >@@ -9432,7 +9426,6 @@ > 1AAF08B819269E6D00B6390C /* WebUserContentControllerMessages.h in Headers */, > 1AAF08A2192681D100B6390C /* WebUserContentControllerProxy.h in Headers */, > 7C361D79192803BD0036A59D /* WebUserContentControllerProxyMessages.h in Headers */, >- 15739BBD1B42042D00D258C1 /* WebUserMediaClient.h in Headers */, > 83EE575C1DB7D61100C74C50 /* WebValidationMessageClient.h in Headers */, > 2DFC7DBB1BCCC19500C1548C /* WebViewImpl.h in Headers */, > A1DAFDDF207E9B16005E8A52 /* WiFiAssertionHolder.h in Headers */, >@@ -10682,6 +10675,7 @@ > 2D50365E1BCC793F00E20BB3 /* NativeWebGestureEventMac.mm in Sources */, > 2DA9449E1884E4F000ED86DB /* NativeWebKeyboardEventIOS.mm in Sources */, > C02BFF1E1251502E009CCBEA /* NativeWebKeyboardEventMac.mm in Sources */, >+ 1C9EBA5C2087E74F00054429 /* NativeWebMouseEventIOS.mm in Sources */, > 31EA25D2134F78C0005B1452 /* NativeWebMouseEventMac.mm in Sources */, > 2DA9449F1884E4F000ED86DB /* NativeWebTouchEventIOS.mm in Sources */, > DF58C6361371ACA000F9A37C /* NativeWebWheelEventMac.mm in Sources */, >@@ -10708,7 +10702,6 @@ > 832AE2531BE2E8CD00FAAE10 /* NetworkCacheSpeculativeLoadManager.cpp in Sources */, > 83BDCCB91AC5FDB6003F6441 /* NetworkCacheStatistics.cpp in Sources */, > E4436ED01A0D040B00EAD204 /* NetworkCacheStorage.cpp in Sources */, >- 1C9EBA5C2087E74F00054429 /* NativeWebMouseEventIOS.mm in Sources */, > 8310428C1BD6B66F00A715E4 /* NetworkCacheSubresourcesEntry.cpp in Sources */, > 5302583D1DCBBD2200DA89C2 /* NetworkCaptureEvent.cpp in Sources */, > 530258401DCBBD2200DA89C2 /* NetworkCaptureManager.cpp in Sources */, >@@ -11218,7 +11211,6 @@ > 1AAF08B719269E6D00B6390C /* WebUserContentControllerMessageReceiver.cpp in Sources */, > 1AAF08A1192681D100B6390C /* WebUserContentControllerProxy.cpp in Sources */, > 7C361D78192803BD0036A59D /* WebUserContentControllerProxyMessageReceiver.cpp in Sources */, >- 15739BBE1B42046600D258C1 /* WebUserMediaClient.cpp in Sources */, > 83EE575B1DB7D61100C74C50 /* WebValidationMessageClient.cpp in Sources */, > 2DFC7DBC1BCCC19500C1548C /* WebViewImpl.mm in Sources */, > C0337DD1127A2980008FF4F4 /* WebWheelEvent.cpp in Sources */, >diff --git a/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.cpp b/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.cpp >deleted file mode 100644 >index 6f605742eec304202a6404b535bca7c5559b4fd1..0000000000000000000000000000000000000000 >--- a/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.cpp >+++ /dev/null >@@ -1,67 +0,0 @@ >-/* >- * Copyright (C) 2014 Igalia S.L. >- * Copyright (C) 2016 Apple Inc. All rights reserved. >- * >- * This library is free software; you can redistribute it and/or >- * modify it under the terms of the GNU Lesser General Public >- * License as published by the Free Software Foundation; either >- * version 2 of the License, or (at your option) any later version. >- * >- * This library is distributed in the hope that it will be useful, >- * but WITHOUT ANY WARRANTY; without even the implied warranty of >- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >- * Lesser General Public License for more details. >- * >- * You should have received a copy of the GNU Lesser General Public >- * License along with this library; if not, write to the Free Software >- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA >- */ >- >-#include "config.h" >-#include "WebUserMediaClient.h" >- >-#if ENABLE(MEDIA_STREAM) >- >-#include "UserMediaPermissionRequestManager.h" >-#include "WebPage.h" >-#include <WebCore/UserMediaController.h> >-#include <WebCore/UserMediaRequest.h> >- >-using namespace WebCore; >- >-namespace WebKit { >- >-WebUserMediaClient::WebUserMediaClient(WebPage& page) >- : m_page(page) >-{ >-} >- >-void WebUserMediaClient::pageDestroyed() >-{ >- delete this; >-} >- >-void WebUserMediaClient::requestUserMediaAccess(UserMediaRequest& request) >-{ >- m_page.prepareToSendUserMediaPermissionRequest(); >- m_page.userMediaPermissionRequestManager().startUserMediaRequest(request); >-} >- >-void WebUserMediaClient::cancelUserMediaAccessRequest(UserMediaRequest& request) >-{ >- m_page.userMediaPermissionRequestManager().cancelUserMediaRequest(request); >-} >- >-void WebUserMediaClient::enumerateMediaDevices(MediaDevicesEnumerationRequest& request) >-{ >- m_page.userMediaPermissionRequestManager().enumerateMediaDevices(request); >-} >- >-void WebUserMediaClient::cancelMediaDevicesEnumerationRequest(MediaDevicesEnumerationRequest& request) >-{ >- m_page.userMediaPermissionRequestManager().cancelMediaDevicesEnumeration(request); >-} >- >-} // namespace WebKit; >- >-#endif // MEDIA_STREAM >diff --git a/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.h b/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.h >deleted file mode 100644 >index a6e313262d5ba7c4baf43bd304f3d8698094f36c..0000000000000000000000000000000000000000 >--- a/Source/WebKit/WebProcess/WebCoreSupport/WebUserMediaClient.h >+++ /dev/null >@@ -1,54 +0,0 @@ >-/* >- * Copyright (C) 2014 Igalia S.L. >- * Copyright (C) 2016 Apple Inc. All rights reserved. >- * >- * This library is free software; you can redistribute it and/or >- * modify it under the terms of the GNU Lesser General Public >- * License as published by the Free Software Foundation; either >- * version 2 of the License, or (at your option) any later version. >- * >- * This library is distributed in the hope that it will be useful, >- * but WITHOUT ANY WARRANTY; without even the implied warranty of >- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >- * Lesser General Public License for more details. >- * >- * You should have received a copy of the GNU Lesser General Public >- * License along with this library; if not, write to the Free Software >- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA >- */ >- >-#ifndef WebUserMediaClient_h >-#define WebUserMediaClient_h >- >-#if ENABLE(MEDIA_STREAM) >- >-#include <WebCore/UserMediaClient.h> >- >-namespace WebKit { >- >-class WebPage; >- >-class WebUserMediaClient : public WebCore::UserMediaClient { >-public: >- WebUserMediaClient(WebPage&); >- ~WebUserMediaClient() { } >- >-private: >- void pageDestroyed() override; >- >- void requestUserMediaAccess(WebCore::UserMediaRequest&) override; >- void cancelUserMediaAccessRequest(WebCore::UserMediaRequest&) override; >- >- void enumerateMediaDevices(WebCore::MediaDevicesEnumerationRequest&) final; >- void cancelMediaDevicesEnumerationRequest(WebCore::MediaDevicesEnumerationRequest&) final; >- >- void initializeFactories(); >- >- WebPage& m_page; >-}; >- >-} // namespace WebCore >- >-#endif // ENABLE(MEDIA_STREAM) >- >-#endif // WebUserMediaClient_h >diff --git a/Source/WebKit/WebProcess/WebPage/WebPage.cpp b/Source/WebKit/WebProcess/WebPage/WebPage.cpp >index e4243c073da6469c4b7666fcba031a98c29fc495..076addf9a0f8221d7af3bc198ae39c9d9c01b73e 100644 >--- a/Source/WebKit/WebProcess/WebPage/WebPage.cpp >+++ b/Source/WebKit/WebProcess/WebPage/WebPage.cpp >@@ -120,7 +120,6 @@ > #include "WebURLSchemeHandlerProxy.h" > #include "WebUndoStep.h" > #include "WebUserContentController.h" >-#include "WebUserMediaClient.h" > #include "WebValidationMessageClient.h" > #include "WebsiteDataStoreParameters.h" > #include <JavaScriptCore/APICast.h> >@@ -465,9 +464,6 @@ WebPage::WebPage(uint64_t pageID, WebPageCreationParameters&& parameters) > #if ENABLE(NOTIFICATIONS) > WebCore::provideNotification(m_page.get(), new WebNotificationClient(this)); > #endif >-#if ENABLE(MEDIA_STREAM) >- WebCore::provideUserMediaTo(m_page.get(), new WebUserMediaClient(*this)); >-#endif > > m_page->setControlledByAutomation(parameters.controlledByAutomation); > >diff --git a/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj b/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj >index cb91cc3d362183f77bdb3bef93003b29def0c3c9..0aefd1b2c2deff15b4e29dcd452274359b668918 100644 >--- a/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj >+++ b/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj >@@ -11,8 +11,6 @@ > 065AD5A40B0C32C7005A2B1D /* WebContextMenuClient.mm in Sources */ = {isa = PBXBuildFile; fileRef = 065AD5A20B0C32C7005A2B1D /* WebContextMenuClient.mm */; }; > 06693DDC0BFBA85200216072 /* WebInspectorClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 06693DDA0BFBA85200216072 /* WebInspectorClient.h */; }; > 06693DDD0BFBA85200216072 /* WebInspectorClient.mm in Sources */ = {isa = PBXBuildFile; fileRef = 06693DDB0BFBA85200216072 /* WebInspectorClient.mm */; }; >- 070F549B17F1E42B00169E04 /* WebUserMediaClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 070F549917F1E42B00169E04 /* WebUserMediaClient.h */; }; >- 070F549C17F1E42B00169E04 /* WebUserMediaClient.mm in Sources */ = {isa = PBXBuildFile; fileRef = 070F549A17F1E42B00169E04 /* WebUserMediaClient.mm */; }; > 072E5F451ABF88750003B164 /* WebMediaPlaybackTargetPicker.h in Headers */ = {isa = PBXBuildFile; fileRef = 072E5F431ABF88750003B164 /* WebMediaPlaybackTargetPicker.h */; }; > 072E5F461ABF88750003B164 /* WebMediaPlaybackTargetPicker.mm in Sources */ = {isa = PBXBuildFile; fileRef = 072E5F441ABF88750003B164 /* WebMediaPlaybackTargetPicker.mm */; }; > 1430C12C1B2C5DF700DEA01D /* WebViewGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1430C12A1B2C5DF700DEA01D /* WebViewGroup.cpp */; }; >@@ -806,8 +804,6 @@ > 065AD5A20B0C32C7005A2B1D /* WebContextMenuClient.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = WebContextMenuClient.mm; sourceTree = "<group>"; }; > 06693DDA0BFBA85200216072 /* WebInspectorClient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebInspectorClient.h; sourceTree = "<group>"; }; > 06693DDB0BFBA85200216072 /* WebInspectorClient.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebInspectorClient.mm; sourceTree = "<group>"; }; >- 070F549917F1E42B00169E04 /* WebUserMediaClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebUserMediaClient.h; sourceTree = "<group>"; }; >- 070F549A17F1E42B00169E04 /* WebUserMediaClient.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebUserMediaClient.mm; sourceTree = "<group>"; }; > 072E5F431ABF88750003B164 /* WebMediaPlaybackTargetPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebMediaPlaybackTargetPicker.h; sourceTree = "<group>"; }; > 072E5F441ABF88750003B164 /* WebMediaPlaybackTargetPicker.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebMediaPlaybackTargetPicker.mm; sourceTree = "<group>"; }; > 1430C12A1B2C5DF700DEA01D /* WebViewGroup.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; name = WebViewGroup.cpp; path = WebCoreSupport/WebViewGroup.cpp; sourceTree = SOURCE_ROOT; }; >@@ -2618,8 +2614,6 @@ > A5DEFC0911D5331C00885273 /* WebSecurityOriginPrivate.h */, > 2DD632C019E5D1F0002E9C7B /* WebSelectionServiceController.h */, > 2DD632C119E5D1F0002E9C7B /* WebSelectionServiceController.mm */, >- 070F549917F1E42B00169E04 /* WebUserMediaClient.h */, >- 070F549A17F1E42B00169E04 /* WebUserMediaClient.mm */, > 4618DFF61DEF760A0033C3AA /* WebValidationMessageClient.h */, > 4618DFF71DEF760A0033C3AA /* WebValidationMessageClient.mm */, > 1430C12A1B2C5DF700DEA01D /* WebViewGroup.cpp */, >@@ -3175,7 +3169,6 @@ > A10C1D3D18202FC50036883A /* WebUIKitSupport.h in Headers */, > 939810150824BF01008DF038 /* WebURLsWithTitles.h in Headers */, > C0C5B3EE1177A4A0002B0AEF /* WebUserContentURLPattern.h in Headers */, >- 070F549B17F1E42B00169E04 /* WebUserMediaClient.h in Headers */, > 4618DFF81DEF760A0033C3AA /* WebValidationMessageClient.h in Headers */, > 939810700824BF01008DF038 /* WebView.h in Headers */, > BC2E464D0FD8A96800A9D9DE /* WebViewData.h in Headers */, >@@ -3689,7 +3682,6 @@ > A10C1D3E18202FC50036883A /* WebUIKitSupport.mm in Sources */, > 939810BE0824BF01008DF038 /* WebURLsWithTitles.m in Sources */, > C0C5B3EF1177A4A0002B0AEF /* WebUserContentURLPattern.mm in Sources */, >- 070F549C17F1E42B00169E04 /* WebUserMediaClient.mm in Sources */, > 4618DFF91DEF760A0033C3AA /* WebValidationMessageClient.mm in Sources */, > C1D81128202CD80000EE74F9 /* WebVideoFullscreenController.mm in Sources */, > C1D8112B202CDCC400EE74F9 /* WebVideoFullscreenHUDWindowController.mm in Sources */, >diff --git a/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.h b/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.h >deleted file mode 100644 >index 283cc3786b54ca6b3e04bd924c9f2a5adcecf94a..0000000000000000000000000000000000000000 >--- a/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.h >+++ /dev/null >@@ -1,54 +0,0 @@ >-/* >- * Copyright (C) 2013-2016 Apple Inc. All rights reserved. >- * >- * Redistribution and use in source and binary forms, with or without >- * modification, are permitted provided that the following conditions >- * are met: >- * 1. Redistributions of source code must retain the above copyright >- * notice, this list of conditions and the following disclaimer. >- * 2. Redistributions in binary form must reproduce the above copyright >- * notice, this list of conditions and the following disclaimer in the >- * documentation and/or other materials provided with the distribution. >- * >- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' >- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, >- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS >- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >- * THE POSSIBILITY OF SUCH DAMAGE. >- */ >- >-#ifndef WebUserMediaClient_h >-#define WebUserMediaClient_h >- >-#if ENABLE(MEDIA_STREAM) >- >-#import <WebCore/UserMediaClient.h> >- >-@class WebView; >- >-class WebUserMediaClient final : public WebCore::UserMediaClient { >-public: >- WebUserMediaClient(WebView*); >- ~WebUserMediaClient(); >- >- // UserMediaClient >- void requestUserMediaAccess(WebCore::UserMediaRequest&) final; >- void cancelUserMediaAccessRequest(WebCore::UserMediaRequest&) final; >- >- void enumerateMediaDevices(WebCore::MediaDevicesEnumerationRequest&) final; >- void cancelMediaDevicesEnumerationRequest(WebCore::MediaDevicesEnumerationRequest&) final; >- >- void pageDestroyed() final; >- >-private: >- WebView* m_webView; >-}; >- >-#endif >-#endif >diff --git a/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.mm b/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.mm >deleted file mode 100644 >index 0c27fb02b16f0f27d4e18de12970118a71bce5f1..0000000000000000000000000000000000000000 >--- a/Source/WebKitLegacy/mac/WebCoreSupport/WebUserMediaClient.mm >+++ /dev/null >@@ -1,321 +0,0 @@ >-/* >- * Copyright (C) 2013-2016 Apple Inc. All rights reserved. >- * >- * Redistribution and use in source and binary forms, with or without >- * modification, are permitted provided that the following conditions >- * are met: >- * 1. Redistributions of source code must retain the above copyright >- * notice, this list of conditions and the following disclaimer. >- * 2. Redistributions in binary form must reproduce the above copyright >- * notice, this list of conditions and the following disclaimer in the >- * documentation and/or other materials provided with the distribution. >- * >- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' >- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, >- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS >- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >- * THE POSSIBILITY OF SUCH DAMAGE. >- */ >- >-#import "WebUserMediaClient.h" >- >-#if ENABLE(MEDIA_STREAM) >- >-#import "WebDelegateImplementationCaching.h" >-#import "WebSecurityOriginInternal.h" >-#import "WebUIDelegatePrivate.h" >-#import "WebViewInternal.h" >-#import <WebCore/CaptureDevice.h> >-#import <WebCore/MediaDevicesEnumerationRequest.h> >-#import <WebCore/RealtimeMediaSourceCenter.h> >-#import <WebCore/ScriptExecutionContext.h> >-#import <WebCore/UserMediaRequest.h> >-#import <wtf/BlockObjCExceptions.h> >-#import <wtf/HashMap.h> >-#import <wtf/NeverDestroyed.h> >-#import <wtf/RefPtr.h> >-#import <wtf/RetainPtr.h> >- >-using namespace WebCore; >- >-@interface WebUserMediaPolicyListener : NSObject <WebAllowDenyPolicyListener> >-{ >- RefPtr<UserMediaRequest> _request; >-} >-- (id)initWithUserMediaRequest:(Ref<UserMediaRequest>&&)request; >-- (void)cancelUserMediaAccessRequest; >-- (void)deny; >-@end >- >-@interface WebUserMediaPolicyCheckerListener : NSObject <WebAllowDenyPolicyListener> { >- RefPtr<MediaDevicesEnumerationRequest> _request; >-} >-- (id)initWithMediaDevicesEnumerationRequest:(Ref<MediaDevicesEnumerationRequest>&&)request; >-- (void)cancelMediaDevicesEnumerationRequest; >-- (void)deny; >-@end >- >-typedef HashMap<RefPtr<UserMediaRequest>, RetainPtr<WebUserMediaPolicyListener>> UserMediaRequestsMap; >- >-static UserMediaRequestsMap& userMediaRequestsMap() >-{ >- static NeverDestroyed<UserMediaRequestsMap> requests; >- return requests; >-} >- >-static void AddRequestToRequestMap(UserMediaRequest* request, RetainPtr<WebUserMediaPolicyListener> listener) >-{ >- userMediaRequestsMap().set(request, listener); >-} >- >-static void RemoveRequestFromRequestMap(UserMediaRequest* request) >-{ >- userMediaRequestsMap().remove(request); >-} >- >-typedef HashMap<RefPtr<MediaDevicesEnumerationRequest>, RetainPtr<WebUserMediaPolicyCheckerListener>> UserMediaCheckMap; >- >-static UserMediaCheckMap& userMediaCheckMap() >-{ >- static NeverDestroyed<UserMediaCheckMap> requests; >- return requests; >-} >- >-static void AddPermissionCheckToMap(MediaDevicesEnumerationRequest* request, RetainPtr<WebUserMediaPolicyCheckerListener> listener) >-{ >- userMediaCheckMap().set(request, listener); >-} >- >-static void RemovePermissionCheckFromMap(MediaDevicesEnumerationRequest* request) >-{ >- userMediaCheckMap().remove(request); >-} >- >-WebUserMediaClient::WebUserMediaClient(WebView* webView) >- : m_webView(webView) >-{ >-} >- >-WebUserMediaClient::~WebUserMediaClient() >-{ >-} >- >-void WebUserMediaClient::pageDestroyed() >-{ >- auto& requestsMap = userMediaRequestsMap(); >- auto pendingRequests = copyToVector(requestsMap.values()); >- requestsMap.clear(); >- >- for (auto& request : pendingRequests) >- [request cancelUserMediaAccessRequest]; >- >- ASSERT(userMediaRequestsMap().isEmpty()); >- >- auto& checkMap = userMediaCheckMap(); >- auto pendingChecks = copyToVector(checkMap.values()); >- checkMap.clear(); >- >- for (auto& check : pendingChecks) >- [check cancelMediaDevicesEnumerationRequest]; >- >- ASSERT(userMediaCheckMap().isEmpty()); >- >- delete this; >-} >- >-void WebUserMediaClient::requestUserMediaAccess(UserMediaRequest& request) >-{ >- BEGIN_BLOCK_OBJC_EXCEPTIONS; >- >- SEL selector = @selector(webView:decidePolicyForUserMediaRequestFromOrigin:listener:); >- if (![[m_webView UIDelegate] respondsToSelector:selector]) { >- request.deny(UserMediaRequest::MediaAccessDenialReason::UserMediaDisabled, ""); >- return; >- } >- >- WebUserMediaPolicyListener *listener = [[WebUserMediaPolicyListener alloc] initWithUserMediaRequest:request]; >- WebSecurityOrigin *webOrigin = [[WebSecurityOrigin alloc] _initWithWebCoreSecurityOrigin:request.userMediaDocumentOrigin()]; >- >- AddRequestToRequestMap(&request, listener); >- CallUIDelegate(m_webView, selector, webOrigin, listener); >- >- [webOrigin release]; >- [listener release]; >- >- END_BLOCK_OBJC_EXCEPTIONS; >-} >- >-void WebUserMediaClient::cancelUserMediaAccessRequest(UserMediaRequest& request) >-{ >- UserMediaRequestsMap& requestsMap = userMediaRequestsMap(); >- UserMediaRequestsMap::iterator it = requestsMap.find(&request); >- if (it == requestsMap.end()) >- return; >- >- [it->value cancelUserMediaAccessRequest]; >- requestsMap.remove(it); >-} >- >-void WebUserMediaClient::enumerateMediaDevices(MediaDevicesEnumerationRequest& request) >-{ >- BEGIN_BLOCK_OBJC_EXCEPTIONS; >- >- SEL selector = @selector(webView:checkPolicyForUserMediaRequestFromOrigin:listener:); >- if (![[m_webView UIDelegate] respondsToSelector:selector]) { >- request.setDeviceInfo(Vector<CaptureDevice>(), emptyString(), false); >- return; >- } >- >- WebUserMediaPolicyCheckerListener *listener = [[WebUserMediaPolicyCheckerListener alloc] initWithMediaDevicesEnumerationRequest:request]; >- WebSecurityOrigin *webOrigin = [[WebSecurityOrigin alloc] _initWithWebCoreSecurityOrigin:request.userMediaDocumentOrigin()]; >- >- AddPermissionCheckToMap(&request, listener); >- CallUIDelegate(m_webView, selector, webOrigin, listener); >- >- [webOrigin release]; >- [listener release]; >- >- END_BLOCK_OBJC_EXCEPTIONS; >-} >- >-void WebUserMediaClient::cancelMediaDevicesEnumerationRequest(WebCore::MediaDevicesEnumerationRequest& request) >-{ >- UserMediaCheckMap& requestsMap = userMediaCheckMap(); >- UserMediaCheckMap::iterator it = requestsMap.find(&request); >- if (it == requestsMap.end()) >- return; >- >- [it->value cancelMediaDevicesEnumerationRequest]; >- requestsMap.remove(it); >-} >- >-@implementation WebUserMediaPolicyListener >- >-- (id)initWithUserMediaRequest:(Ref<UserMediaRequest>&&)request >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!(self = [super init])) >- return nil; >- >- _request = WTFMove(request); >- return self; >-#endif >-} >- >-- (void)cancelUserMediaAccessRequest >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- _request = nullptr; >-#endif >- >-} >- >-- (void)allow >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=162154 >- RemoveRequestFromRequestMap(_request.get()); >-#endif >-} >- >-- (void)deny >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=162154 >- RemoveRequestFromRequestMap(_request.get()); >-#endif >-} >- >-#if PLATFORM(IOS) >-- (void)denyOnlyThisRequest >-{ >-} >- >-- (BOOL)shouldClearCache >-{ >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=146245 >- ASSERT_NOT_REACHED(); >- return true; >-} >-#endif >- >-@end >- >- >-@implementation WebUserMediaPolicyCheckerListener >- >-- (id)initWithMediaDevicesEnumerationRequest:(Ref<MediaDevicesEnumerationRequest>&&)request >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!(self = [super init])) >- return nil; >- >- _request = WTFMove(request); >- return self; >-#endif >-} >- >-- (void)cancelMediaDevicesEnumerationRequest >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- _request = nullptr; >-#endif >- >-} >- >-- (void)allow >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=162154 >- RemovePermissionCheckFromMap(_request.get()); >-#endif >-} >- >-- (void)deny >-{ >-#if ENABLE(MEDIA_STREAM) >- if (!_request) >- return; >- >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=162154 >- RemovePermissionCheckFromMap(_request.get()); >-#endif >-} >- >-#if PLATFORM(IOS) >-- (void)denyOnlyThisRequest >-{ >-} >- >-- (BOOL)shouldClearCache >-{ >- // FIXME: https://bugs.webkit.org/show_bug.cgi?id=146245 >- ASSERT_NOT_REACHED(); >- return true; >-} >-#endif >- >-@end >- >-#endif // ENABLE(MEDIA_STREAM) >diff --git a/Source/WebKitLegacy/mac/WebView/WebView.mm b/Source/WebKitLegacy/mac/WebView/WebView.mm >index 43487d86c2f364f353dce63188637a6def560292..12be18c7d03841d6b00fbc8126fa7902ff02ff01 100644 >--- a/Source/WebKitLegacy/mac/WebView/WebView.mm >+++ b/Source/WebKitLegacy/mac/WebView/WebView.mm >@@ -110,7 +110,6 @@ > #import "WebTextIterator.h" > #import "WebUIDelegate.h" > #import "WebUIDelegatePrivate.h" >-#import "WebUserMediaClient.h" > #import "WebValidationMessageClient.h" > #import "WebViewGroup.h" > #import "WebVisitedLinkStore.h" >@@ -1472,9 +1471,6 @@ static void WebKitInitializeGamepadProviderIfNecessary() > WebCore::provideDeviceOrientationTo(_private->page, new WebDeviceOrientationClient(self)); > #endif > #endif >-#if ENABLE(MEDIA_STREAM) >- WebCore::provideUserMediaTo(_private->page, new WebUserMediaClient(self)); >-#endif > > #if ENABLE(REMOTE_INSPECTOR) > _private->page->setRemoteInspectionAllowed(true); >@@ -3038,10 +3034,10 @@ static bool needsSelfRetainWhileLoadingQuirk() > #endif > > #if ENABLE(MEDIA_STREAM) >- DeprecatedGlobalSettings::setMockCaptureDevicesEnabled([preferences mockCaptureDevicesEnabled]); >- DeprecatedGlobalSettings::setMediaCaptureRequiresSecureConnection([preferences mediaCaptureRequiresSecureConnection]); >- RuntimeEnabledFeatures::sharedFeatures().setMediaStreamEnabled([preferences mediaStreamEnabled]); >- RuntimeEnabledFeatures::sharedFeatures().setMediaDevicesEnabled([preferences mediaDevicesEnabled]); >+ DeprecatedGlobalSettings::setMockCaptureDevicesEnabled(false); >+ DeprecatedGlobalSettings::setMediaCaptureRequiresSecureConnection(true); >+ RuntimeEnabledFeatures::sharedFeatures().setMediaStreamEnabled(false); >+ RuntimeEnabledFeatures::sharedFeatures().setMediaDevicesEnabled(false); > #endif > > #if ENABLE(WEB_RTC) >@@ -10077,24 +10073,6 @@ static NSTextAlignment nsTextAlignmentFromRenderStyle(const RenderStyle* style) > > @end > >-#if ENABLE(MEDIA_STREAM) >-@implementation WebView (WebViewUserMedia) >- >-- (void)_setUserMediaClient:(id<WebUserMediaClient>)userMediaClient >-{ >- if (_private) >- _private->m_userMediaClient = userMediaClient; >-} >- >-- (id<WebUserMediaClient>)_userMediaClient >-{ >- if (_private) >- return _private->m_userMediaClient; >- return nil; >-} >-@end >-#endif >- > @implementation WebView (WebViewGeolocation) > > - (void)_setGeolocationProvider:(id<WebGeolocationProvider>)geolocationProvider >diff --git a/Source/WebKitLegacy/mac/WebView/WebViewData.h b/Source/WebKitLegacy/mac/WebView/WebViewData.h >index 5a73f1ac6ab2a9926519c72befc2e6daba93c749..3f36ad37e7ec47634b0a9182871e4fca4522697f 100644 >--- a/Source/WebKitLegacy/mac/WebView/WebViewData.h >+++ b/Source/WebKitLegacy/mac/WebView/WebViewData.h >@@ -77,9 +77,6 @@ class PlaybackSessionModelMediaElement; > #if ENABLE(FULLSCREEN_API) > @class WebFullScreenController; > #endif >-#if ENABLE(MEDIA_STREAM) >-@protocol WebUserMediaClient; >-#endif > #if ENABLE(REMOTE_INSPECTOR) && PLATFORM(IOS) > @class WebIndicateLayer; > #endif >@@ -356,10 +353,6 @@ private: > id<WebDeviceOrientationProvider> m_deviceOrientationProvider; > id<WebNotificationProvider> _notificationProvider; > >-#if ENABLE(MEDIA_STREAM) >- id<WebUserMediaClient> m_userMediaClient; >-#endif >- > #if ENABLE(SERVICE_CONTROLS) > std::unique_ptr<WebSelectionServiceController> _selectionServiceController; > #endif >diff --git a/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h b/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >index 860883bea1c2fba802eb12a0ee154d54c52d63a1..f9bac557e2b8f7f5ee423171a6143299d9b7b752 100644 >--- a/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >+++ b/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >@@ -75,7 +75,6 @@ > #endif > @protocol WebDeviceOrientationProvider; > @protocol WebFormDelegate; >-@protocol WebUserMediaClient; > > #if !TARGET_OS_IPHONE > extern NSString *_WebCanGoBackKey; >@@ -1009,11 +1008,6 @@ typedef struct WebEdgeInsets { > > #endif > >-@interface WebView (WebViewUserMedia) >-- (void)_setUserMediaClient:(id<WebUserMediaClient>)userMediaClient; >-- (id<WebUserMediaClient>)_userMediaClient; >-@end >- > @protocol WebGeolocationProvider <NSObject> > - (void)registerWebView:(WebView *)webView; > - (void)unregisterWebView:(WebView *)webView;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
youennf
:
review+
ews-watchlist
:
commit-queue-
Actions:
View
Attachments on
bug 185136
:
339120
|
339126
|
339148
|
339157
|
339161
|
339201