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)
DevTools
Debugger
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)
15.09 KB,
patch
|
past
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
![]() |
Assignee | |
Comment 1•13 years ago
|
||
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 | |
Comment 2•13 years ago
|
||
(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 3•13 years ago
|
||
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+
![]() |
Assignee | |
Comment 4•13 years ago
|
||
(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 :)
![]() |
Assignee | |
Comment 5•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
![]() |
Assignee | |
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
![]() |
Assignee | |
Comment 7•13 years ago
|
||
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 8•13 years ago
|
||
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+
![]() |
Assignee | |
Comment 9•13 years ago
|
||
![]() |
Assignee | |
Updated•13 years ago
|
status-firefox19:
--- → fixed
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•