Changeset 277375 in webkit
- Timestamp:
- May 12, 2021, 10:46:26 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebPageProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r277372 r277375 1 2021-05-12 Julian Gonzalez <julian_a_gonzalez@apple.com> 2 3 Crash in WebPageProxy::endColorPicker() 4 https://bugs.webkit.org/show_bug.cgi?id=225679 5 6 Reviewed by Ryosuke Niwa. 7 8 Make sure that endColorPicker() and didEndColorPicker() 9 do not both attempt to null-out m_colorPicker. 10 11 * UIProcess/WebPageProxy.cpp: 12 (WebKit::WebPageProxy::endColorPicker): 13 (WebKit::WebPageProxy::didEndColorPicker): 14 1 15 2021-05-12 Peng Liu <peng.liu6@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r277356 r277375 6218 6218 void WebPageProxy::endColorPicker() 6219 6219 { 6220 if (!m_colorPicker) 6221 return; 6222 6223 m_colorPicker->endPicker(); 6220 if (auto colorPicker = std::exchange(m_colorPicker, nullptr)) 6221 colorPicker->endPicker(); 6224 6222 } 6225 6223 … … 6234 6232 void WebPageProxy::didEndColorPicker() 6235 6233 { 6236 m_colorPicker = nullptr; 6237 if (!hasRunningProcess()) 6238 return; 6239 6240 send(Messages::WebPage::DidEndColorPicker()); 6234 if (std::exchange(m_colorPicker, nullptr)) { 6235 if (!hasRunningProcess()) 6236 return; 6237 6238 send(Messages::WebPage::DidEndColorPicker()); 6239 } 6240 6241 6241 } 6242 6242 #endif
Note:
See TracChangeset
for help on using the changeset viewer.