Closed
Bug 730013
Opened 11 years ago
Closed 11 years ago
nsTransactionManager (and undo/redo stacks) are often in CC graph, even if the manager is alive
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: smaug, Assigned: smaug)
Details
(Whiteboard: [qa?])
Attachments
(2 files)
3.80 KB,
patch
|
ehsan.akhgari
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
3.80 KB,
patch
|
Details | Diff | Splinter Review |
The worst case is probably locationbar, where we may get quite large undo/redo stacks, and lots of transactions. It is a bit difficult to add any CanSkip methods to the manager, since the ownership rules aren't that clear. (the manager is used also elsewhere than just with editor). So, the patch just makes us addref/release less so that txmanager doesn't end up to purple buffer in the most common case (this makes the code also a tiny bit faster). The API of nsIEditor gets also a bit better, since it already has undo(cnt)/redo(cnt), but no way to tell how many times undo/redo is effective.
Attachment #600073 -
Flags: review?(ehsan)
Assignee | ||
Comment 1•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=c8359a91ef94
Assignee | ||
Comment 2•11 years ago
|
||
This might be good for FF12 too, since the patch should be very safe, and it reduces CCs times during typing to locationbar.
tracking-firefox12:
--- → ?
Comment 3•11 years ago
|
||
Comment on attachment 600073 [details] [diff] [review] patch Review of attachment 600073 [details] [diff] [review]: ----------------------------------------------------------------- This is really good, and I'd be fine if you would want to backport it to branches.
Attachment #600073 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/13b571bde26a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 5•11 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2) > This might be good for FF12 too, since the patch should be very safe, and it > reduces > CCs times during typing to locationbar. We haven't seen reports of pausing in the locationbar - could this be related to other pauses as well?
Target Milestone: --- → mozilla13
Assignee | ||
Comment 6•11 years ago
|
||
Yes. The patch should help with CC runs which happen when user is typing to location bar or to any input/textarea element.
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 600073 [details] [diff] [review] patch [Approval Request Comment] Regression caused by (bug #): N/A User impact if declined: Possibly higher CC times while typing Testing completed (on m-c, etc.): Landed m-c 2012-02-23 Risk to taking this patch (and alternatives if risky): Should be very low risk patch String changes made by this patch: N/A
Attachment #600073 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Comment 8•11 years ago
|
||
Comment on attachment 600073 [details] [diff] [review] patch [Triage Comment] Approved for Aurora 12 since this is low risk and we have heard of slow input into text boxes being an intermittent issue for our users.
Attachment #600073 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 9•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Mozilla-Aurora&rev=cbfa968b61f5
Assignee | ||
Updated•11 years ago
|
status-firefox12:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•