Bug 1013972 - Take account of reentrancy when removing entries from sJSObjWrappers. r=bsmedberg, a=lsblakk

--HG--
extra : rebase_source : 7fecf3428a9caeb79fa11e6e1ffac3d1d7233eca
Bug 1014252 - Optimize clearing of textruns via RemoveInFlows. r=matspal, a=lmandel

We're keeping the core idea that, before we remove the frames-to-be-destroyed
from the continuation chain, their textruns need to be disconnected/destroyed.
However, nsContinuingTextFrame::DestroyFrom tries to optimize when the
destroying frames that aren't mentioned in the userdata for the textrun, and
certain other conditions are met; we need a similar optimization here. It's
simpler here because the other conditions are definitely met, since all the
text for the frames being deleted has already been consumed and reflowed by
previous frames.

We don't need the TEXT_STYLE_MATCHES_PREV_CONTINUATION state bit anymore
because nsContinuingTextFrame::DestroyFrom will never see any textruns when
called via RemoveEmptyInFlows.

--HG--
extra : rebase_source : c3302d61c12f5229f0c54f47043d3163ce5c123f
Bug 1010784 - Null out sync loop target to avoid assertions when reusing sync XHR. r=khuey, a=lsblakk

--HG--
extra : rebase_source : f9c2c0f9722cc97f7c6e65bd7698e174a237d6fe
Bug 965309 - Shut down the sync loop, if any, when we shut down the XHR. r=bent, a=lsblakk

--HG--
extra : rebase_source : 14aeb3178829901673be455a306ec7d2ef46d165