Closed Bug 303034 Opened 19 years ago Closed 19 years ago

Add debug-only operator== to nsPIDOMWindow and nsIScriptGlobalObject

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bzbarsky, Assigned: jst)

References

Details

The operator should assert that both windows are outer or both are inner, then probably compare after casting to void*. I wish we could do the same for nsIDOMWindow/nsIDOMWindowInternal, but I don't see a way to do that... Not quite willing to toss debug-only {%C++ sections in the IDL. ;)
Though.... our problem is pointer compares, and an operator== won't help with those, will it? So perhaps the right solution is to just not work with inner windows except in a very small limited set of cases...
Yeah, you can't write an == operator for just pointers :( Closing this bug.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.