<?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>82041</bug_id>
          
          <creation_ts>2012-03-23 03:44:48 -0700</creation_ts>
          <short_desc>[BlackBerry]Missing cookies from HTTP response header in Network tab of Web Inspector.</short_desc>
          <delta_ts>2012-03-28 19:33:11 -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>WebKit BlackBerry</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jason Liu">jasonliuwebkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>joenotcharles</cc>
    
    <cc>kpiascik</cc>
    
    <cc>leo.yang</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>staikos</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>586202</commentid>
    <comment_count>0</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-23 03:44:48 -0700</bug_when>
    <thetext>These cookies are been set, it&apos;s only missing from the web inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586209</commentid>
    <comment_count>1</comment_count>
      <attachid>133455</attachid>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-23 04:02:22 -0700</bug_when>
    <thetext>Created attachment 133455
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587457</commentid>
    <comment_count>2</comment_count>
      <attachid>133455</attachid>
    <who name="Leo Yang">leo.yang</who>
    <bug_when>2012-03-25 22:50:24 -0700</bug_when>
    <thetext>Comment on attachment 133455
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=133455&amp;action=review

&gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; +
&gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;))
&gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);

m_response.setHTTPHeaderField(key, value) has been called at the end of this function. Why this is needed here? Are you trying to catenate all &apos;Set-Cookie&apos; headers to one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587458</commentid>
    <comment_count>3</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-25 22:52:32 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 133455 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=133455&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; +
&gt; &gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;))
&gt; &gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; 
&gt; m_response.setHTTPHeaderField(key, value) has been called at the end of this function. Why this is needed here? Are you trying to catenate all &apos;Set-Cookie&apos; headers to one?

Yes, I catenate them so that overwrite doesn&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587470</commentid>
    <comment_count>4</comment_count>
    <who name="Leo Yang">leo.yang</who>
    <bug_when>2012-03-25 23:19:34 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 133455 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=133455&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; +
&gt; &gt; &gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;))
&gt; &gt; &gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; 
&gt; &gt; m_response.setHTTPHeaderField(key, value) has been called at the end of this function. Why this is needed here? Are you trying to catenate all &apos;Set-Cookie&apos; headers to one?
&gt; 
&gt; Yes, I catenate them so that overwrite doesn&apos;t happen.

But you are setting &quot;Set-Cookie&quot; header twice for the first &quot;Set-Cookie&quot; header, which is a waste. Why use &quot;\r\n&quot; as delimiter? What do the other ports use?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587555</commentid>
    <comment_count>5</comment_count>
      <attachid>133754</attachid>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 02:36:24 -0700</bug_when>
    <thetext>Created attachment 133754
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587558</commentid>
    <comment_count>6</comment_count>
    <who name="Leo Yang">leo.yang</who>
    <bug_when>2012-03-26 02:47:19 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; (From update of attachment 133455 [details] [details] [details])
&gt; &gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=133455&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; +
&gt; &gt; &gt; &gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;))
&gt; &gt; &gt; &gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; 
&gt; &gt; &gt; m_response.setHTTPHeaderField(key, value) has been called at the end of this function. Why this is needed here? Are you trying to catenate all &apos;Set-Cookie&apos; headers to one?
&gt; &gt; 
&gt; &gt; Yes, I catenate them so that overwrite doesn&apos;t happen.
&gt; 
&gt; But you are setting &quot;Set-Cookie&quot; header twice for the first &quot;Set-Cookie&quot; header, which is a waste. Why use &quot;\r\n&quot; as delimiter? What do the other ports use?

Never mind, you returned. But is &quot;\r\n&quot; the best delimiter? How other ports deal with this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587680</commentid>
    <comment_count>7</comment_count>
    <who name="Konrad Piascik">kpiascik</who>
    <bug_when>2012-03-26 06:55:20 -0700</bug_when>
    <thetext>&gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);

why do you return a value from a void method?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588448</commentid>
    <comment_count>8</comment_count>
      <attachid>133958</attachid>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 18:44:44 -0700</bug_when>
    <thetext>Created attachment 133958
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588451</commentid>
    <comment_count>9</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 18:48:08 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; +            return m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; 
