зеркало из https://github.com/mozilla/gecko-dev.git
Bug 296270 - Default user agent on AIX contains machine information.
r=mozilla@kaply.com, sr=darin@meer.net, a=mozilla@kaply.com
This commit is contained in:
Родитель
3e0fbf96b8
Коммит
de2be6c22d
|
@ -692,7 +692,16 @@ nsHttpHandler::InitUserAgentComponents()
|
|||
} else {
|
||||
buf += ' ';
|
||||
|
||||
#ifdef AIX
|
||||
// AIX uname returns machine specific info in the uname.machine
|
||||
// field and does not return the cpu type like other platforms.
|
||||
// We use the AIX version and release numbers instead.
|
||||
buf += (char*)name.version;
|
||||
buf += '.';
|
||||
buf += (char*)name.release;
|
||||
#else
|
||||
buf += (char*)name.machine;
|
||||
#endif
|
||||
}
|
||||
|
||||
mOscpu.Assign(buf);
|
||||
|
|
Загрузка…
Ссылка в новой задаче