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)
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.
Comment 1•23 years ago
|
||
Hey Phil - doesn't this one get a Norris?
Comment 2•23 years ago
|
||
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
Comment 3•23 years ago
|
||
Accepting
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → Aug
Updated•23 years ago
|
Summary: chat logs me out after window resize → czateria.interia.pl - chat logs me out after window resize
Comment 4•22 years ago
|
||
Webadmins contacted through their Web form. BTW, the form worked only with IE :-(
Target Milestone: Aug → Oct
Comment 5•22 years ago
|
||
Second Evangelism letter sent through the form
http://firma.interia.pl/kontakt/kontakt.html and to both
mailto:czat@firma.interia.pl and mailto:Dzial.Techniczny@firma.interia.pl
Target Milestone: Oct → Dec
Comment 6•22 years ago
|
||
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.
Comment 7•22 years ago
|
||
jst: could you check if this is a Mozilla bug? If not, what is the solution?
Updated•22 years ago
|
Alias: czateria
Target Milestone: Dec → Nov
Updated•22 years ago
|
Target Milestone: Nov → Dec
Comment 8•22 years ago
|
||
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
Comment 10•16 years ago
|
||
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.
Comment 11•16 years ago
|
||
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.
Description
•