URL not correctly prefixed in Javascript generated frame




16 years ago
2 months ago


(Reporter: helge.stenstrom, Unassigned)



Firefox Tracking Flags

(Not tracked)




(1 attachment)



16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611
BuildID:    2002061104

Link appears as "/smusk40/smusk-O-mat/login" when it should appear as
"http://www.hit.se/smusk40/smusk-O-mat/login" Works in MSIE.

Please feel free to change component for this bug, I'm not sure.

The URL http://www.hit.se/smusk40/smusk-O-mat/home brings up a page with some
frames. The left frame is for site navigation. The frame is generated by
javascript. (its URL is, according to Frame Info: javascript:parent.navigation)

If I select a link and do View Selection Source, the link is written as <a
href="/smusk40/smusk-O-mat/login" target="top">Logga in</a>, which looks fine.
But when I point to it, the URL that Mozilla tries to get is the same, i.e., it
is not prefixed with http://www.hit.se as it should be.

Reproducible: Always
Steps to Reproduce:
1. Go to http://www.hit.se/smusk40/smusk-O-mat/home
2. Point to the link "Logga in" in the left frame
3. Look at the info text on the bottom of Mozilla's window. The link is not
prefixed with http://sitename/
4. Click the link.
5. Nothing happens
6. Copy the link location, paste it into the URL bar and prefix it manually.
7. The page appears as it should.

Actual Results:  Nothing up to stage 5, which is enough to verify the bug.

Expected Results:  It should have prefixed the URL, as MSIE does.

I'd like to attach the source for the original page, but don't know how. Its URL
is http://www.hit.se/smusk40/smusk-O-mat/home. It's where all Javascript is defined.

Mozilla version: 1.1a (2002061104) on Win2k, also tried on 1.1b on Win98

Comment 1

16 years ago
Created attachment 94452 [details]
html code for http://www.hit.se/smusk40/smusk-O-mat/home

html of the problem page, as a backup if it's changed by the site owner.

Comment 2

16 years ago
This happens in BuildID 2002080508 on WinXP though I'm not sure mozilla is to
blame, perhaps the coding of the site?
To DOM0.... 
Assignee: Matti → jst
Component: Browser-General → DOM Level 0
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: asa → desale
Hardware: PC → All
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Assignee: general → nobody
QA Contact: desale → general

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
You need to log in before you can comment on or make changes to this bug.