[Webkit-unassigned] [Bug 38428] <script> onerror not working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 2 03:36:20 PDT 2010


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





--- Comment #1 from Thomas Steinacher <tom at eggdrop.ch>  2010-05-02 03:36:20 PST ---
Sorry, my first example is actually working correctly in both browsers
(although I thought I tested it, maybe a cache issue). Here's another test case
that doesn't work however:

test.php:
<?php
header('HTTP/1.1 500 Internal Server Error');
?>
alert('executing script');


onerror.html:
<html>
<head>
<script onerror="alert('error');" src="test.php"
type="text/javascript"></script>
<head>
<body>
</body>
</html>


Firefox displays an "error" alert here, whereas Safari/Chrome try to execute
the script (i.e. the "executing script" alert box shows up). As 500 is an error
code, I believe Firefox' behavior is correct.

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



More information about the webkit-unassigned mailing list