Closed Bug 99781 Opened 23 years ago Closed 23 years ago

Yahoo Games won't start

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows ME
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 100511
mozilla0.9.6

People

(Reporter: lkolesza, Assigned: jst)

References

()

Details

(Keywords: qawanted, Whiteboard: [Test login is user: oji_test, password: test_oji])

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.4+) Gecko/20010914
BuildID:    2001091403

In 2001091403 the Yahoo java games won't start.
The JavaScript Console displays the following:
Error: res.options[res.selectedIndex] has no properties
Source File: http://games.yahoo.com/games/login?game=Blackjack
Line: 17

It works with Mozilla 0.93

Reproducible: Always
Steps to Reproduce:
1. Goto games.yahoo.com
2. Select any of the games
3. Select any of the gamerooms

Actual Results:  You get a JavaScript error

Expected Results:  A new window opens with the java game
Also works with Mozilla 0.9.4
I can confirm this with build id 2001091403 on windows 98.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Same problem encountered in Linux i386 arch with build 2001091412.
Adding qawanted keyword - is there a test account (i.e. TestID and password)
we can use at this site? I do not have a Yahoo account, and can't access
the above URL - thanks.
Keywords: qawanted
lkolesza@yahoo.com: are there any errors in the Java Console as well?

Reassigning to OJI for a look, as this gaming site is Java-intensive, 
and I believe someone in OJI may have an appropriate UserID, password
to look at this site I can't access it.

Compare these other OJI bugs filed against this site: 


                         bug 84457
                         bug 88906
                         bug 91645
                         bug 85105
                         bug 45027
                         bug 69352
                         bug 65204
                         bug 66840
   

Please send back if this actually turns out to be JS Engine - thanks.
Assignee: rogerl → edburns
Component: Javascript Engine → OJI
QA Contact: pschwartau → pmac
No.  There are no java console errors.  In fact the games work fine if started
by direct links.  (I had some direct links in my history from running 0.9.4)
works fine on my NT with 1.3.1 jre and today's branch build.
I was able to play anagrams (on Linux).
Did not see nor javascript erros neither java errors.

Test login is user: oji_test, password: test_oji

I believe the problem has something to do with the javascript code for the
screen size selector found in the card games "room" selection pages.  I notice
on 0.9.4 (which works) that the screen size box is pre-filled with 800x600,
while on the daily builds (that don't work) the screen size box is empty and
cannot be changed.
Reassign to Joe as I'm leaving the role of OJI module owner.
Target Milestone: --- → mozilla0.9.5
Ressign to Joe Chou, as I am no longer working officially on OJI.
Assignee: edburns → joe.chou
Target Milestone: mozilla0.9.5 → mozilla0.9.6
games.yahoo.com uses javascript to generate the options in the "screen size:"
listbox.  Mozilla is failing to handle this correctly; I've attached a testcase.
This sounds like a DOM problem; reassigning there for analysis.
Compare bug 99859, "mobile.yahoo.com - phone model menu not functional"
Assignee: joe.chou → jst
Component: OJI → DOM Level 0
QA Contact: pmac → desale
*** Bug 103442 has been marked as a duplicate of this bug. ***
please see bug 104609
*** Bug 104609 has been marked as a duplicate of this bug. ***
This bug exists in Mozilla 0.9.5 (Linux) as well
The reported error in the JavaScript Console:

      "Error: res.options[res.selectedIndex] has no properties"

comes from this part of the HTML source at games.yahoo.com:


<form name=resolution action="/" method=post>

<select name="res">
<script language="Javascript">
 document.writeln('<option value="small"'+ scrSize("s") + '> 640x480' +
                  '<option value="large"'+ scrSize("m") + '> 800x600');
</script>
</select>

</form>


At the games.yahoo.com site, you are unable to choose any option in 
the "Screen Size" selectbox (to the right of "Select a Room to play in"). 
You can SEE the '640x480', '800x600', but you can't select anything.


If you type this in the URL bar

            javascript: alert(document.resolution.res[0])


you get:           Mozilla ---> null
                   NN4.7   ---> [object Option]
                   IE4.7   ---> [object]


The problem, caused by a dynamically-populated <SELECT>,  
is well-illustrated in  Darren's reduced testcase above.
Whiteboard: [Test login is user: oji_test, password: test_oji]
The error in the JavaScript Console gets triggered by this function:

function lobbyopen(name)
{
 var sel = document.entergame.identity;
 var res = document.resolution.res;
 var dms;
 var small;

 if (res.options[res.selectedIndex].value == "small")  <<<<<<----- ERRORS HERE
 {
  dms = "height=400,width=620,";
  small = "&small=yes";
 }
 else
 {
  dms = "height=520,width=786,";
 }

  small = "";
}


Again, this is caused by the dynamic population of the <SELECT> 
named "res" above. This problem has been reported in another bug,
which I'd like to dupe this one against. Even though it has a 
later bug number, it zeroes in on the specific issue - 

*** This bug has been marked as a duplicate of 100511 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
vrfy
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: