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

Changeset 245419 in webkit


Ignore:
Timestamp:
May 16, 2019, 4:24:10 PM (7 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r84160): Leak of OpaqueJSString under WTR::JSTestRunner::pathToLocalResource (32 bytes) in com.apple.WebKit.WebContent running layout tests
<https://webkit.org/b/197965>

Reviewed by Joseph Pecoraro.

  • WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:

(WTR::TestRunner::pathToLocalResource): Don't call
JSStringRetain() here because the JSRetainPtr<JSStringRef>
return type will increment the retain count for us.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r245418 r245419  
     12019-05-16  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r84160): Leak of OpaqueJSString under WTR::JSTestRunner::pathToLocalResource (32 bytes) in com.apple.WebKit.WebContent running layout tests
     4        <https://webkit.org/b/197965>
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
     9        (WTR::TestRunner::pathToLocalResource): Don't call
     10        JSStringRetain() here because the JSRetainPtr<JSStringRef>
     11        return type will increment the retain count for us.
     12
    1132019-05-16  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm

    r244723 r245419  
    3939JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url)
    4040{
    41     return JSStringRetain(url); // Do nothing on mac.
     41    return url; // Do nothing on Cocoa.
    4242}
    4343
Note: See TracChangeset for help on using the changeset viewer.