diff --git a/config/milestone.pl b/config/milestone.pl index db3f6dd36ba1..fa9837ffdd06 100755 --- a/config/milestone.pl +++ b/config/milestone.pl @@ -71,10 +71,9 @@ if (defined(@TEMPLATE_FILE)) { } } } elsif(defined($opt_uaversion)) { - my $uaversion = Moz::Milestone::getMilestoneMajor($milestone) . "." . - Moz::Milestone::getMilestoneMinor($milestone); - # strip off trailing pre-release indicators - $uaversion =~ s/[a-z]+\d*$//; + # Only expose the major milestone in the UA string, hide the patch level + # (bugs 572659 and 870868). + my $uaversion = Moz::Milestone::getMilestoneMajor($milestone) . ".0"; print "$uaversion\n"; } else { print "$milestone\n"; diff --git a/js/src/config/milestone.pl b/js/src/config/milestone.pl index db3f6dd36ba1..fa9837ffdd06 100644 --- a/js/src/config/milestone.pl +++ b/js/src/config/milestone.pl @@ -71,10 +71,9 @@ if (defined(@TEMPLATE_FILE)) { } } } elsif(defined($opt_uaversion)) { - my $uaversion = Moz::Milestone::getMilestoneMajor($milestone) . "." . - Moz::Milestone::getMilestoneMinor($milestone); - # strip off trailing pre-release indicators - $uaversion =~ s/[a-z]+\d*$//; + # Only expose the major milestone in the UA string, hide the patch level + # (bugs 572659 and 870868). + my $uaversion = Moz::Milestone::getMilestoneMajor($milestone) . ".0"; print "$uaversion\n"; } else { print "$milestone\n";