Closed Bug 130409 Opened 23 years ago Closed 4 years ago

setting window.location.host property does not work as expected

Categories

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

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: kryptolus, Unassigned)

References

()

Details

Going to the above URL will keep reloading the same page.

The script checks if document.location.host is not "www.sparkasse-aachen.de",
then it sets document.location.host to "www.sparkasse-aachen.de" but that does
not seem to cause mozilla to change pages. Just reload the current one.

Even worse, if you leave the page, and come back, the page is already cached and
it will be reloading really fast and stop/esc won't work.
http://developer.netscape.com/docs/manuals/communicator/jsref/wina1.htm#1013364
says that the host property is writable.
Also, setting window.location.hostname won't accept a port (it uses it as part
of the dns name).
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM Level 0
Ever confirmed: true
Summary: setting document.location.host property does not work as expected → setting window.location.host property does not work as expected
.
Assignee: rogerl → jst
QA Contact: pschwartau → desale
Sorry, filed the secondary issue as bug 130413.
ssieb, that's as expected. To set a host:ip combination, use the host attribute.
Christian, I'm not sure what you mean, see bug 130413.
Keywords: 4xp
*** Bug 158537 has been marked as a duplicate of this bug. ***
Observing the same problem on win98 and winXP

paltform/os ==> all/all

Please remember that the bug (as described in command 0) is still present!
OS: Linux → All
Hardware: PC → All
*** Bug 164206 has been marked as a duplicate of this bug. ***
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Assignee: general → nobody
QA Contact: desale → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.