javascript is executing twice, instead of once

RESOLVED WORKSFORME

Status

()

Firefox
General
--
major
RESOLVED WORKSFORME
14 years ago
13 years ago

People

(Reporter: oliver, Assigned: Blake Ross)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sg:needinfo])

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

When testing my new program i discovered follwing effect.
by using this html-code.
The JS-Alert Box popup's twice, correct is to show this box only one time.
i tested the script with ie 6.0.2800.1106 - box shown once!
i tested it with Navigator Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT;
rv:1.7) Gecko/20040616 - box shown only once.

i think there is may be a general problem in handling some data from page and
browser!

------------- change http entry to one of your site may localhost/text.html
<html><body>
"HTTP://projects/os-iris/proto_1/swe/index_.php"
security warning: Cross-Site-ScriptingVerdacht - Aus sicherheitsgründen wird
dieSitzung geschlossen
<script type="text/javascript">
window.location.href="HTTP://projects/os-iris/proto_1/swe/index_.php";
alert('Cross-Site-Scripting Verdacht\nAktuelle Sitzung wird
beendet!\n'+window.location.href );
</script>\n
0############</body></html>
----------------------------------------------------------------------------

Reproducible: Always

Actual Results:  
the box is shown twice instead of once


i don't know if there is an general problem in the behavior of handlig javascript.

but maybe it could be possible that this deeper bug could be a security-whole in
firefox.

Comment 1

13 years ago
Created attachment 190874 [details]
testcase similar to reporter's

This is the reporter's testcase, but with the URL replaced by one of mine.  I
only see the JavaScript execute once in both a Deer Park nightly and Firefox
1.1.

Oliver, do you see the bug when you use this testcase?	If not, what am I doing
wrong?

Updated

13 years ago
Whiteboard: [sg:needinfo] WFM, waiting for more information from reporter

Comment 2

13 years ago
Marking WFM and making public because I haven't seen a response from the reporter.
Group: security
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
Whiteboard: [sg:needinfo] WFM, waiting for more information from reporter → [sg:needinfo]
You need to log in before you can comment on or make changes to this bug.