error using XMLHttpRequest.open over HTTPS

Phil Oertel <[email protected]> Mon, 15 Mar 2010 15:16:42 -0500
Newsgroups gmane.comp.graphics.chromium.user
Message-ID <[email protected]>
--===============0318867011661246232==
Content-Type: multipart/alternative; boundary=00504502cc036920b00481dc90a9

--00504502cc036920b00481dc90a9
Content-Type: text/plain; charset=ISO-8859-1

Hi chromium-users,

I'm running into an issue on the latest Chrome for Windows - 4.0.249.89
(38071). It does not affect the latest version for mac, so hopefully a fix
is already out and just hasn't made it into the Windows releases yet.

While on a page delivered over HTTPS, calls to XMLHttpRequest.send()
generate an exception: "NETWORK_ERR: XMLHttpRequest Exception 101".
readyState is 1 (Open) prior to the call. The same call succeeds when the
page is opened over plain old HTTP. Thoughts and suggestions would be much
appreciated. Here's a small test case, written in PHP (just so the test case
could be contained in a single file):

causeNetworkErr.php:
<?php
if ($_GET['jav']) {
echo '<blink>Not broke!</blink>';
exit;
}
?>

<html>
<head>
<title>Try to break chroooooome</title>

<script type="text/javascript">
function getNewContent() {
var xmlHttp=new XMLHttpRequest();

var url = "causeNetworkErr.php?jav=ya"
xmlHttp.open("GET",url,false);
xmlHttp.send(null);
var rtns=xmlHttp.responseText;

document.getElementById("survey").innerHTML=rtns;
}
</script>

</head>

<body>
<h1>Click the button to break chrome</h1>

<div id="survey">
<button onclick="surveygoinit()">Click me.</button>
</div>

</body>
</html>

--00504502cc036920b00481dc90a9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi chromium-users,<br><br>I&#39;m running into an issue on the latest Chrom=
e for Windows - 4.0.249.89 (38071). It does not affect the latest version f=
or mac, so hopefully a fix is already out and just hasn&#39;t made it into =
the Windows releases yet.<br>

<br>While on a page delivered over HTTPS, calls to XMLHttpRequest.send() ge=
nerate an exception: <font size=3D"2"><span style=3D"font-family: arial,hel=
vetica,sans-serif;">&quot;</span><span class=3D"Apple-style-span" style=3D"=
border-collapse: separate; color: rgb(0, 0, 0); font-family: arial,helvetic=
a,sans-serif; font-style: normal; font-variant: normal; font-weight: normal=
; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px=
; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"=
><span class=3D"Apple-style-span" style=3D"color: rgb(255, 0, 0); white-spa=
ce: pre-wrap;">NETWORK_ERR: XMLHttpRequest Exception 101&quot;<font color=
=3D"#000000">. readyState is 1 (Open) prior to the call. The same call succ=
eeds when the page is opened over plain old HTTP. Thoughts and suggestions =
would be much appreciated. Here&#39;s a small test case, written in PHP (ju=
st so the test case could be contained in a single file):<br>

<br>causeNetworkErr.php:<br>&lt;?php<br>if ($_GET[&#39;jav&#39;]) {<br>    =
echo &#39;&lt;blink&gt;Not broke!&lt;/blink&gt;&#39;;<br>    exit;<br>}<br>=
?&gt;<br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Try to break chro=
ooooome&lt;/title&gt;<br>

<br>&lt;script type=3D&quot;text/javascript&quot;&gt;<br>function getNewCon=
tent() {<br>    var xmlHttp=3Dnew XMLHttpRequest();<br><br>    var url =3D =
&quot;causeNetworkErr.php?jav=3Dya&quot;<br>    xmlHttp.open(&quot;GET&quot=
;,url,false);<br>

    xmlHttp.send(null);<br>    var rtns=3DxmlHttp.responseText;<br><br>    =
document.getElementById(&quot;survey&quot;).innerHTML=3Drtns;<br>}<br>&lt;/=
script&gt;<br><br>&lt;/head&gt;<br><br>&lt;body&gt;<br>&lt;h1&gt;Click the =
button to break chrome&lt;/h1&gt;<br>

<br>&lt;div id=3D&quot;survey&quot;&gt;<br>  &lt;button onclick=3D&quot;sur=
veygoinit()&quot;&gt;Click me.&lt;/button&gt;<br>&lt;/div&gt;<br><br>&lt;/b=
ody&gt;<br>&lt;/html&gt;<br></font></span></span></font>

--00504502cc036920b00481dc90a9--


--===============0318867011661246232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--===============0318867011661246232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Chromium-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chromium-users

--===============0318867011661246232==--