Closed Bug 236314 Opened 20 years ago Closed 20 years ago

document.location.href assignment access denied

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tigmac, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

The javascript code
onClick="document.location.href='/rozbal_diskusi.html?diskuse=17690&vsechny_r=0&zpet=/zprava.html';"
attached to a form button causes an exception, the browser is trying to
access rozbal_diskusi.html on local machine (chrome://browser//)
instead of a page in the document root of current server.

I'm not a JavaScript guru, so the way Firefox handles it might be also
intentional, but I consider this to be pretty unlikely.


Reproducible: Always
Steps to Reproduce:
1. go to the referred page or any other newsflash page on the same server
2. click the "Zobraz vse" button at the bottom to show the discussion
3. check what javascript console says

Actual Results:  
Javascript console says:

Security Error: Content at http://technet.idnes.cz/zprava.html?zprava=27289 may
not load or link to
chrome://browser//rozbal_diskusi.html?diskuse=17690&vsechny_r=0&zpet=/zprava.html?diskuse=17690&vsechny_r=0&zpet=/zprava.html.



Expected Results:  
Page
http://technet.idnes.cz/rozbal_diskusi.html?diskuse=17690&vsechny_r=0&zpet=/zprava.html
should load.
Works for me using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b)
Gecko/20040304 Firefox/0.8.0+ and the 0.8 milestone build.

Please try installing into a new directory and creating a new profile, using the
MozillaFirebird.exe -p switch, and report your results here.  If you are using
an extension that does things to the targeting of links (such as TBE) you might
see bugs like this, which aren't bugs in Firefox

QA Contact: mconnor
worksforme with 20040425 Firefox on winXP
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.