<?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>119857</bug_id>
          
          <creation_ts>2013-08-15 12:21:55 -0700</creation_ts>
          <short_desc>Two XHR tests related to cross-origin requests fall victim to port blocking</short_desc>
          <delta_ts>2013-08-15 12:21:55 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>917627</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2013-08-15 12:21:55 -0700</bug_when>
    <thetext>Two XHR tests related to cross-origin requests fall victim to port blocking.

http/tests/xmlhttprequest/simple-cross-origin-denied-events-post-sync.html and http/tests/xmlhttprequest/simple-cross-origin-denied-events-sync.html both try a cross-origin access to a resource at port :7

The purpose of the access is to test cross-origin denial to &quot;a port that will likely refuse the connection.&quot;  Unfortunately, because of how early port blocking occurs, that request doesn&apos;t even undergo cross-origin evaluation.

While working on my patch in https://bugs.webkit.org/show_bug.cgi?id=119493 I noticed this.

When the network process is used, port blocking doesn&apos;t happen preemptively like this, so we *do* perform a cross-origin check as the test originally intended.  This changes the output of the test.

I&apos;m not sure if the preemptive port blocking is right, or the lack of it is right, or if both are &quot;correct&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>