<?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>57334</bug_id>
          
          <creation_ts>2011-03-29 07:02:18 -0700</creation_ts>
          <short_desc>DumpRenderTree on Windows doesn&apos;t block access to external URLs, but should (makes some tests fail)</short_desc>
          <delta_ts>2011-06-24 14:12:07 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://build.webkit.org/results/Windows%207%20Release%20%28Tests%29/r82237%20(10912)/http/tests/uri/username-with-no-hostname-pretty-diff.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jberlin</cc>
    
    <cc>mjs</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>375270</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 07:02:18 -0700</bug_when>
    <thetext>http/tests/uri/username-with-no-hostname.html has been failing on Windows since r82189 when its expected results were updated. See the URL for the failure diff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375356</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 08:15:24 -0700</bug_when>
    <thetext>The test is failing because DRT/win&apos;s ResourceLoadDelegate doesn&apos;t have the &quot;block access to external URLs&quot; logic that DRT/mac has. That logic was added to DRT/mac in r33491.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375357</commentid>
    <comment_count>2</comment_count>
      <attachid>87335</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 08:17:03 -0700</bug_when>
    <thetext>Created attachment 87335
Patch to add &quot;block access to external URLs&quot; logic to DRT/win

This patch gives DRT/win the same smarts as DRT/mac. However, this causes the test to fail in a different way: the &quot;Blocked access to external URL&quot; message is printed twice (once for the real load, and once for a preload). I don&apos;t know why this doesn&apos;t happen on Mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375366</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 08:27:43 -0700</bug_when>
    <thetext>I checked in new expected results for Windows in r82255. This bug can be used to track the task of adding the URL-blocking logic to DRT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375367</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 08:28:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/9202302&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375407</commentid>
    <comment_count>5</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2011-03-29 09:11:59 -0700</bug_when>
    <thetext>I think the new expected results for Windows broke WK2 Windows tests:

http://build.webkit.org/results/Windows%207%20Release%20(WebKit2%20Tests)/r82253%20(4654)/results.html
http://build.webkit.org/results/Windows%207%20Release%20(WebKit2%20Tests)/r82255%20(4655)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375519</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 10:47:39 -0700</bug_when>
    <thetext>You&apos;re right! I&apos;ll take care of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375676</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-29 12:44:00 -0700</bug_when>
    <thetext>Added win-wk2 passing results in r82301.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376582</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-03-30 12:20:06 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created an attachment (id=87335) [details]
&gt; Patch to add &quot;block access to external URLs&quot; logic to DRT/win
&gt; 
&gt; This patch gives DRT/win the same smarts as DRT/mac. However, this causes the test to fail in a different way: the &quot;Blocked access to external URL&quot; message is printed twice (once for the real load, and once for a preload). I don&apos;t know why this doesn&apos;t happen on Mac.

Ooh, it happened once on Mac! http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(WebKit2%20Tests)/r82463%20(10201)/http/tests/uri/username-with-no-hostname-pretty-diff.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384842</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-04-13 06:46:45 -0700</bug_when>
    <thetext>*** Bug 58421 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386740</commentid>
    <comment_count>10</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2011-04-15 10:46:37 -0700</bug_when>
    <thetext>Added more win-wk2 passing results in http://trac.webkit.org/changeset/83989</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427132</commentid>
    <comment_count>11</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2011-06-24 14:12:07 -0700</bug_when>
    <thetext>Removing the MakingBotsRed keyword as this isn&apos;t actively making any bots red.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>87335</attachid>
            <date>2011-03-29 08:17:03 -0700</date>
            <delta_ts>2011-03-29 08:17:03 -0700</delta_ts>
            <desc>Patch to add &quot;block access to external URLs&quot; logic to DRT/win</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>2467</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0R1bXBSZW5kZXJUcmVlL3dpbi9SZXNvdXJjZUxvYWREZWxlZ2F0
ZS5jcHAgYi9Ub29scy9EdW1wUmVuZGVyVHJlZS93aW4vUmVzb3VyY2VMb2FkRGVsZWdhdGUuY3Bw
CmluZGV4IDA5YjA3ZDYuLmFkZjRjOGMgMTAwNjQ0Ci0tLSBhL1Rvb2xzL0R1bXBSZW5kZXJUcmVl
L3dpbi9SZXNvdXJjZUxvYWREZWxlZ2F0ZS5jcHAKKysrIGIvVG9vbHMvRHVtcFJlbmRlclRyZWUv
d2luL1Jlc291cmNlTG9hZERlbGVnYXRlLmNwcApAQCAtMzUsNiArMzUsNyBAQAogI2luY2x1ZGUg
PGNvbXV0aWwuaD4KICNpbmNsdWRlIDxzc3RyZWFtPgogI2luY2x1ZGUgPHRjaGFyLmg+CisjaW5j
bHVkZSA8d3RmL1JldGFpblB0ci5oPgogI2luY2x1ZGUgPHd0Zi9WZWN0b3IuaD4KIAogdXNpbmcg
bmFtZXNwYWNlIHN0ZDsKQEAgLTIzNyw2ICsyMzgsMzYgQEAgSFJFU1VMVCBTVERNRVRIT0RDQUxM
VFlQRSBSZXNvdXJjZUxvYWREZWxlZ2F0ZTo6cmVtb3ZlSWRlbnRpZmllckZvclJlcXVlc3QoCiAg
ICAgcmV0dXJuIFNfT0s7CiB9CiAKK3N0YXRpYyBSZXRhaW5QdHI8Q0ZVUkxSZWY+IHRvQ0ZVUkwo
QlNUUiB1cmwpCit7CisgICAgcmV0dXJuIFJldGFpbl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isgICAgICAgICAg
ICAqbmV3UmVxdWVzdCA9IDA7CisgICAgICAgICAgICByZXR1cm4gU19PSzsKKyAgICAgICAgfQor
ICAgIH0KKwogICAgIElXZWJNdXRhYmxlVVJMUmVxdWVzdCogcmVxdWVzdENvcHkgPSAwOwogICAg
IHJlcXVlc3QtPm11dGFibGVDb3B5KCZyZXF1ZXN0Q29weSk7CiAgICAgY29uc3Qgc2V0PHN0cmlu
Zz4mIGNsZWFySGVhZGVycyA9IGdMYXlvdXRUZXN0Q29udHJvbGxlci0+d2lsbFNlbmRSZXF1ZXN0
Q2xlYXJIZWFkZXJzKCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>