Bug 898021 followup: compare viewType() result to the correct enum type. r=bhackett
backout 5efda3c30be3 (the second cset for bug 873378) after dzbarsky backed out the first cset. (to fix Android R2 orange)