Changeset 259505 in webkit
- Timestamp:
- Apr 3, 2020 1:13:41 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r259476 r259505 1 2020-04-03 David Kilzer <ddkilzer@apple.com> 2 3 [Cocoa] Update MESSAGE_CHECK macros used in WebProcessProxy::didCreateSleepDisabler/WebProcessProxy::didDestroySleepDisabler 4 <https://webkit.org/b/209981> 5 <rdar://problem/61237674> 6 7 Reviewed by Darin Adler. 8 9 * UIProcess/WebProcessProxy.cpp: 10 (WebKit::WebProcessProxy::didCreateSleepDisabler): 11 - Remove MESSAGE_CHECK for `identifier` since decoding detects 12 invalid values. 13 - Add MESSAGE_CHECK for `reason` since a NULL string would cause 14 CFStringCreateWithCString() to crash later. 15 (WebKit::WebProcessProxy::didDestroySleepDisabler): 16 - Remove MESSAGE_CHECK for `identifier` since decoding detects 17 invalid values. 18 1 19 2020-04-03 Megan Gardner <megan_gardner@apple.com> 2 20 -
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r259307 r259505 1783 1783 void WebProcessProxy::didCreateSleepDisabler(SleepDisablerIdentifier identifier, const String& reason, bool display) 1784 1784 { 1785 MESSAGE_CHECK( identifier);1785 MESSAGE_CHECK(!reason.isNull()); 1786 1786 auto sleepDisabler = makeUnique<WebCore::SleepDisabler>(reason.utf8().data(), display ? PAL::SleepDisabler::Type::Display : PAL::SleepDisabler::Type::System); 1787 1787 m_sleepDisablers.add(identifier, WTFMove(sleepDisabler)); … … 1790 1790 void WebProcessProxy::didDestroySleepDisabler(SleepDisablerIdentifier identifier) 1791 1791 { 1792 MESSAGE_CHECK(identifier);1793 1792 m_sleepDisablers.remove(identifier); 1794 1793 }
Note: See TracChangeset
for help on using the changeset viewer.