Bug 62763

Summary: WKSecurityOriginGetProtocol and WKSecurityOriginGetHost are named wrong because they return copied strings
Product: WebKit Reporter: John Sullivan <sullivan>
Component: WebKit2Assignee: John Sullivan <sullivan>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch to update the two names to correctly reflect their behavior. sam: review+

Description John Sullivan 2011-06-15 16:07:29 PDT
WKSecurityOriginGetProtocol and WKSecurityOriginGetHost are named as if they return a pre-existing object, but they actually return copied strings.

This leads to leaks in callers that don't know to take ownership responsibility for the return values.

<rdar://problem/9618071>
Comment 1 John Sullivan 2011-06-15 16:10:09 PDT
Created attachment 97373 [details]
Patch to update the two names to correctly reflect their behavior.
Comment 2 John Sullivan 2011-06-15 16:18:57 PDT
http://trac.webkit.org/changeset/88983