<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>238583</bug_id>
          
          <creation_ts>2022-03-30 17:58:01 -0700</creation_ts>
          <short_desc>Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary</short_desc>
          <delta_ts>2022-03-31 01:10:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>achristensen</cc>
    
    <cc>andersca</cc>
    
    <cc>darin</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1856627</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-03-30 17:58:01 -0700</bug_when>
    <thetext>Drop bad adoptNS() in NetworkProcess.LaunchOnlyWhenNecessary. It is incorrect as the WKWebViewConfiguration.websiteDataStore getter is not ref&apos;ing the store for us.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856629</commentid>
    <comment_count>1</comment_count>
      <attachid>456190</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-03-30 17:59:20 -0700</bug_when>
    <thetext>Created attachment 456190
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856654</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2022-03-30 20:25:06 -0700</bug_when>
    <thetext>If only there were some kind of language feature we could use that would do all this for us...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856657</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-03-30 20:29:27 -0700</bug_when>
    <thetext>A sort of automatic release counting system?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856658</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-03-30 20:30:25 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #3)
&gt; A sort of automatic release counting system?

Do we have ARC enabled in the API tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856664</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-03-30 20:40:52 -0700</bug_when>
    <thetext>I don’t think we do, but I think we could.

Thinking about it, it seems to me that calls to adoptNS should fail to compile under ARC; not important to be able to write it. Should be easy enough to make that change to RetainPtr.h if it’s not already done. Then the question wouldn’t need to be asked. If this was under ARC then it would fail to compile.

A while back, once WebKit had a new enough minimum supported version of iOS and macOS, I tried to start converting everything to ARC and it was hard to get it all done. My patches introduced storage leaks because presumably I created a reference cycle somewhere by accident. But probably it wasn’t as hard as I made it. It seems safer for the future if we could get over that hump and convert all our code.

Should be easy to switch over all our tests, though, and less risky than doing it in the framework code. So maybe we should do that really soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856719</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-03-31 01:08:42 -0700</bug_when>
    <thetext>Committed r292144 (249051@main): &lt;https://commits.webkit.org/249051@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456190.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856721</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-31 01:10:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/91091275&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>456190</attachid>
            <date>2022-03-30 17:59:20 -0700</date>
            <delta_ts>2022-03-31 01:09:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-238583-20220330175919.patch</filename>
            <type>text/plain</type>
            <size>1719</size>
            <attacher name="Chris Dumez">cdumez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkyMTI4CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMTVmYTMwZTczODVjMWY0YzQ2ZjEyNTA1NGM4OTA2ODFk
YmYzNTYwYS4uOWU1ZWRlMjMwNjA2YmM2YTAzNDhiYTA3OGZhODRmYTNmYTI3YzczZiAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2
IEBACisyMDIyLTAzLTMwICBDaHJpcyBEdW1leiAgPGNkdW1lekBhcHBsZS5jb20+CisKKyAgICAg
ICAgRHJvcCBiYWQgYWRvcHROUygpIGluIE5ldHdvcmtQcm9jZXNzLkxhdW5jaE9ubHlXaGVuTmVj
ZXNzYXJ5CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0y
Mzg1ODMKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBE
cm9wIGJhZCBhZG9wdE5TKCkgaW4gTmV0d29ya1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