[Webkit-unassigned] [Bug 24567] New: XMLHttpRequest no longer throws exception on denied cross-domain request

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 12 17:35:59 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24567

           Summary: XMLHttpRequest no longer throws exception on denied
                    cross-domain request
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rafaelw at chromium.org


here's the script I'm using (served from localhost:8080)

function submitCrossDomainXhr() {
  try {
    myRequest = new XMLHttpRequest();
    myRequest.open("GET", "http://www.news.com");
    myRequest.onreadystatechange = function(){
      window.console.log("state changed");
    }

    myRequest.onerror = function(error){
      alert('error');
    }

    myRequest.send({});
  } catch (e) {
    alert('exception');
  }
}      

In Chrome 1.x (FF 3.0.x, & Safari 3.x, I presume), I get an 'exception' alert.
In Chrome Dev & Safari 4b, I get 'error', but no exception


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list