Bug 898021 followup: compare viewType() result to the correct enum type. r=bhackett