Title: [244389] trunk/Source/WebKit
- Revision
- 244389
- Author
- [email protected]
- Date
- 2019-04-17 11:09:02 -0700 (Wed, 17 Apr 2019)
Log Message
Fix crash during teardown of PingLoad
https://bugs.webkit.org/show_bug.cgi?id=197024
<rdar://problem/49973077>
Reviewed by Jer Noble.
* NetworkProcess/PingLoad.cpp:
(WebKit::PingLoad::initialize):
Early return if weakThis is null.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (244388 => 244389)
--- trunk/Source/WebKit/ChangeLog 2019-04-17 18:04:29 UTC (rev 244388)
+++ trunk/Source/WebKit/ChangeLog 2019-04-17 18:09:02 UTC (rev 244389)
@@ -1,3 +1,15 @@
+2019-04-17 Alex Christensen <[email protected]>
+
+ Fix crash during teardown of PingLoad
+ https://bugs.webkit.org/show_bug.cgi?id=197024
+ <rdar://problem/49973077>
+
+ Reviewed by Jer Noble.
+
+ * NetworkProcess/PingLoad.cpp:
+ (WebKit::PingLoad::initialize):
+ Early return if weakThis is null.
+
2019-04-17 Wenson Hsieh <[email protected]>
REGRESSION (r243926): [iOS] Release assertion when computing editor state during an overflow scroll triggered by layout
Modified: trunk/Source/WebKit/NetworkProcess/PingLoad.cpp (244388 => 244389)
--- trunk/Source/WebKit/NetworkProcess/PingLoad.cpp 2019-04-17 18:04:29 UTC (rev 244388)
+++ trunk/Source/WebKit/NetworkProcess/PingLoad.cpp 2019-04-17 18:09:02 UTC (rev 244389)
@@ -77,7 +77,9 @@
// Set a very generous timeout, just in case.
m_timeoutTimer.startOneShot(60000_s);
- m_networkLoadChecker->check(ResourceRequest { m_parameters.request }, nullptr, [this, networkProcess = makeRef(networkProcess)] (auto&& result) {
+ m_networkLoadChecker->check(ResourceRequest { m_parameters.request }, nullptr, [this, weakThis = makeWeakPtr(*this), networkProcess = makeRef(networkProcess)] (auto&& result) {
+ if (!weakThis)
+ return;
WTF::switchOn(result,
[this] (ResourceError& error) {
this->didFinish(error);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes