Bug 915045 - Get current window type.

r=jugglinmike