Title: [228548] trunk/Source/WebCore
Revision
228548
Author
[email protected]
Date
2018-02-15 18:45:07 -0800 (Thu, 15 Feb 2018)

Log Message

Log the error message when failing to open the database
https://bugs.webkit.org/show_bug.cgi?id=182795

Patch by Youenn Fablet <[email protected]> on 2018-02-15
Reviewed by Chris Dumez.

No change of behavior.
Print the error message as it does not contain any user private information.

* workers/service/server/RegistrationDatabase.cpp:
(WebCore::RegistrationDatabase::openSQLiteDatabase):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (228547 => 228548)


--- trunk/Source/WebCore/ChangeLog	2018-02-16 02:37:38 UTC (rev 228547)
+++ trunk/Source/WebCore/ChangeLog	2018-02-16 02:45:07 UTC (rev 228548)
@@ -1,3 +1,16 @@
+2018-02-15  Youenn Fablet  <[email protected]>
+
+        Log the error message when failing to open the database
+        https://bugs.webkit.org/show_bug.cgi?id=182795
+
+        Reviewed by Chris Dumez.
+
+        No change of behavior.
+        Print the error message as it does not contain any user private information.
+
+        * workers/service/server/RegistrationDatabase.cpp:
+        (WebCore::RegistrationDatabase::openSQLiteDatabase):
+
 2018-02-15  Zalan Bujtas  <[email protected]>
 
         [RenderTreeBuilder] Move RenderMenuList::addChild() to RenderTreeBuilder

Modified: trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp (228547 => 228548)


--- trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp	2018-02-16 02:37:38 UTC (rev 228547)
+++ trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp	2018-02-16 02:45:07 UTC (rev 228548)
@@ -108,7 +108,7 @@
     String errorMessage;
     auto scopeExit = makeScopeExit([&, errorMessage = &errorMessage] {
         ASSERT_UNUSED(errorMessage, !errorMessage->isNull());
-        RELEASE_LOG_ERROR(ServiceWorker, "Failed to open Service Worker registration database: %s", errorMessage->utf8().data());
+        RELEASE_LOG_ERROR(ServiceWorker, "Failed to open Service Worker registration database: %{public}s", errorMessage->utf8().data());
         m_database = nullptr;
         postTaskReply(createCrossThreadTask(*this, &RegistrationDatabase::databaseFailedToOpen));
     });
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to