Remove the localStorage replication of the block cookie
authorSam Wilson <sam@samwilson.id.au>
Wed, 18 Jan 2017 07:03:05 +0000 (15:03 +0800)
committerKaldari <rkaldari@wikimedia.org>
Fri, 17 Mar 2017 18:58:48 +0000 (11:58 -0700)
commit6e7c7f9d764f7df09175daa1ec54e4d15109a8c3
tree34ea35340f654c1547acd42ff626fa836e973475
parente8f339a9f56894181f8c4d4b66c34f385222ae2b
Remove the localStorage replication of the block cookie

The block cookie was being replicated to localStorage in an attempt
to make it harder for users to get around the block by deleting the
cookie (and changing IP addresses).

This whole setup was hard to test, had a few bugs (e.g. the localStorage
value would never expire), and given that it is a minor improvement
over just a plain cookie, it is now being removed. The cookie is only
intended to stop casual block-evaders (other users will get around it
by deleting the cookie or using incognito mode) and so it is not felt
worth having the extra complexity that will only guard against people
who know to remove cookies, not use incognito mode, and yet don't know
to remove localStorage.

Bug: T152952
Change-Id: Ifb06dc2390f4d648d7fcb39e30267de5eddc6941
includes/Block.php
includes/EditPage.php
includes/user/User.php
resources/Resources.php
resources/src/mediawiki/mediawiki.user.blockcookie.js [deleted file]