Bug 968174 - Don't schedule a paint if the pres context was detached during the delay.  Re-enable the assertions from bug 967758.  r=roc
Bug 969773 - Restore Selection/Controller state when disconnecting the editor.  r=ehsan