Title: [223109] trunk/Source/WebCore/testing/Internals.cpp
- Revision
- 223109
- Author
- [email protected]
- Date
- 2017-10-09 17:19:02 -0700 (Mon, 09 Oct 2017)
Log Message
Fix two test crashes caused by r223076.
* testing/Internals.cpp:
(WebCore::Internals::Internals):
Modified Paths
Diff
Modified: trunk/Source/WebCore/testing/Internals.cpp (223108 => 223109)
--- trunk/Source/WebCore/testing/Internals.cpp 2017-10-10 00:08:49 UTC (rev 223108)
+++ trunk/Source/WebCore/testing/Internals.cpp 2017-10-10 00:19:02 UTC (rev 223109)
@@ -507,7 +507,8 @@
setConsoleMessageListener(nullptr);
#if ENABLE(APPLE_PAY)
- document.frame()->mainFrame().setPaymentCoordinator(std::make_unique<PaymentCoordinator>(*new MockPaymentCoordinator()));
+ if (auto frame = document.frame())
+ frame->mainFrame().setPaymentCoordinator(std::make_unique<PaymentCoordinator>(*new MockPaymentCoordinator()));
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes