Closed Bug 372200 Opened 18 years ago Closed 18 years ago

extraneous code in gSessionHistoryObserver

Categories

(Firefox :: General, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: asqueella, Assigned: asqueella)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
bug 324354 added this code: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/browser/base/content/browser.js&rev=1.767&mark=322-331#311 You don't actually need to loop through all windows, since there's an instance of the observer in each window. It's enough to take care of your own gURLBar.
Attachment #256865 - Flags: review?(gavin.sharp)
ok, btw, instead of this: + gURLBar.editor.enableUndo(false); + gURLBar.editor.enableUndo(true); does gURLBar.editor.transactionManager.clear() have the same effect? If it works, then it's probably better to use that.
Yea, it does. Good catch!
Status: NEW → ASSIGNED
Attached patch better patchSplinter Review
Attachment #256865 - Attachment is obsolete: true
Attachment #256871 - Flags: review?(gavin.sharp)
Attachment #256865 - Flags: review?(gavin.sharp)
Attachment #256871 - Flags: review?(gavin.sharp) → review+
mozilla/browser/base/content/browser.js 1.768
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: