DescriptionFix broken mixed script Rappor metric and add browser test
This metric has not been recording meaningful data because of a mistake
while passing the mixed script hostname across the IPC boundary. We had
been passing a hostname and passing that into a GURL constructor to
pass into Rappor, but GURL expects a valid URL, including both scheme
and hostname, and returns an empty URL otherwise. So this change passes
the full origin (as a string), which correctly gets turned into a valid GURL.
Fix is based on a patch started by jialiul@ at
https://codereview.chromium.org/1424933014/
BUG=536975, 536981
Patch Set 1 #
Total comments: 5
Patch Set 2 : felt comments #Patch Set 3 : make BlockAllContentForTesting() uphold the details-is-a-valid-GURL contract #
Total comments: 6
Patch Set 4 : add comments #Messages
Total messages: 20 (5 generated)
|