Gefiltert nach Kategorie Allgemeines Filter zur├╝cksetzen

On spam on this blog

17. Januar 2014, admin - Allgemeines

The comment section of this blog does not see a lot of use, so today i was kind of excited to see something make it through the captcha:

Do you have a spam problem on this blog; I also am a blogger, and I was curious about your situation; we have developed some nice practices and we are looking to swap techniques with others, be sure to shoot me an e-mail if interested.

<url redacted>

<the same url redacted again>

Title field was gibberish, name field was that same url, as was the url field. Given email was more of the same. This very obviously is spam, and was marked as that automatically. If you want to spam^Wcomment here, try to be on topic and fill the fields sensibly, and i may leave your urls and e-mail alone before unhiding the comment.

On a different topic, trackback spam has gone way down since i switched to hiding them by default(1-2 per day, maybe).

As can be guessed, this blog has practically no visitors, but at least spam is not an issue, thus low maintenance required.


Seamonkey and SecurityExceptions related to localStorage

08. November 2013, admin - Allgemeines

So i was having a problem with certain sites using localStorage, like this one. The error messages varied(and the linked one just plain didn't work), but the Javascript console produced a "SecurityError" with the message being only "The operation is insecure.", as if localStorage was disabled, which it definitely was not.


Digging into the source code, i found the function DOMStorage::CanUseStorage(in mozilla/dom/src/storage/DOMStorage.cpp). The logic there uses various logic, like checking for the dom.storage.enabled config variable and checking if the permission manager denies the access. This last part effectively checks the cookie policy setting (not so surprisingly, thinking about it). When nothing site specific is set up, the default settings get checked, and if the default setting is deny cookies, allow cookies or only allow session cookies, all is fine. The only setting that leads to really surprising behaviour is when you have setup seamonkey to ask about cookies. In the case of accessing localStorage, that case leads to the unconditional denying of access, instead of asking for permission.

I know this now, but that seems to be a quite underdocumented sideeffect of that particular setting.