Title: [247392] trunk/Source/WebKit
- Revision
- 247392
- Author
- [email protected]
- Date
- 2019-07-12 11:01:39 -0700 (Fri, 12 Jul 2019)
Log Message
Connection::waitForSyncReply() uses wall time clock for timeout
https://bugs.webkit.org/show_bug.cgi?id=198712
Due to a nature of the system time (it might not be set, jump, be off
by a lot) it is better to use monotonically increasing time which is
exactly what's used in a similar place i.e. Connection::waitForMessage()
Patch by Pawel Stanek <[email protected]> on 2019-07-12
Reviewed by Alex Christensen.
* Platform/IPC/Connection.cpp:
(IPC::Connection::waitForSyncReply):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (247391 => 247392)
--- trunk/Source/WebKit/ChangeLog 2019-07-12 17:27:53 UTC (rev 247391)
+++ trunk/Source/WebKit/ChangeLog 2019-07-12 18:01:39 UTC (rev 247392)
@@ -1,3 +1,16 @@
+2019-07-12 Pawel Stanek <[email protected]>
+
+ Connection::waitForSyncReply() uses wall time clock for timeout
+ https://bugs.webkit.org/show_bug.cgi?id=198712
+ Due to a nature of the system time (it might not be set, jump, be off
+ by a lot) it is better to use monotonically increasing time which is
+ exactly what's used in a similar place i.e. Connection::waitForMessage()
+
+ Reviewed by Alex Christensen.
+
+ * Platform/IPC/Connection.cpp:
+ (IPC::Connection::waitForSyncReply):
+
2019-07-12 Timothy Hatcher <[email protected]>
Drop DarkModeCSSEnabled as an experimental feature and always enable it.
Modified: trunk/Source/WebKit/Platform/IPC/Connection.cpp (247391 => 247392)
--- trunk/Source/WebKit/Platform/IPC/Connection.cpp 2019-07-12 17:27:53 UTC (rev 247391)
+++ trunk/Source/WebKit/Platform/IPC/Connection.cpp 2019-07-12 18:01:39 UTC (rev 247392)
@@ -590,7 +590,7 @@
std::unique_ptr<Decoder> Connection::waitForSyncReply(uint64_t syncRequestID, Seconds timeout, OptionSet<SendSyncOption> sendSyncOptions)
{
timeout = timeoutRespectingIgnoreTimeoutsForTesting(timeout);
- WallTime absoluteTime = WallTime::now() + timeout;
+ MonotonicTime absoluteTime = MonotonicTime::now() + timeout;
willSendSyncMessage(sendSyncOptions);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes