Title: [258646] trunk/Source/WebKit
- Revision
- 258646
- Author
- [email protected]
- Date
- 2020-03-18 10:37:00 -0700 (Wed, 18 Mar 2020)
Log Message
Switch to release asserts for MediaDeviceSandboxExtension class
https://bugs.webkit.org/show_bug.cgi?id=209211
<rdar://problem/59595299>
Reviewed by Eric Carlson.
Switch from debug ASSERT to RELEASE_ASSERT.
* WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp:
(WebKit::MediaDeviceSandboxExtensions::MediaDeviceSandboxExtensions):
(WebKit::MediaDeviceSandboxExtensions::operator[]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (258645 => 258646)
--- trunk/Source/WebKit/ChangeLog 2020-03-18 17:24:01 UTC (rev 258645)
+++ trunk/Source/WebKit/ChangeLog 2020-03-18 17:37:00 UTC (rev 258646)
@@ -1,5 +1,19 @@
2020-03-18 Brent Fulgham <[email protected]>
+ Switch to release asserts for MediaDeviceSandboxExtension class
+ https://bugs.webkit.org/show_bug.cgi?id=209211
+ <rdar://problem/59595299>
+
+ Reviewed by Eric Carlson.
+
+ Switch from debug ASSERT to RELEASE_ASSERT.
+
+ * WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp:
+ (WebKit::MediaDeviceSandboxExtensions::MediaDeviceSandboxExtensions):
+ (WebKit::MediaDeviceSandboxExtensions::operator[]):
+
+2020-03-18 Brent Fulgham <[email protected]>
+
Switch from debug ASSERT to RELEASE_ASSERT in PluginQuirks.h
https://bugs.webkit.org/show_bug.cgi?id=209213
<rdar://problem/59595834>
Modified: trunk/Source/WebKit/WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp (258645 => 258646)
--- trunk/Source/WebKit/WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp 2020-03-18 17:24:01 UTC (rev 258645)
+++ trunk/Source/WebKit/WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp 2020-03-18 17:37:00 UTC (rev 258646)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2016-2020 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -36,7 +36,7 @@
: m_ids(ids)
, m_handles(WTFMove(handles))
{
- ASSERT_WITH_SECURITY_IMPLICATION(m_ids.size() == m_handles.size());
+ RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(m_ids.size() == m_handles.size());
}
void MediaDeviceSandboxExtensions::encode(IPC::Encoder& encoder) const
@@ -61,8 +61,8 @@
std::pair<String, RefPtr<SandboxExtension>> MediaDeviceSandboxExtensions::operator[](size_t i)
{
- ASSERT_WITH_SECURITY_IMPLICATION(m_ids.size() == m_handles.size());
- ASSERT_WITH_SECURITY_IMPLICATION(i < m_ids.size());
+ RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(m_ids.size() == m_handles.size());
+ RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(i < m_ids.size());
return { m_ids[i], SandboxExtension::create(WTFMove(m_handles[i])) };
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes