⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254310 in webkit


Ignore:
Timestamp:
Jan 9, 2020, 3:47:34 PM (7 years ago)
Author:
wilander@apple.com
Message:

Check the existence of the optional m_sessionID before using it in WebProcess::setResourceLoadStatisticsEnabled()
​https://bugs.webkit.org/show_bug.cgi?id=206035
<rdar://problem/58455306>

Reviewed by Brent Fulgham.

No new tests.

  • WebProcess/WebProcess.cpp:

(WebKit::WebProcess::setResourceLoadStatisticsEnabled):

Added a check that m_sessionID exists.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r254307 r254310  
     12020-01-09  John Wilander  <wilander@apple.com>
     2
     3        Check the existence of the optional m_sessionID before using it in WebProcess::setResourceLoadStatisticsEnabled()
     4        https://bugs.webkit.org/show_bug.cgi?id=206035
     5        <rdar://problem/58455306>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        No new tests.
     10
     11        * WebProcess/WebProcess.cpp:
     12        (WebKit::WebProcess::setResourceLoadStatisticsEnabled):
     13            Added a check that m_sessionID exists.
     14
    1152020-01-09  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit/WebProcess/WebProcess.cpp

    r254210 r254310  
    16311631void WebProcess::setResourceLoadStatisticsEnabled(bool enabled)
    16321632{
    1633     if (WebCore::DeprecatedGlobalSettings::resourceLoadStatisticsEnabled() == enabled || m_sessionID->isEphemeral())
     1633    if (WebCore::DeprecatedGlobalSettings::resourceLoadStatisticsEnabled() == enabled || (m_sessionID && m_sessionID->isEphemeral()))
    16341634        return;
    16351635    WebCore::DeprecatedGlobalSettings::setResourceLoadStatisticsEnabled(enabled);
Note: See TracChangeset for help on using the changeset viewer.