Bug 974412 - Cancel any pending InvalidatePresShellIfHidden() request for the shell when detaching the pres context.  r=roc
Bug 974905 - Warn and ignore SchedulePaint calls in a detached pres context.  r=roc