<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add SPI for handling geolocation authorization requests"
   href="https://bugs.webkit.org/show_bug.cgi?id=170362#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add SPI for handling geolocation authorization requests"
   href="https://bugs.webkit.org/show_bug.cgi?id=170362">bug 170362</a>
              from <span class="vcard"><a class="email" href="mailto:achristensen&#64;apple.com" title="Alex Christensen &lt;achristensen&#64;apple.com&gt;"> <span class="fn">Alex Christensen</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=306761&amp;action=diff" name="attach_306761" title="Patch v2">attachment 306761</a> <a href="attachment.cgi?id=306761&amp;action=edit" title="Patch v2">[details]</a></span>
Patch v2

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=306761&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=306761&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm:78
&gt; +static inline RefPtr&lt;WebGeolocationPosition&gt; kit(WebCore::GeolocationPosition *position)</span >

Let's make this return a Ref, and make WebGeolocationPosition::create return a Ref instead of a PassRefPtr.  This will require dereferencing the newly allocated pointer, which we commonly do in WebKit.
return adoptRef(*new WebGeolocationPosition ...

<span class="quote">&gt; Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Geolocation.mm:28
&gt; +#if WK_API_ENABLED</span >

It looks like this API test will run on Mac, and I'm not sure what will happen if it does.  Maybe we could make this test run on Mac, maybe we should make it just run on iOS.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>