Closed Bug 137654 (czateria) Opened 23 years ago Closed 16 years ago

czateria.interia.pl - chat logs me out after window resize

Categories

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

x86
All
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thorgal, Unassigned)

References

()

Details

Mozilla 2002041307/Linux-i686 After resizing chat window I'm getting logged out. Steps: 1. Visit http://czateria.interia.pl/ 2. Click on any channel names (black letters, white background, orange dot on the left). 3. New window opens with login form. 4. Enter any unique nick (rtkfclst will do) and empty password. 5. Observe chat beining initialized. 6. Resize the window once or twice 7. Notice that you are again at the login form. Step 7 is wrong, IE just resizes the page and this is it. I'm assignig it to JavaScript Engine, as I suspect a problem is related to JS. Please reassign if I guessed wrong.
Hey Phil - doesn't this one get a Norris?
Miloslaw: thank you for such a well-written bug report! Here's what's going wrong: The first chat room I see is "Akademik". If we click on this, a new window opens with the following URL: http://czateria.interia.pl/applet/applet.html?rid=24" When we resize this page, the onResize handler is called. The HTML for the page contains this onResize handler: <body onResize="resizeApplet();" > where function resizeApplet() { if (!b_ie) { window.status="win:"+window.innerWidth+"x"+(window.innerHeight)+ "app:"+(appW)+"x"+(appH); window.location.reload(); <<<------------------------- THIS IS THE PROBLEM! } else { updateAppletSize(); setAppletSize(); window.status="win:"+document.body.offsetWidth+"x"+ document.body.offsetHeight+ " app:"+(appW)+"x"+(appH); } } Note the variable |b_ie| is defined at the top of the file: var UA = navigator.userAgent.toLowerCase(); var UAV = navigator.appVersion; b_opera = (UA.indexOf('opera')>-1); b_mozilla = (UA.indexOf('gecko')>-1); b_ie = (UA.indexOf('msie')>-1) && !b_opera && !b_mozilla; b_nn = (UA.indexOf('mozilla')>-1) && !b_mozilla && !b_ie && !b_opera; b_linux = (UA.indexOf('linux')>-1); So we se that in Mozilla, |b_ie| evaluates to false. Therefore, when you resize the chat window and resizeApplet() is called, the site does |window.location.reload()| on the line shown above. This reloads the page and brings you back to the login!!! This is not done if the browser is IE, so you don't have the problem there. I'm going to reassign this bug to the Tech Evangelism component, who will contact the site and inform them of this issue -
Assignee: rogerl → piskozub
Component: JavaScript Engine → Europe: Central
Product: Browser → Tech Evangelism
QA Contact: pschwartau → pali
Version: other → unspecified
Accepting
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → Aug
Summary: chat logs me out after window resize → czateria.interia.pl - chat logs me out after window resize
Webadmins contacted through their Web form. BTW, the form worked only with IE :-(
Target Milestone: Aug → Oct
Target Milestone: Oct → Dec
Webadmin contacted me. It seems he cannot change the size of the applet like this: document.applets['Czat'].height = appH; document.applets['Czat'].width = appW; and then reload. That is the height & width change works but after reload the size is the same.
jst: could you check if this is a Mozilla bug? If not, what is the solution?
Alias: czateria
Target Milestone: Dec → Nov
Target Milestone: Nov → Dec
The problem is still there. It is still posible that this is a Mozilla problem. Reassigning to Browser: DOM Level 0
Assignee: piskozub → jst
Severity: normal → minor
Status: ASSIGNED → NEW
Component: Europe: Central → DOM Level 0
Product: Tech Evangelism → Browser
QA Contact: pali → desale
Target Milestone: Dec → ---
Version: unspecified → Trunk
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
For what is worth, logging out doesn't happen anymore after resizing the window in Firefox 3. If this was indeed an evangelism bug, it WFMs now (no calls to the reload method); if it really was a Gecko issue as Jacek suggested in comment 2 (I don't think so), it may or may not have been fixed.
It was not me but Phil Schwartau who suggested it's a Gecko bug. Anyway it WFM also with Firefox 2. Changing status appropriately.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.