Closed
Bug 656823
Opened 14 years ago
Closed 8 years ago
Loading data: URLs from bookmarks shouldn't inherit principal
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 1324406
People
(Reporter: jruderman, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: sec-want, testcase, Whiteboard: [sg:want])
1. In the address bar, enter
data:text/html,<script>alert(document.cookie)</script>
Result: shows Bugzilla cookie
Expected: show empty alert
(Figuring out what to do for *javascript:* URLs is controversial and covered in other bugs.)
(Changing the behavior of data: *links in web pages* is controversial and covered in other bugs.)
Comment 1•14 years ago
|
||
Gavin has a fix for the url bar case.
| Reporter | ||
Comment 2•14 years ago
|
||
Gavin's patch in bug 656433 fixes the address bar case.
Depends on: 656433
Comment 3•14 years ago
|
||
(In reply to comment #0)
> Result: shows Bugzilla cookie
>
> Expected: show empty alert
Note that the patch in bug 656433 has slightly different expected results: no alert appears, because window.alert is undefined (there is no window object).
| Reporter | ||
Comment 4•14 years ago
|
||
That sounds quite strange. How does the data: document end up without a window object?
Comment 5•14 years ago
|
||
Gavin: that sounds odd. for javascript:, maybe, but data: should do the right thing.
Comment 6•14 years ago
|
||
Yes, sorry, I was confusing data: and javascript:. data: URIs show the alert, javascript: URIs don't.
Updated•10 years ago
|
Summary: Loading data: URLs from bookmarks or address bar shouldn't inherit principal → Loading data: URLs from bookmarks shouldn't inherit principal
Comment 8•8 years ago
|
||
Christoph, this is fixed now, right? Can you mark this as a dep on the bug that fixed this?
Flags: needinfo?(ckerschb)
Comment 9•8 years ago
|
||
(In reply to :Gijs from comment #8)
> Christoph, this is fixed now, right? Can you mark this as a dep on the bug
> that fixed this?
Let's mark it as a duplicate.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(ckerschb)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•