mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 829596 - Remove 'Tablet' from UA string of Firefox on Android tablets. back out changeset 196ed5ab68a1, r=mfinkle
This commit is contained in:
parent
47ca766a74
commit
00fb652d89
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user