Closed
Bug 303034
Opened 20 years ago
Closed 20 years ago
Add debug-only operator== to nsPIDOMWindow and nsIScriptGlobalObject
Categories
(Core :: DOM: Core & HTML, defect)
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. ;)
![]() |
Reporter | |
Comment 1•20 years ago
|
||
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...
Assignee | ||
Comment 2•20 years ago
|
||
Yeah, you can't write an == operator for just pointers :( Closing this bug.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•