<?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>121423</bug_id>
          
          <creation_ts>2013-09-16 04:29:03 -0700</creation_ts>
          <short_desc>CookieStorageShim should be PLATFORM(MAC) guarded</short_desc>
          <delta_ts>2013-09-27 16:39:22 -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>WebKit2</component>
          <version>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>110141</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>kbalazs</cc>
    
    <cc>ossy</cc>
    
    <cc>psolanki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>929629</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-16 04:29:03 -0700</bug_when>
    <thetext>CookieStorageShim is used by only Mac, so all of its use should be guarded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929630</commentid>
    <comment_count>1</comment_count>
      <attachid>211761</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-16 04:31:46 -0700</bug_when>
    <thetext>Created attachment 211761
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>930262</commentid>
    <comment_count>2</comment_count>
      <attachid>211761</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-09-17 09:33:03 -0700</bug_when>
    <thetext>Comment on attachment 211761
Patch

Shouldn&apos;t this code be moved to platformInitializeWebProcess instead of adding ifdefs?

I&apos;m not quite sure about iOS implications, but as long as the patch doesn&apos;t change behavior, it should be fine to land. The current one doesn&apos;t change behavior, and one that changes platformInitializeWebProcess shouldn&apos;t either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>930880</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-19 03:24:07 -0700</bug_when>
    <thetext>I checked the git history and I found this CookieStorageShim was introduced
in http://trac.webkit.org/changeset/149074. The commit log mentioned this
change is related to AVFoundation and CFNetwork.

I have no idea if the Linux ports will need a similar implementation 
in the future or not. Now a buildable and more or less working 
NetworkProcess is my first priority. Bugfixes can be done after that.


(In reply to comment #2)
&gt; (From update of attachment 211761 [details])
&gt; Shouldn&apos;t this code be moved to platformInitializeWebProcess instead of adding ifdefs?
&gt; 
&gt; I&apos;m not quite sure about iOS implications, but as long as the patch doesn&apos;t change behavior, it should be fine to land. The current one doesn&apos;t change behavior, and one that changes platformInitializeWebProcess shouldn&apos;t either.

I don&apos;t know anything about the iOS implications, because iOS port isn&apos;t
fully upstreamed yet. Otherwise I thought there isn&apos;t WebKit2 on iOS at
all - https://lists.webkit.org/pipermail/webkit-dev/2013-February/023735.html
Of course it might be changed in the last half year. :)

I&apos;m not sure if it is safe to simple move this code to the
platformInitializeWebProcess. There is an ensureNetworkProcessConnection(); call before the CookieStorageShim::shared().initialize(); call now.
Is it really needed or not for CookieStorageShim initialization?

So I still think that the safest way for the fix is to leave 
this code here and simple adding the PLATFORM(MAC) ifdef guard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>932915</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-25 02:51:10 -0700</bug_when>
    <thetext>It seems I wasn&apos;t up-to-date, WebKit2 on IOS already exists:
- http://trac.webkit.org/changeset/141025/trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
- http://trac.webkit.org/changeset/156350

But I don&apos;t think if I should now if you use CookieStorageShim in the secret
IOS branch or not. In the public WebKit trunk it is used by only PLATFORM(MAC),
so the proposed guard is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>933045</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-09-25 09:39:04 -0700</bug_when>
    <thetext>PLATFORM(MAC) is currently and has always been true for the iOS port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>933888</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-09-27 04:18:40 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; PLATFORM(MAC) is currently and has always been true for the iOS port.

In this case it should be safe to land it. Can I have an r+ for it please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>934077</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-09-27 14:07:01 -0700</bug_when>
    <thetext>Anders, do you have any objection to doing this through a PLATFORM(MAC) conditional? Is this Mac-specific?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>934141</commentid>
    <comment_count>8</comment_count>
      <attachid>211761</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-09-27 16:39:20 -0700</bug_when>
    <thetext>Comment on attachment 211761
Patch

Clearing flags on attachment: 211761

Committed r156589: &lt;http://trac.webkit.org/changeset/156589&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>934142</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-09-27 16:39:22 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>211761</attachid>
            <date>2013-09-16 04:31:46 -0700</date>
            <delta_ts>2013-09-27 16:39:20 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-121423-20130916133144.patch</filename>
            <type>text/plain</type>
            <size>1642</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTU1ODQ1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggNDI5NDljOTBhNjU5ZjI3
ZDRkNjNkYzZjNzVkYTRkMGZhYTkwYWFiNi4uOWQ0NWZiYmFiOGQ4ZDk2MTFkODA4NTJhZWUxOWUy
OGMzMzM1NWU3MSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDEzLTA5LTE2ICBDc2Fi
YSBPc3p0cm9nb27DoWMgIDxvc3N5QHdlYmtpdC5vcmc+CisKKyAgICAgICAgQ29va2llU3RvcmFn
ZVNoaW0gc2hvdWxkIGJlIFBMQVRGT1JNKE1BQykgZ3VhcmRlZAorICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTIxNDIzCisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgT3JpZ2luYWwgcGF0Y2ggYnkgS3dhbmcgWXVs
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