Closed Bug 311830 Opened 19 years ago Closed 19 years ago

[FIX]Random window-related cleanups

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

See review comments in bug 296639 comment 49.
Blocks: splitwindows
Attached patch Patch (obsolete) — Splinter Review
Most of this is straightforward cleanup.  The one interesting bit (which needs
bryner's review, or someone else familiar with focus) is the change to
nsEventStateManager::PreHandleEvent in the NS_LOSTFOCUS case (the part that
says "@@ -711,32 +689,18 @@ nsEventStateManager::PreHandleEvent(nsPr").  The
change here was that I realized that ourGlobal is unused, and has been ever
since saari checked this code in.  He copy/pasted the code from somewhere that
_did_ use ourGlobal to get a focus controller to suppress; that was the
NS_DEACTIVATE case at the time, and that code has since been removed
(NS_DEACTIVATE now just gets the focus controller from mDocument).

I believe the change I made completely preserves the existing behavior, but I'm
not sure whether that was correct to start with, so would like some advice on
that.
Attachment #199038 - Flags: superreview?(jst)
Attachment #199038 - Flags: review?(bryner)
Priority: -- → P3
Summary: Random window-related cleanups → [FIX]Random window-related cleanups
Target Milestone: --- → mozilla1.9alpha
Comment on attachment 199038 [details] [diff] [review]
Patch

sr=jst on these changes. I honestly don't understand focus well enough to answer your focus question...
Attachment #199038 - Flags: superreview?(jst) → superreview+
jst, all good.  That's where bryner's review comes in.  ;)
Attachment #199038 - Flags: review?(bryner) → review+
Attached patch Updated to tipSplinter Review
Attachment #199038 - Attachment is obsolete: true
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: