Bug 848253 - Release memory sooner when mutating session history. r=jlebar, a=akeybl