Closed
Bug 434898
Opened 18 years ago
Closed 18 years ago
history.back can be rewritten across domains
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jamesjren, Unassigned)
References
()
Details
(Whiteboard: [sg:low] fix requires XOW)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Firefox 2.0.0.14
In Firefox 3 RC1, when you try to write to history.back across domains, you get a "Permission denied" error to the console. However, in Firefox 2, no such error occurs. The function can be overwritten with any arbitrary value, including another function. The same thing happens for:
history.forward
history.go
history.toString
history.foo
Where foo is any name you want to specify (except length)
Reproducible: Always
Steps to Reproduce:
1. Visit http://xenon.stanford.edu/~jamesren/tests/history-put.html
2. Click the "Install back function" button
3. Click the "go back" button in the frame. Note: Do this quickly after clicking the "Install back function" button; the function gets reset to the original value after some time.
Actual Results:
Alerts "Hi"
Expected Results:
Browser goes back
Comment 1•18 years ago
|
||
Duplicate of bug 393669, perhaps?
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Component: History: Session → DOM
Ever confirmed: true
Flags: wanted1.8.1.x?
QA Contact: history.session → general
Comment 2•18 years ago
|
||
Sort of. This is one of those bugs that XOWs fixed, but I'm not sure if anybody had a bug filed on it.
Comment 3•18 years ago
|
||
So would a 1.8 branch patch from bug 393669 fix us here? I'm setting this to sg:high? since the other bug was to, but perhaps this should be moderate.
Whiteboard: [sg:high?]
Comment 4•18 years ago
|
||
It probably would, but it would require porting XOWs, which would be a substantial undertaking that will never happen given the difficulty and time involved in doing so.
Comment 5•18 years ago
|
||
Should we WONTFIX this, then, given the proximity to Firefox 2 EOL?
Comment 6•18 years ago
|
||
I think so; it would be good to fix this, but it's not really possible without pulling at least two or three people off 1.9.1 for at least a couple person-days, one to port and two to review. Given that and our current location in the old-release-support cycle, I don't think we have any other choice.
Comment 7•18 years ago
|
||
WONTFIXing per comment 6.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Comment 8•17 years ago
|
||
so do we make this one public?
Flags: wanted1.8.1.x? → wanted1.8.1.x+
Whiteboard: [sg:high?] → [sg:low] fix requires XOW
Version: unspecified → 1.8 Branch
Updated•14 years ago
|
Group: core-security
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•