Changeset 256668 in webkit


Ignore:
Timestamp:
Feb 14, 2020 7:01:25 PM (4 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r256233. rdar://problem/59447027

WebKit::WebProcessPool::initializeClassesForParameterCoding() should keep a copy of CString
<https://webkit.org/b/207519>
<rdar://problem/59043436>

Reviewed by Brent Fulgham.

  • UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::initializeClassesForParameterCoding):
  • Change className to keep a copy of the CString object.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256233 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

    r256666 r256668  
     12020-02-14  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r256233. rdar://problem/59447027
     4
     5    WebKit::WebProcessPool::initializeClassesForParameterCoding() should keep a copy of CString
     6    <https://webkit.org/b/207519>
     7    <rdar://problem/59043436>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     12    (WebKit::WebProcessPool::initializeClassesForParameterCoding):
     13    - Change `className` to keep a copy of the CString object.
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2020-02-10  David Kilzer  <ddkilzer@apple.com>
     18
     19            WebKit::WebProcessPool::initializeClassesForParameterCoding() should keep a copy of CString
     20            <https://webkit.org/b/207519>
     21            <rdar://problem/59043436>
     22
     23            Reviewed by Brent Fulgham.
     24
     25            * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     26            (WebKit::WebProcessPool::initializeClassesForParameterCoding):
     27            - Change `className` to keep a copy of the CString object.
     28
    1292020-02-14  Russell Epstein  <repstein@apple.com>
    230
  • branches/safari-609-branch/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r256275 r256668  
    692692
    693693    for (const auto& customClass : customClasses) {
    694         const auto* className = customClass.utf8().data();
    695         Class objectClass = objc_lookUpClass(className);
     694        auto className = customClass.utf8();
     695        Class objectClass = objc_lookUpClass(className.data());
    696696        if (!objectClass) {
    697             WTFLogAlways("InjectedBundle::extendClassesForParameterCoder - Class %s is not a valid Objective C class.\n", className);
     697            WTFLogAlways("InjectedBundle::extendClassesForParameterCoder - Class %s is not a valid Objective C class.\n", className.data());
    698698            break;
    699699        }
Note: See TracChangeset for help on using the changeset viewer.