Bug 959585, clear capturing content before entering modal state, r=mrbkap, f=enn

--HG--
extra : rebase_source : 31d6fa26fbabd6cdded638fa24d946f9f9d97a13