[HtmlUnit] [ htmlunit-Bugs-2891430 ] HtmlUnit should not violate the same-origin policy with FF3

View: New views
1 Messages — Rating Filter:   Alert me  

[HtmlUnit] [ htmlunit-Bugs-2891430 ] HtmlUnit should not violate the same-origin policy with FF3

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2891430, was opened at 2009-11-03 11:12
Message generated for change (Tracker Item Submitted) made by franklin99
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2891430&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Frank Lin (franklin99)
Assigned to: Nobody/Anonymous (nobody)
Summary: HtmlUnit should not violate the same-origin policy with FF3

Initial Comment:
HtmlUnit should not violate the same-origin policy while emulating Firefox 3.0.x and catch the exception, unless the emulation is explicitly specified for Firefox 3.5, which allows XHR's to violate the same-origin policy.

In FF 3.0.x, exception was caught.
In FF 3.5, no exception.
In HtmlUnit FF3 emulation, no exception.

    try {
      xmlHttpRequest = new XMLHttpRequest;
      xmlHttpRequest.open("GET", "http://www.freebsd.org", true);
    } catch ($e0) {
      alert("got it");
    }


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2891430&group_id=47038

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop