Repository navigation
Update Firefox version in user agent - #18040
Conversation
|
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. |
|
This is our problem to d Al with: we intentionally chose a UA that mimics a specific version of Firefox. |
|
*deal with |
|
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. |
|
@bors-servo: r+ |
|
📌 Commit 94c936a has been approved by |
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 -->
|
☀️ 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 |
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 -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is