Bug 21285

Summary: XPath search in Web Inspector hangs Safari (when searching for //*)
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: Web Inspector (Deprecated)Assignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: ap
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://www.whatwg.org/specs/web-apps/current-work/
Attachments:
Description Flags
Proposed patch oliver: review+

Sam Sneddon [:gsnedders]
Reported 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.
Attachments
Proposed patch (13.33 KB, patch)
2008-10-03 20:49 PDT, Timothy Hatcher
oliver: review+
Mark Rowe (bdash)
Comment 1 2008-10-01 14:28:45 PDT
Timothy Hatcher
Comment 2 2008-10-03 20:49:16 PDT
Created attachment 24079 [details] Proposed patch
Timothy Hatcher
Comment 3 2008-10-04 13:37:32 PDT
Landed in r37287.
Note You need to log in before you can comment on or make changes to this bug.