Bug 21285 - XPath search in Web Inspector hangs Safari (when searching for //*)
Summary: XPath search in Web Inspector hangs Safari (when searching for //*)
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: Timothy Hatcher
URL: http://www.whatwg.org/specs/web-apps/...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-10-01 14:26 PDT by Sam Sneddon [:gsnedders]
Modified: 2008-10-04 13:37 PDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (13.33 KB, patch)
2008-10-03 20:49 PDT, Timothy Hatcher
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2008-10-01 14:26:54 PDT
If you start typing an XPath query in the search box in the web inspector, it attempts to evaluate the search on every time a character is entered. If the query begins with "//*", this hangs WebKit (56k elements does that…). Perhaps it should have a slight delay, but ultimately XPath should probably be optimized itself.

In short: searching for //* hangs WebKit.
Comment 1 Mark Rowe (bdash) 2008-10-01 14:28:45 PDT
<rdar://problem/6262055>
Comment 2 Timothy Hatcher 2008-10-03 20:49:16 PDT
Created attachment 24079 [details]
Proposed patch
Comment 3 Timothy Hatcher 2008-10-04 13:37:32 PDT
Landed in r37287.