Bug 933483 - Add nsPIDOMWindow::IsCurrentInnerWindow. r=smaug, a=koi+
Bug 933483 - Don't fire events (and especially request animation frame events) when we're in a modal dialog. r=smaug, a=koi+