numion.com - Error Message (onload handler bug?) at a web site

VERIFIED FIXED

Status

P1
normal
VERIFIED FIXED
18 years ago
4 years ago

People

(Reporter: momoi, Assigned: bc)

Tracking

({testcase})

Details

(Whiteboard: [USERAGENT], URL)

Attachments

(2 attachments)

(Reporter)

Description

18 years ago
** Checked with 6/21/2001 Win32 build **

The error message says:

"Netscape6/Mozilla has support for the "onload" event handler, but there is a
small bug. If an image is replaced with a new image then "onload" is not
executed again. This is definitely a bug in Netscape/Mozilla, it is not
according to the Javascript standard. I have tested Netscape versions 6.01 and
Mozilla v0.9, they both contain the same bug."

If this has been fixed in the current builds, then this would 
be an evangelism bug. Otherwise, please consider
fixing it.

Comment 1

18 years ago
The site authors have made this error unavoidable in Mozilla. 

Load the site http://www.numion.com/YourSpeed/ in any browser, and 
look at the source code behind the "Start!" button for "The world":


<form action="http://www.numion.com/YourSpeed/Checkup.php">
  <input type=hidden name=L value="world">
  <td align=right>
      <font face="Arial, Helvetica, sans-serif">
      <b>The world</b></font></td>
  <td>

  <input type=submit value="Start!"></td>
</form>



OK, now look at the source of http://www.numion.com/YourSpeed/Checkup.php :


<html>
<head>
<meta name="Description" content="[Webspeed] YourSpeed - Start">
<meta name="Author" content="Jeroen Kessels, jeroen@numion.com">
<!-- This page was last modified on: 20 june 2001 04:23:06 -->
<title>[Numion] YourSpeed - Start</title>

<script type="text/javascript" language="JavaScript">

if (navigator.userAgent.indexOf("Opera") > 0)
  top.location.href = "SorryOpera.html";

if (navigator.userAgent.indexOf("Gecko") > 0) 
  top.location.href = "SorryNetscape.html";

</script>

                   etc. 
                   etc.



So - the site authors are simply sniffing the userAgent, rejecting
Mozilla out-of-hand...and putting up the page you are referring to,

         http://www.numion.com/YourSpeed/SorryNetscape.html
OS: Windows 2000 → All
Hardware: PC → All

Comment 2

18 years ago
Reassigning to Evangelism component. I do not know what bug the 
site authors are referring to about onLoad. But as long as they have
their HTML this way, Mozilla is simply being excluded by them -
Assignee: rogerl → bclary
Component: Javascript Engine → Evangelism
QA Contact: pschwartau → zach
(Assignee)

Comment 3

18 years ago
Priority P1. I will look at this soonest.
Summary: Error Message (onload handler bug?) at a web site → numion.com - Error Message (onload handler bug?) at a web site
Whiteboard: [USERAGENT]
(Assignee)

Updated

18 years ago
Priority: -- → P1
(Assignee)

Updated

18 years ago
Keywords: testcase
(Assignee)

Comment 4

18 years ago
Created attachment 39779 [details]
load image, load next image immediately, fires both onload events
(Assignee)

Comment 5

18 years ago
Created attachment 39780 [details]
load image, load next image after delay, fires only first onload
(Assignee)

Comment 6

18 years ago
Note: For the immediate load, in build 2001-06-20-04/win2k, the first time you
load the test case only one onload will fire. If you reload the page, both
onload events fire. For the delayed load, only one onload will fire on the first
load or on subsequent reloads.

See bug 22710. CC'ing Heikki
I may have implemented the image load event, but joki is the real events guy,
Cc: joki.
(Assignee)

Comment 8

17 years ago
All Evangelism Bugs are now in the Product Tech Evangelism. See bug 86997 for
details.
Component: Evangelism → US English
Product: Browser → Tech Evangelism
Version: other → unspecified
They seem to be accepting Mozilla now. The anti-social JavaScript checking seems
to be gone. Testing on 0.9.5, mozilla.org RPMs on RH7.2.

But this site's operation still seems somewhat flakey -- see bug 108887.
evang issue fixed
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED

Comment 11

17 years ago
Verified
2002022703/WinXP
Status: RESOLVED → VERIFIED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.