+2007-09-06 Anders Carlsson <andersca@apple.com>
+
+ Reviewed by Mitz.
+
+ Re-enable and the npapi-response-headers.html test so it no longer
+ relies on the ordering of the requests being made.
+
+ * http/tests/plugins/npapi-response-headers-expected.txt:
+ * http/tests/plugins/npapi-response-headers.html: Copied from http/tests/plugins/npapi-response-headers.html.disabled.
+ * http/tests/plugins/npapi-response-headers.html.disabled: Removed.
+
2007-09-05 Oliver Hunt <oliver@apple.com>
Reviewed by Sam and Darin
layoutTestController.waitUntilDone();
}
+loadedFirstURL = false;
+
var res1, res2;
function test()
try {
res1 = document.getElementById("result1");
res2 = document.getElementById("result2");
- plg.getURLNotify("/plugins/resources/load-me-2.txt", null, "callback");
} catch (ex) {
showErr("Exception: " + ex.description);
if (window.layoutTestController)
}
}
+function streamLoaded()
+{
+ if (loadedFirstURL)
+ return;
+
+ loadedFirstURL = true;
+ plg.getURLNotify("/plugins/resources/load-me-2.txt", null, "callback");
+}
+
function callback(errCode, streamDump)
{
var parse = parseStreamDump(streamDump);
</script>
</head>
<body onload="test()">
-<embed name="plg" type="application/x-webkit-test-netscape" src="/plugins/resources/load-me-1.txt"></embed>
+<embed name="plg" type="application/x-webkit-test-netscape" src="/plugins/resources/load-me-1.txt" onstreamload="streamLoaded()"></embed>
<p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=13029">bug 13029<a/>:
Permit NPAPI plug-ins to see HTTP response headers.</p>
<p>Expected result below is two HTTP response extracts, one for the initial stream specified in the "src"