[chrome:omnibox] Limit matches' texts for filtering.

For matches with long text, the regex filtering algorithm's performance becomes
problematic. For matches of about 350 characters, occasional lag becomes
noticeable as you type the filter text. For matches of about 500 characters, the
page approaches unusable when trying to filter.

When the match text being filtered is longer than 200 characters, we truncate it
to 100 characters and `console.warn` a message.

Bug: 891303
Change-Id: I79d9ce5eb17b479ddb0584aa0ac2e461938e8dac
Reviewed-on: https://chromium-review.googlesource.com/c/1372308
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Reviewed-by: Tommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615665}
1 file changed