зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1220061 - Android UA is not correct when MOZ_UA_OS_AGNOSTIC is set r=gerv
This commit is contained in:
Родитель
0942a15d26
Коммит
5f7f5f2afc
|
@ -741,6 +741,7 @@ nsHttpHandler::InitUserAgentComponents()
|
|||
nsresult rv;
|
||||
// Add the Android version number to the Fennec platform identifier.
|
||||
#if defined MOZ_WIDGET_ANDROID
|
||||
#ifndef MOZ_UA_OS_AGNOSTIC // Don't add anything to mPlatform since it's empty.
|
||||
nsAutoString androidVersion;
|
||||
rv = infoService->GetPropertyAsAString(
|
||||
NS_LITERAL_STRING("release_version"), androidVersion);
|
||||
|
@ -755,6 +756,7 @@ nsHttpHandler::InitUserAgentComponents()
|
|||
mPlatform += NS_LossyConvertUTF16toASCII(androidVersion);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
// Add the `Mobile` or `Tablet` or `TV` token when running on device.
|
||||
bool isTablet;
|
||||
|
|
Загрузка…
Ссылка в новой задаче