Closed Bug 813587 Opened 13 years ago Closed 13 years ago

When performing global searches with very few characters the browser may become unresponsive

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox19 fixed)

RESOLVED FIXED
Firefox 20
Tracking Status
firefox19 --- fixed

People

(Reporter: vporof, Assigned: vporof)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 file)

Attached patch v1Splinter Review
How does this feel? The timeout delay now linearly decreases as the user types more chars. I also extended this exact same functionality to the variables view, since we're potentially dealing with thousands of nodes over there.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #683637 - Flags: review?(past)
(It's worth noting that you can now work around the delay by pressing return. So even if the current search is scheduled after the next second (e.g "!a"), pressing enter would force the search to happen immediately).
Comment on attachment 683637 [details] [diff] [review] v1 Review of attachment 683637 [details] [diff] [review]: ----------------------------------------------------------------- This feels good now. The delays I now get at github and gmail are caused by loading the script in orion and transmitting it over the protocol. ::: browser/devtools/shared/VariablesView.jsm @@ +243,5 @@ > + performSearch: function VV_performSearch(aQuery) { > + this.window.clearTimeout(this._searchTimeout); > + this._searchFunction = null; > + this._startSearch(aQuery); > + }, These methods seem like candidates for reuse among VariablesView.jsm and debugger-pane.js. Perhaps we should get a debugger-shared.jsm at some point?
Attachment #683637 - Flags: review?(past) → review+
(In reply to Panos Astithas [:past] from comment #3) > > These methods seem like candidates for reuse among VariablesView.jsm and > debugger-pane.js. Perhaps we should get a debugger-shared.jsm at some point? That, and quite a few others, like the create() function. However, I still feel it's a bit premature for another jsm. In a few months, perhaps :)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Comment on attachment 683637 [details] [diff] [review] v1 [Approval Request Comment] Bug caused by (feature/regressing bug #): On pages with very large minified scripts, automatic searches can choke while the user is typing. User impact if declined: Not typing a search query fast enough would freeze the browser for a few seconds. Testing completed (on m-c, etc.): fx-team and m-c Risk to taking this patch (and alternatives if risky): None. String or UUID changes made by this patch: None.
Attachment #683637 - Flags: approval-mozilla-aurora?
Comment on attachment 683637 [details] [diff] [review] v1 New feature, low risk, developer tools only, approving.
Attachment #683637 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: