Title: [291174] trunk/Source/WebKit
- Revision
- 291174
- Author
- [email protected]
- Date
- 2022-03-11 09:38:17 -0800 (Fri, 11 Mar 2022)
Log Message
[WinCairo] DrawingAreaWC::sendUpdateAC should keep a WeakPtr of this for the reply handler
https://bugs.webkit.org/show_bug.cgi?id=237757
Reviewed by Don Olmstead.
WinCairo Release was crashing by visiting some random web sites
for several minutes. The reply handler in
DrawingAreaWC::sendUpdateAC should check that `this` object is
still alive with `weakThis`.
* WebProcess/WebPage/wc/DrawingAreaWC.cpp:
(WebKit::DrawingAreaWC::sendUpdateAC): Capture weakThis for the
reply handler and check it.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (291173 => 291174)
--- trunk/Source/WebKit/ChangeLog 2022-03-11 17:31:51 UTC (rev 291173)
+++ trunk/Source/WebKit/ChangeLog 2022-03-11 17:38:17 UTC (rev 291174)
@@ -1,3 +1,19 @@
+2022-03-11 Fujii Hironori <[email protected]>
+
+ [WinCairo] DrawingAreaWC::sendUpdateAC should keep a WeakPtr of this for the reply handler
+ https://bugs.webkit.org/show_bug.cgi?id=237757
+
+ Reviewed by Don Olmstead.
+
+ WinCairo Release was crashing by visiting some random web sites
+ for several minutes. The reply handler in
+ DrawingAreaWC::sendUpdateAC should check that `this` object is
+ still alive with `weakThis`.
+
+ * WebProcess/WebPage/wc/DrawingAreaWC.cpp:
+ (WebKit::DrawingAreaWC::sendUpdateAC): Capture weakThis for the
+ reply handler and check it.
+
2022-03-11 Per Arne Vollan <[email protected]>
[macOS][WP] Add required sys call to sandbox
Modified: trunk/Source/WebKit/WebProcess/WebPage/wc/DrawingAreaWC.cpp (291173 => 291174)
--- trunk/Source/WebKit/WebProcess/WebPage/wc/DrawingAreaWC.cpp 2022-03-11 17:31:51 UTC (rev 291173)
+++ trunk/Source/WebKit/WebProcess/WebPage/wc/DrawingAreaWC.cpp 2022-03-11 17:38:17 UTC (rev 291174)
@@ -253,7 +253,9 @@
RunLoop::main().dispatch([this, weakThis = WTFMove(weakThis), stateID, updateInfo = WTFMove(updateInfo)]() mutable {
if (!weakThis)
return;
- m_remoteWCLayerTreeHostProxy->update(WTFMove(updateInfo), [this, stateID](std::optional<UpdateInfo> updateInfo) {
+ m_remoteWCLayerTreeHostProxy->update(WTFMove(updateInfo), [this, weakThis = WTFMove(weakThis), stateID](std::optional<UpdateInfo> updateInfo) {
+ if (!weakThis)
+ return;
if (updateInfo && stateID == m_backingStoreStateID) {
send(Messages::DrawingAreaProxy::Update(m_backingStoreStateID, WTFMove(*updateInfo)));
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes