Bug 827255 - Patch 1: Enable AG error result code, r=echou
Back out bug 588237, patches 2 through 5.