Bug 832148 - Remove AutoPtr. r=njn

--HG--
extra : rebase_source : b798d2ac8c56bd610cd52bc3ac86f585c18055c8
Bug 774315 - Followup to switch to using background-image/background-position for the close icon. r=me