Open Bug 209964 Opened 22 years ago Updated 1 year ago

file:/// URLs w/ no hostname are stored w/ no hostname

Categories

(Core :: Networking: Cookies, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: benc, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

The combination of bug bug 70871 and bug 109982, means that you can have a file: URL w/o hostname: file:///User/cookie.cookie.js That file can use javascript cookies to store a cookie w/ an empty hostname. History has a similar problem that has never been solved (it displays "no host"). Although I don't think that is the ideal name, I would like to have some kind of none-empty string displayed for cookies manager.
Severity: normal → enhancement
Target Milestone: --- → Future
Related problems in bug 209689 and bug 161636 have been fixed, but this remains in Mozilla 1.6f.
-> default owner
Assignee: darin → nobody
Target Milestone: Future → ---
Whiteboard: [necko-would-take]
Priority: -- → P5
Severity: normal → S3
See Also: → 1671589

"Currently, we let file: URIs have an empty base domain, which works because we don't allow cookies from any other "no domain" URIs." in https://github.com/whatwg/html/issues/3008

Relevant source for that: https://searchfox.org/mozilla-central/rev/0e3779abe6ad44feb787a295fbb67bc9fe4e927a/dom/base/Document.h#2567-2582

See Also: → 1473412
You need to log in before you can comment on or make changes to this bug.