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

Changeset 254611 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:15:47 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254310. rdar://problem/58552856

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.

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@254310 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-609-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebKit/ChangeLog

    r254610 r254611  
     12020-01-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r254310. rdar://problem/58552856
     4
     5    Check the existence of the optional m_sessionID before using it in WebProcess::setResourceLoadStatisticsEnabled()
     6    https://bugs.webkit.org/show_bug.cgi?id=206035
     7    <rdar://problem/58455306>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    No new tests.
     12   
     13    * WebProcess/WebProcess.cpp:
     14    (WebKit::WebProcess::setResourceLoadStatisticsEnabled):
     15        Added a check that m_sessionID exists.
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2020-01-09  John Wilander  <wilander@apple.com>
     21
     22            Check the existence of the optional m_sessionID before using it in WebProcess::setResourceLoadStatisticsEnabled()
     23            https://bugs.webkit.org/show_bug.cgi?id=206035
     24            <rdar://problem/58455306>
     25
     26            Reviewed by Brent Fulgham.
     27
     28            No new tests.
     29
     30            * WebProcess/WebProcess.cpp:
     31            (WebKit::WebProcess::setResourceLoadStatisticsEnabled):
     32                Added a check that m_sessionID exists.
     33
    1342020-01-14  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-609-branch/Source/WebKit/WebProcess/WebProcess.cpp

    r253990 r254611  
    16351635void WebProcess::setResourceLoadStatisticsEnabled(bool enabled)
    16361636{
    1637     if (WebCore::DeprecatedGlobalSettings::resourceLoadStatisticsEnabled() == enabled || m_sessionID->isEphemeral())
     1637    if (WebCore::DeprecatedGlobalSettings::resourceLoadStatisticsEnabled() == enabled || (m_sessionID && m_sessionID->isEphemeral()))
    16381638        return;
    16391639    WebCore::DeprecatedGlobalSettings::setResourceLoadStatisticsEnabled(enabled);
Note: See TracChangeset for help on using the changeset viewer.