diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-12-17 20:44:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 20:44:45 -0500 |
commit | c65e2685db93024e60bb76d010e67cac2c16d91d (patch) | |
tree | 5b221d7d06261da683957c3289be5d951ac75198 /components | |
parent | 79408fa36bae63eef07c5bbb5c92d40d3193d808 (diff) | |
parent | f634100c69a116c02d8a65de015bb312d1ebdb81 (diff) | |
download | servo-c65e2685db93024e60bb76d010e67cac2c16d91d.tar.gz servo-c65e2685db93024e60bb76d010e67cac2c16d91d.zip |
Auto merge of #25308 - atouchet:win10, r=jdm
Use Windows 10 instead of 7 in user agent string
<!-- Please describe your changes on the following line: -->
I tried testing https://my.panomoments.com/ in the latest nightly version of Servo but it wouldn't load because it requires Windows 8 or newer and Servo's user agent string says it's using Windows 7. This change should allow sites requiring a modern version of Windows to run. This could potentially cause issues for users running older versions of Windows however. A better long term solution would be to do #18194.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components')
-rw-r--r-- | components/config/opts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/config/opts.rs b/components/config/opts.rs index fb4e3112837..e534a042139 100644 --- a/components/config/opts.rs +++ b/components/config/opts.rs @@ -487,10 +487,10 @@ fn default_user_agent_string(agent: UserAgent) -> &'static str { #[cfg(all(target_os = "windows", target_arch = "x86_64"))] const DESKTOP_UA_STRING: &'static str = - "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Servo/1.0 Firefox/63.0"; + "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Servo/1.0 Firefox/63.0"; #[cfg(all(target_os = "windows", not(target_arch = "x86_64")))] const DESKTOP_UA_STRING: &'static str = - "Mozilla/5.0 (Windows NT 6.1; rv:63.0) Servo/1.0 Firefox/63.0"; + "Mozilla/5.0 (Windows NT 10.0; rv:63.0) Servo/1.0 Firefox/63.0"; #[cfg(not(any(target_os = "linux", target_os = "windows")))] // Neither Linux nor Windows, so maybe OS X, and if not then OS X is an okay fallback. |