зеркало из https://github.com/mozilla/gecko-dev.git
Bug 725602 - B2G UA is wrong [r=gal]
This commit is contained in:
Родитель
7a9973c59c
Коммит
d77152c920
|
@ -685,7 +685,7 @@ nsHttpHandler::InitUserAgentComponents()
|
||||||
nsCOMPtr<nsIPropertyBag2> infoService = do_GetService("@mozilla.org/system-info;1");
|
nsCOMPtr<nsIPropertyBag2> infoService = do_GetService("@mozilla.org/system-info;1");
|
||||||
NS_ASSERTION(infoService, "Could not find a system info service");
|
NS_ASSERTION(infoService, "Could not find a system info service");
|
||||||
|
|
||||||
bool isTablet;
|
bool isTablet = false;
|
||||||
infoService->GetPropertyAsBool(NS_LITERAL_STRING("tablet"), &isTablet);
|
infoService->GetPropertyAsBool(NS_LITERAL_STRING("tablet"), &isTablet);
|
||||||
if (isTablet)
|
if (isTablet)
|
||||||
mCompatDevice.AssignLiteral("Tablet");
|
mCompatDevice.AssignLiteral("Tablet");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче