bug 829596 - Remove 'Tablet' from UA string of Firefox on Android tablets. back out changeset 196ed5ab68a1, r=mfinkle

This commit is contained in:
Brad Lassey 2013-02-06 14:32:21 -05:00
parent 47ca766a74
commit 00fb652d89

View File

@ -642,7 +642,9 @@ nsHttpHandler::InitUserAgentComponents()
bool isTablet;
nsresult rv = infoService->GetPropertyAsBool(NS_LITERAL_STRING("tablet"), &isTablet);
if (NS_FAILED(rv) || !isTablet)
if (NS_SUCCEEDED(rv) && isTablet)
mCompatDevice.AssignLiteral("Tablet");
else
mCompatDevice.AssignLiteral("Mobile");
#endif