Bug 695143: Attempt to make getDOMWindow work for high-level window and tab objects.