&gt; why do you return a value from a void method?

Sorry, I forgot updating yesterday.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588462</commentid>
    <comment_count>10</comment_count>
    <who name="Konrad Piascik">kpiascik</who>
    <bug_when>2012-03-26 18:59:01 -0700</bug_when>
    <thetext>&gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);

I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588482</commentid>
    <comment_count>11</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 19:21:20 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; 
&gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?

I am compiling QT. Trying to find QT&apos;s implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588507</commentid>
    <comment_count>12</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 20:01:20 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; (In reply to comment #10)
&gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; 
&gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; 
&gt; I am compiling QT. Trying to find QT&apos;s implementation.

Qt uses comma(&quot;,&quot;) to separate them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588514</commentid>
    <comment_count>13</comment_count>
    <who name="Leo Yang">leo.yang</who>
    <bug_when>2012-03-26 20:12:44 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; 
&gt; &gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; &gt; 
&gt; &gt; I am compiling QT. Trying to find QT&apos;s implementation.
&gt; 
&gt; Qt uses comma(&quot;,&quot;) to separate them.

Where does qt porting do this? Network stack? or WebCore?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588521</commentid>
    <comment_count>14</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 20:17:42 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; 
&gt; &gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; &gt; 
&gt; &gt; I am compiling QT. Trying to find QT&apos;s implementation.
&gt; 
&gt; Qt uses comma(&quot;,&quot;) to separate them.

But Qt&apos;s inspector doesn&apos;t show &quot;,&quot;.
Qt&apos;s inspector:
Set-Cookie:cookieONE=ONE; expires=Tue, 27-Mar-2012 04:11:32 GMT
cookieTWO=TWO; expires=Tue, 27-Mar-2012 04:11:32 GMT
cookieTHREE=THREE; expires=Tue, 27-Mar-2012 04:11:32 GMT
cookieFOUR=FOUR; expires=Tue, 27-Mar-2012 04:11:32 GMT

Playbook&apos;s inspector(using &quot;,&quot;):
Set-Cookie:cookieONE=ONE; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieTWO=TWO; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieTHREE=THREE; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieFOUR=FOUR; expires=Tue, 27-Mar-2012 04:09:22 GMT

I think &quot;\r\n&quot; looks better for our code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588522</commentid>
    <comment_count>15</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-26 20:18:20 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; (In reply to comment #11)
&gt; &gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; &gt; &gt; 
&gt; &gt; &gt; I am compiling QT. Trying to find QT&apos;s implementation.
&gt; &gt; 
&gt; &gt; Qt uses comma(&quot;,&quot;) to separate them.
&gt; 
&gt; Where does qt porting do this? Network stack? or WebCore?

Network stack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589698</commentid>
    <comment_count>16</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-28 00:09:42 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #13)
&gt; &gt; (In reply to comment #12)
&gt; &gt; &gt; (In reply to comment #11)
&gt; &gt; &gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I am compiling QT. Trying to find QT&apos;s implementation.
&gt; &gt; &gt; 
&gt; &gt; &gt; Qt uses comma(&quot;,&quot;) to separate them.
&gt; &gt; 
&gt; &gt; Where does qt porting do this? Network stack? or WebCore?
&gt; 
&gt; Network stack.

&quot;\r\n&quot; or &quot;,&quot; (In reply to comment #14)
&gt; (In reply to comment #12)
&gt; &gt; (In reply to comment #11)
&gt; &gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; &gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; &gt; &gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I still would like to know about the delimiter, as Leo mentioned.  Can you tell us whether the delimiter of \r\n is a good choice and if other ports use it?
&gt; &gt; &gt; 
&gt; &gt; &gt; I am compiling QT. Trying to find QT&apos;s implementation.
&gt; &gt; 
&gt; &gt; Qt uses comma(&quot;,&quot;) to separate them.
&gt; 
&gt; But Qt&apos;s inspector doesn&apos;t show &quot;,&quot;.
&gt; Qt&apos;s inspector:
&gt; Set-Cookie:cookieONE=ONE; expires=Tue, 27-Mar-2012 04:11:32 GMT
&gt; cookieTWO=TWO; expires=Tue, 27-Mar-2012 04:11:32 GMT
&gt; cookieTHREE=THREE; expires=Tue, 27-Mar-2012 04:11:32 GMT
&gt; cookieFOUR=FOUR; expires=Tue, 27-Mar-2012 04:11:32 GMT
&gt; 
&gt; Playbook&apos;s inspector(using &quot;,&quot;):
&gt; Set-Cookie:cookieONE=ONE; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieTWO=TWO; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieTHREE=THREE; expires=Tue, 27-Mar-2012 04:09:22 GMT,cookieFOUR=FOUR; expires=Tue, 27-Mar-2012 04:09:22 GMT
&gt; 
&gt; I think &quot;\r\n&quot; looks better for our code.

&quot;\r\n&quot; or &quot;,&quot; only affect inspector&apos;s showing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589835</commentid>
    <comment_count>17</comment_count>
      <attachid>133958</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-03-28 04:17:03 -0700</bug_when>
    <thetext>Comment on attachment 133958
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=133958&amp;action=review

&gt; Source/WebCore/ChangeLog:6
&gt; +        We shouldn&apos;t overwrite cookies of response if there are more than one

Don&apos;t you mean &quot;one or more&quot;?

&gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:318
&gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;)) {

Is there an AtomicString/static String for Set-Cookie?

&gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);

Is &quot;\r\n&quot; used like that all the time? Any constants?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590746</commentid>
    <comment_count>18</comment_count>
    <who name="Jason Liu">jasonliuwebkit</who>
    <bug_when>2012-03-28 19:07:17 -0700</bug_when>
    <thetext>(In reply to comment #17)
&gt; (From update of attachment 133958 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=133958&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:6
&gt; &gt; +        We shouldn&apos;t overwrite cookies of response if there are more than one
&gt; 
&gt; Don&apos;t you mean &quot;one or more&quot;?
&gt; 
&gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:318
&gt; &gt; +        if (m_response.httpHeaderFields().contains(&quot;Set-Cookie&quot;)) {
&gt; 
&gt; Is there an AtomicString/static String for Set-Cookie?
&gt; 
&gt; &gt; Source/WebCore/platform/network/blackberry/NetworkJob.cpp:319
&gt; &gt; +            m_response.setHTTPHeaderField(key, m_response.httpHeaderField(key) + &quot;\r\n&quot; + value);
&gt; 
&gt; Is &quot;\r\n&quot; used like that all the time? Any constants?

1. I mean the second cookie shouldn&apos;t overwrite the first one of response.
2. No, there isn&apos;t.
3. &quot;\r\n&quot; is only used in this special case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590761</commentid>
    <comment_count>19</comment_count>
      <attachid>133958</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-03-28 19:26:10 -0700</bug_when>
    <thetext>Comment on attachment 133958
Patch

Looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590765</commentid>
    <comment_count>20</comment_count>
      <attachid>133958</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-28 19:33:05 -0700</bug_when>
    <thetext>Comment on attachment 133958
Patch

Clearing flags on attachment: 133958

Committed r112494: &lt;http://trac.webkit.org/changeset/112494&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>590766</commentid>
    <comment_count>21</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-28 19:33:11 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133455</attachid>
            <date>2012-03-23 04:02:22 -0700</date>
            <delta_ts>2012-03-26 02:36:13 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-82041-20120323190219.patch</filename>
            <type>text/plain</type>
            <size>1855</size>
            <attacher name="Jason Liu">jasonliuwebkit</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTExODA5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNzJmY2ZhOWRiZjRlZjg0
NjRmNzY3YWIxN2EyMmFlOGY5NjhlZjEwYy4uZDMzMDhkYmRhMWJhYjE4NTRkY2Q2NGUx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BvbnNlLmh0
dHBIZWFkZXJGaWVsZChrZXkpICsgIlxyXG4iICsgdmFsdWUpOwogICAgIH0KIAogICAgIGlmIChs
b3dlcktleSA9PSAid3d3LWF1dGhlbnRpY2F0ZSIpCg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133754</attachid>
            <date>2012-03-26 02:36:24 -0700</date>
            <delta_ts>2012-03-26 18:44:30 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-82041-20120326173621.patch</filename>
            <type>text/plain</type>
            <size>1853</size>
            <attacher name="Jason Liu">jasonliuwebkit</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTExODA5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNzJmY2ZhOWRiZjRlZjg0
NjRmNzY3YWIxN2EyMmFlOGY5NjhlZjEwYy4uZWVjYjVhMGFhZmIzMTE3ZWY1ZjJjZjk0OTY5NGIw
MjA4YTVhMmZhNiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDEyLTAzLTIzICBKYXNv
biBMaXUgIDxqYXNvbi5saXVAdG9yY2htb2JpbGUuY29tLmNuPgorCisgICAgICAgIFtCbGFja0Jl
cnJ5XU1pc3NpbmcgY29va2llcyBmcm9tIEhUVFAgcmVzcG9uc2UgaGVhZGVyIGluIE5ldHdvcmsg
dGFiIG9mIFdlYiBJbnNwZWN0b3IuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD04MjA0MQorCisgICAgICAgIFdlIHNob3VsZG4ndCBvdmVyd3JpdGUgY29v
a2llcyBvZiByZXNwb25zZSB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jo6aGFuZGxlTm90aWZ5SGVhZGVyUmVjZWl2ZWQoY29uc3QgU3RyaW5nJiBrZXks
IGNvbnN0IFN0cmluZyYgdmFsCiAgICAgICAgIGlmIChtX2ZyYW1lICYmIG1fZnJhbWUtPnBhZ2Uo
KSAmJiBtX2ZyYW1lLT5sb2FkZXIoKSAmJiBtX2ZyYW1lLT5sb2FkZXIoKS0+Y2xpZW50KCkKICAg
ICAgICAgICAgICYmIHN0YXRpY19jYXN0PEZyYW1lTG9hZGVyQ2xpZW50QmxhY2tCZXJyeSo+KG1f
ZnJhbWUtPmxvYWRlcigpLT5jbGllbnQoKSktPmNvb2tpZXNFbmFibGVkKCkpCiAgICAgICAgICAg
ICBoYW5kbGVTZXRDb29raWVIZWFkZXIodmFsdWUpOworCisgICAgICAgIGlmIChtX3Jlc3BvbnNl
Lmh0dHBIZWFkZXJGaWVsZHMoKS5jb250YWlucygiU2V0LUNvb2tpZSIpKQorICAgICAgICAgICAg
cmV0dXJuIG1fcmVzcG9uc2Uuc2V0SFRUUEhlYWRlckZpZWxkKGtleSwgbV9yZXNwb25zZS5odHRw
SGVhZGVyRmllbGQoa2V5KSArICJcclxuIiArIHZhbHVlKTsKICAgICB9CiAKICAgICBpZiAobG93
ZXJLZXkgPT0gInd3dy1hdXRoZW50aWNhdGUiKQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133958</attachid>
            <date>2012-03-26 18:44:44 -0700</date>
            <delta_ts>2012-03-28 19:33:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-82041-20120327094440.patch</filename>
            <type>text/plain</type>
            <size>1881</size>
            <attacher name="Jason Liu">jasonliuwebkit</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTExODA5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5k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eworICAgICAgICAg
ICAgbV9yZXNwb25zZS5zZXRIVFRQSGVhZGVyRmllbGQoa2V5LCBtX3Jlc3BvbnNlLmh0dHBIZWFk
ZXJGaWVsZChrZXkpICsgIlxyXG4iICsgdmFsdWUpOworICAgICAgICAgICAgcmV0dXJuOworICAg
ICAgICB9CiAgICAgfQogCiAgICAgaWYgKGxvd2VyS2V5ID09ICJ3d3ctYXV0aGVudGljYXRlIikK
</data>

          </attachment>
      

    </bug>

</bugzilla>