Changeset 242131 in webkit


Ignore:
Timestamp:
Feb 27, 2019 10:05:06 AM (5 years ago)
Author:
achristensen@apple.com
Message:

Silence log after r242122
https://bugs.webkit.org/show_bug.cgi?id=195074

  • UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp:

(WebKit::LocalStorageDatabaseTracker::databasePath const):
m_localStorageDirectory can now be null for ephemeral sessions.
This is not a failure to create a directory and needs no log.
This fixes the WKWebView.InitializingWebViewWithEphemeralStorageDoesNotLog API test.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r242128 r242131  
     12019-02-27  Alex Christensen  <achristensen@webkit.org>
     2
     3        Silence log after r242122
     4        https://bugs.webkit.org/show_bug.cgi?id=195074
     5
     6        * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp:
     7        (WebKit::LocalStorageDatabaseTracker::databasePath const):
     8        m_localStorageDirectory can now be null for ephemeral sessions.
     9        This is not a failure to create a directory and needs no log.
     10        This fixes the WKWebView.InitializingWebViewWithEphemeralStorageDoesNotLog API test.
     11
    1122019-02-27  Timothy Hatcher  <timothy@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp

    r242122 r242131  
    152152{
    153153    if (!SQLiteFileSystem::ensureDatabaseDirectoryExists(m_localStorageDirectory)) {
    154         LOG_ERROR("Unable to create LocalStorage database path %s", m_localStorageDirectory.utf8().data());
     154        if (!m_localStorageDirectory.isNull())
     155            LOG_ERROR("Unable to create LocalStorage database path %s", m_localStorageDirectory.utf8().data());
    155156        return String();
    156157    }
Note: See TracChangeset for help on using the changeset viewer.