Changeset 259775 in webkit
- Timestamp:
- Apr 8, 2020, 6:37:30 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r259774 r259775 1 2020-04-08 David Kilzer <ddkilzer@apple.com> 2 3 UserMediaCaptureManagerProxy::clone should validate its parameters 4 <https://webkit.org/b/210221> 5 <rdar://problem/61063019> 6 7 Reviewed by Alex Christensen. 8 9 * UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp: 10 (MESSAGE_CHECK): Define (and undef) new macro for assertion. 11 (WebKit::UserMediaCaptureManagerProxy::clone): Change ASSERT() 12 to MESSAGE_CHECK(). 13 1 14 2020-04-08 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp
r258504 r259775 29 29 #if PLATFORM(COCOA) && ENABLE(MEDIA_STREAM) 30 30 31 #include "Connection.h" 31 32 #include "SharedRingBufferStorage.h" 32 33 #include "UserMediaCaptureManagerMessages.h" … … 42 43 #include <WebCore/WebAudioBufferList.h> 43 44 #include <wtf/UniqueRef.h> 45 46 #define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, &m_connectionProxy->connection()) 44 47 45 48 namespace WebKit { … … 295 298 void UserMediaCaptureManagerProxy::clone(RealtimeMediaSourceIdentifier clonedID, RealtimeMediaSourceIdentifier newSourceID) 296 299 { 297 ASSERT(m_proxies.contains(clonedID));298 ASSERT(!m_proxies.contains(newSourceID));300 MESSAGE_CHECK(m_proxies.contains(clonedID)); 301 MESSAGE_CHECK(!m_proxies.contains(newSourceID)); 299 302 if (auto* proxy = m_proxies.get(clonedID)) 300 303 m_proxies.add(newSourceID, makeUnique<SourceProxy>(newSourceID, m_connectionProxy->connection(), proxy->source().clone())); … … 325 328 } 326 329 330 #undef MESSAGE_CHECK 331 327 332 #endif
Note:
See TracChangeset
for help on using the changeset viewer.