4 ms·
That kind of bug happens under the "everything is a string" software paradigm. Abstractions that have more than one string representation inadvertently end up t
by kazinator 2y ago
That kind of bug happens under the "everything is a string" software paradigm. Abstractions that have more than one string representation inadvertently end up treated as different.
- darby_nine 2y agoThey are semantically different—one is a relative domain name, the other is distinct. I'm not sure how this impacts localstorage or cookies but it might.
- deleted 2y ago[deleted]
- OptionOfT 2y agoLocalstorage and cookies are stored by domain. If the relative domain is kept relative then it will never be equal to the absolute domain. Or let map = HashMap::from_iter([ "www.domain.com.": Cookiebag::new(), "www.domain.com": Cookiebag::new(), ]);