Skip to content

Commit

Permalink
[Bug 1642386] Handle sync pings from Firefox for iOS < v28
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtzan committed Jul 7, 2020
1 parent 04d62a4 commit e06abf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,6 @@ static boolean bug1642386Affected(Map<String, String> attributes) {
return ParseUri.TELEMETRY.equals(attributes.get(Attribute.DOCUMENT_NAMESPACE))
&& attributes.get(Attribute.DOCUMENT_TYPE).equals("sync")
&& attributes.get(Attribute.APP_VERSION) != null
&& attributes.get(Attribute.APP_VERSION).matches("^([0-9]|[0-2][0-6])\\..*"); // <= 26
&& attributes.get(Attribute.APP_VERSION).matches("^([0-9]|[0-2][0-7])\\..*"); // <= 27
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ public void testBug1642386Affected() throws Exception {
assertFalse(MessageScrubber.bug1642386Affected(ImmutableMap.<String, String>builder()
.putAll(baseAttributes).put(Attribute.APP_VERSION, "60.6.1").build()));
assertFalse(MessageScrubber.bug1642386Affected(ImmutableMap.<String, String>builder()
.putAll(baseAttributes).put(Attribute.APP_VERSION, "28.1").build()));
assertTrue(MessageScrubber.bug1642386Affected(ImmutableMap.<String, String>builder()
.putAll(baseAttributes).put(Attribute.APP_VERSION, "27.1").build()));
assertFalse(MessageScrubber.bug1642386Affected(ImmutableMap.<String, String>builder()
.putAll(baseAttributes).put(Attribute.APP_VERSION, "100.0").build()));
Expand Down

0 comments on commit e06abf4

Please sign in to comment.