We need to add window.ononline and window.onoffline as well.
Created attachment 30819 [details] patch.diff
Comment on attachment 30819 [details] patch.diff r=me
Fixed in r44298.