Bug 1199592 - support TV device type in UA string. r=fabrice.

This commit is contained in:
Shih-Chiang Chien
2015-10-05 19:58:00 +02:00
parent ccdd774326
commit 1b0968c1ed
2 changed files with 29 additions and 7 deletions

View File

@@ -743,6 +743,8 @@ nsSystemInfo::Init()
if (__system_property_get("ro.build.characteristics", characteristics)) {
if (!strcmp(characteristics, "tablet")) {
SetPropertyAsBool(NS_LITERAL_STRING("tablet"), true);
} else if (!strcmp(characteristics, "tv")) {
SetPropertyAsBool(NS_LITERAL_STRING("tv"), true);
}
}