This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6085, maybe.
Sentry says:
This change should fix that, but there are no tests because I couldn't come up with a failing test case.
I tried every possible user-agent string I could think of to reproduce it, without success. Sentry says the failing user-agent string was this:
Which surprised me and, sure enough, that works fine locally. I also tried prematurely terminating the string, inserting nulls, newlines, mismatched parentheses, specifying the empty string, strings that only contained whitespace, emojis and other deliberately weird inputs. None of them reproduce the behaviour for me.
So on the one hand, Sentry is really helpful. On the other hand, sometimes I get the impression that it isn't always truthful.
Was the stack trace for this error correct? The user-agent string? Was there really an error?
No idea, but hopefully this makes it go away.
@mozilla/fxa-devs r?