DescriptionParse out XSSI guards in Suggestion JSON response
For personalized suggestions in Suggest response, there is a desire for
additional security. In particular, there will be XSSI guards to prevent (well)
XSSI.
We are taking the approach of assuming that XSSI guards will always be there,
and just try to parse it out by looking for the start of valid sugggestion
response. Since the suggestion response is supposed to be a JS array, we look
for "[" in the response. And we repeat the search, in case the XSSI guard
contains "[".
BUG=312458
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231989
Patch Set 1 : Ready for review #
Total comments: 4
Patch Set 2 : Infinite loop fix #
Total comments: 4
Patch Set 3 : Adapted as per Peter's suggestion #Patch Set 4 : Added relevance in testcase for predicatable matches #Patch Set 5 : Rebase, reload, wish #Patch Set 6 : Rebase, reload, retry #
Messages
Total messages: 17 (0 generated)
|