servo/components/util
Benjamin Herr b84087c2f4 Make desktop UA string depend on build target.
This implements #7158 by conditionally choosing a UA string by
`#[cfg()]`-checking for `target_os = linux` and whether `target_arch` is
`x86_64` or not. Matching the behavior of Firefox, either "X11; Linux
x86_64" or "X11; Linux i686" is included.

`target_os = windows` is also checked; again as in Firefox "Windows NT
6.1; Win64; x64" or just "Windows NT 6.1" is included. The UA string
pretends to be non-WoW64 Windows 7, since there's only so much we can
detect at build time.

The existing desktop UA string that lists OS X is chosen if `target_os`
is neither `linux` nor `windows`.
2015-11-05 15:28:13 +01:00
..
deque Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
bezier.rs style: Switch animation timestamps to be doubles instead of floats. 2015-08-01 17:46:39 -07:00
cache.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
Cargo.toml Fix serde_macros 2015-10-28 21:53:15 +05:30
cursor.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
debug_utils.rs Move to new io in util. 2015-03-28 20:02:23 +01:00
geometry.rs Expand DisplayList layer bounds to whole pixels 2015-10-28 18:11:59 -07:00
ipc.rs Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00
lib.rs Remove some unused code on Android 2015-10-29 14:32:41 -07:00
linked_list.rs util: Remove the old broken SerializableLinkedList code in favor of 2015-07-31 08:42:29 -07:00
logical_geometry.rs Associate documentation comments for LogicalPoint's fields with the correct field. 2015-10-23 10:35:35 +02:00
mem.rs Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
opts.rs Make desktop UA string depend on build target. 2015-11-05 15:28:13 +01:00
persistent_list.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
prefs.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
print_tree.rs Improve printing of DisplayLists 2015-09-16 12:31:38 -07:00
range.rs gfx: Make display lists serializable using serde. 2015-07-15 19:04:17 -07:00
resource_files.rs Add a pref for a default homepage. 2015-09-25 00:58:51 +01:00
str.rs Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
task.rs Remove a pointless closure from spawn_named. 2015-10-23 10:35:58 +02:00
task_state.rs sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
taskpool.rs Cleanup code that was warned by rust-clippy 2015-10-11 20:47:45 -04:00
tid.rs sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
vec.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00
workqueue.rs Fix issues found by rust-clippy 2015-10-12 20:21:49 -04:00