Bug 61282 - Web Inspector: extreme lagging when searching for "img[src*="
Summary: Web Inspector: extreme lagging when searching for "img[src*="
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 06:55 PDT by Alexander Pavlov (apavlov)
Modified: 2011-05-25 07:05 PDT (History)
10 users (show)

See Also:


Attachments
[PATCH] Suggested solution (23.77 KB, patch)
2011-05-23 08:09 PDT, Alexander Pavlov (apavlov)
no flags Details | Formatted Diff | Diff
[PATCH] Fixed search result highlights for dynamic nodes (24.05 KB, patch)
2011-05-23 08:56 PDT, Alexander Pavlov (apavlov)
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2011-05-23 06:55:52 PDT
1. Open Web Inspector (tab 'elements') on any page
2. In the search field, type "img[src*=abc]
3. Notice that after typing the *, the devtools hang for about a minute

Upstreaming http://code.google.com/p/chromium/issues/detail?id=80513

The underlying cause is the presence of AdBlock which inserts extremely long CSS style blocks into <head>, so this issue will occur on any page with long <style> or <script> blocks.
Comment 1 Alexander Pavlov (apavlov) 2011-05-23 08:09:13 PDT
Created attachment 94429 [details]
[PATCH] Suggested solution
Comment 2 Alexander Pavlov (apavlov) 2011-05-23 08:56:57 PDT
Created attachment 94431 [details]
[PATCH] Fixed search result highlights for dynamic nodes
Comment 3 Alexander Pavlov (apavlov) 2011-05-23 09:12:31 PDT
Another case exhibiting the lag issue:

1. Navigate to google.com
2. Open inspector using Ctrl+Shift+I
3. Go to Elements tab(if not there) and type google search
4. Hit enter and hold for 5 seconds. Inspector hangs and doesn't respond anymore.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=82295
Comment 4 Yury Semikhatsky 2011-05-24 05:58:58 PDT
Comment on attachment 94431 [details]
[PATCH] Fixed search result highlights for dynamic nodes

Would be great if we could get rid of the node highlight delta.
Comment 5 Alexander Pavlov (apavlov) 2011-05-25 07:05:08 PDT
Committed r87294: <http://trac.webkit.org/changeset/87294>