commit | a7c31efa862f37842f36f4a188c00daf0469f04a | [log] [tgz] |
---|---|---|
author | manuk <manukh@chromium.org> | Tue Dec 11 21:23:42 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 11 21:23:42 2018 |
tree | 24159f7dc6f155a46730a3a4592b89261263adea | |
parent | 93b08b15ecfcef9f8e343824992c1a46c4333393 [diff] |
[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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .