Closed
Bug 83426
Opened 24 years ago
Closed 24 years ago
Remove DOM exception hack from XPConnect.
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: jst, Assigned: dbradley)
References
Details
Attachments
(1 file, 2 obsolete files)
When the XPCDOM changes landed we checked in a hack in XPConnect that made its
exception objects look more like the DOM exception objects, this hack should be
removed and replaces with using the nsIExceptionProvider service for creating
DOM exceptions. David has the XPConnect part partially fixed in his tree, and I
have part partially fixed in my tree.
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•24 years ago
|
||
jst, let me know if we need to move this to 1.0. I'm just wanted to get
something in there for now.
Target Milestone: --- → mozilla0.9.3
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
r= for jst's part of the patch
Happy Holloween
Comment 6•24 years ago
|
||
- The part in xpcthrower.cpp is a little broken in a couple of ways...
+ if (finalException == nsnull)
+ {
+ defaultException = finalException;
+ }
The assignment is backwards.
You should still check for finalException before attempting to throw it. It can
be null because you never checked that defaultException was not null (and this
code assumes that tls could have ben null too). So, you should still do:
if(finalException)
success = ThrowExceptionObject(cx, finalException);
- I see "if (" here!
- funny about the column number business :)
- I notice that nsXPCException::CanGetProperty still lists the property "code"
which is no longer present. That could be removed. We should think about adding
in some of the properties on nsIException; many were not originally present. For
the DOM expection all the scroptable ones will be visible. But for arbitrary xpc
exceptions we might want to exposes some info we are not exposing now.
- jst has a few assertions to add that he and I discussed.
fix the txpcthrowser stuff and sr=jband
Reporter | ||
Comment 7•24 years ago
|
||
Reporter | ||
Comment 8•24 years ago
|
||
With the issues jband commented about fixed, r=jst for dbradley's changes.
Assignee | ||
Comment 9•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Attachment #55964 -
Attachment is obsolete: true
Assignee | ||
Updated•24 years ago
|
Attachment #56054 -
Attachment is obsolete: true
Assignee | ||
Comment 10•24 years ago
|
||
patch checked in
Assignee | ||
Comment 12•24 years ago
|
||
Ok lets try to mark this fixed one more time. Sorry for the spam
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•