<?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>65950</bug_id>
          
          <creation_ts>2011-08-09 17:03:01 -0700</creation_ts>
          <short_desc>WKPageCopyPendingAPIRequestURL returns stale result if policy decision set to Ignore</short_desc>
          <delta_ts>2011-08-09 17:11:41 -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>All</rep_platform>
          <op_sys>All</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="John Sullivan">sullivan</reporter>
          <assigned_to name="John Sullivan">sullivan</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>448891</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-08-09 17:03:01 -0700</bug_when>
    <thetext>When the policy decision is set by the client to PolicyIgnore, there&apos;s no code to clear the pending API request (though clearly no API request is pending any more). Then if the client asks for it later via WKPageCopyPendingAPIRequestURL, a non-null answer is returned, which fools the client into thinking that some sort of load is still underway.

This is in Radar as &lt;rdar://problem/9925931&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448893</commentid>
    <comment_count>1</comment_count>
      <attachid>103420</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-08-09 17:05:52 -0700</bug_when>
    <thetext>Created attachment 103420
Patch to clear the pending API request when PolicyIgnore is received.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448895</commentid>
    <comment_count>2</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-08-09 17:10:05 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/changeset/92729&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448898</commentid>
    <comment_count>3</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-08-09 17:11:41 -0700</bug_when>
    <thetext>I r+’ed my own patch in a moment of absent-mindedness. However, Anders Carlsson also gave me an r+, so I will still be able to sleep at night.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>103420</attachid>
            <date>2011-08-09 17:05:52 -0700</date>
            <delta_ts>2011-08-09 17:07:57 -0700</delta_ts>
            <desc>Patch to clear the pending API request when PolicyIgnore is received.</desc>
            <filename>PolicyIgnore_patch.txt</filename>
            <type>text/plain</type>
            <size>1256</size>
            <attacher name="John Sullivan">sullivan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDkyNzI3KQorKysgU291cmNlL1dlYktpdDIvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDgtMDkgIEpvaG4gU3Vs
bGl2YW4gIDxzdWxsaXZhbkBhcHBsZS5jb20+CisKKyAgICAgICAgV0tQYWdlQ29weVBlbmRpbmdB
UElSZXF1ZXN0VVJMIHJldHVybnMgc3RhbGUgcmVzdWx0IGlmIHBvbGljeSBkZWNpc2lvbiBzZXQg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ICAgY2xlYXJQZW5kaW5nQVBJUmVxdWVzdFVSTCgpOwogCiAgICAgdWlu
dDY0X3QgZG93bmxvYWRJRCA9IDA7CiAgICAgaWYgKGFjdGlvbiA9PSBQb2xpY3lEb3dubG9hZCkg
ewo=
</data>
<flag name="review"
          id="99028"
          type_id="1"
          status="+"
          setter="sullivan"
    />
          </attachment>
      

    </bug>

</bugzilla>