Skip to content

Update Firefox version in user agent - #18040

Merged
bors-servo merged 1 commit into
servo:masterfrom
atouchet:user-agent
Aug 16, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
atouchet:user-agent

Conversation

@atouchet

@atouchet atouchet commented Aug 10, 2017 •

Copy link
Copy Markdown
Contributor

GitHub has started throwing warnings about using an outdated version of Firefox when loaded with Servo. I am assuming that this is due to Servo using Firefox 37.0 in its user agent which was set in 2015 and hasn't been updated since then. I don't know if updating this should cause any site compatibility issues or not.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 10, 2017
@KiChjang

Copy link
Copy Markdown
Contributor

I don't think this is the correct fix -- we shouldn't be lying to web servers claiming to be the newest version of Firefox when we clearly are not. Unfortunately I believe this is a problem with their user agent detection algorithm.

@jdm

jdm commented Aug 13, 2017

Copy link
Copy Markdown
Member

This is our problem to d Al with: we intentionally chose a UA that mimics a specific version of Firefox.

@jdm

jdm commented Aug 13, 2017

Copy link
Copy Markdown
Member

*deal with

@KiChjang

Copy link
Copy Markdown
Contributor

Sure, but all user agents also add in legacy identifiers like "Mozilla/5.0" and "AppleWebKit/537.36" for Chrome. This looks like it's the version of the browser where these browsers originally "forked" from. I'm not sure if we should change the Firefox version in the user agent string every time we encounter problems like this where the website erroneously reports about an incorrect version of Servo.

@jdm

jdm commented Aug 15, 2017

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 94c936a has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 15, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 94c936a with merge 1c4076a...

bors-servo pushed a commit that referenced this pull request Aug 15, 2017
Update Firefox version in user agent

<!-- Please describe your changes on the following line: -->
GitHub has started throwing warnings about using an outdated version of Firefox when loaded with Servo. I am assuming that this is due to Servo using Firefox 37.0 in its user agent which was set in 2015 and hasn't been updated since then. I don't know if updating this should cause any site compatibility issues or not.

---
<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18040)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: jdm
Pushing 1c4076a to master...

@bors-servo
bors-servo merged commit 94c936a into servo:master Aug 16, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 16, 2017
@atouchet
atouchet deleted the user-agent branch August 16, 2017 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants