Closed Bug 123409 Opened 23 years ago Closed 22 years ago

optimization for nsWindowWatcher::OpenWindowJS

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

x86
FreeBSD
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: timeless, Assigned: adamlock)

Details

Attachments

(1 file, 1 obsolete file)

 
Comment on attachment 67787 [details] [diff] [review]
only check windowmodal if we aren't sure if the child should be modal

r=adamlock
Attachment #67787 - Flags: review+
timeless, do you want to get the sr and check this in?
QA Contact: mdunn → depstein
+    PRBool weAreModal = chromeFlags & nsIWebBrowserChrome::CHROME_MODAL;

This is a bad way to set a boolean. You could end up with non-low bits set in
the variable. You want
  (chromeFlags & nsIWebBrowserChrome::CHROME_MODAL) != 0
i was tempted to use !!() but was concerned that the number of comments i'd get
if i did that would exceed the number of lines added/removed in the patch...
Attachment #67787 - Attachment is obsolete: true
Comment on attachment 74044 [details] [diff] [review]
same patch w/ ()!=0

a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #74044 - Flags: approval+
fixed
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Timeless, seems like the wrong patch was checked in. It contains:  
  PRBool weAreModal = chromeFlags & nsIWebBrowserChrome::CHROME_MODAL;
reopening. you need to create another patch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Ignore me. I see the later fixup checkin now ...
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
verified against 3/15/02 Mozilla debug build 0.9.9
mozilla/embedding/components/windowwatcher/src/nsWindowWatcher.cpp
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: