Closed Bug 83426 Opened 24 years ago Closed 24 years ago

Remove DOM exception hack from XPConnect.

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

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.
Status: NEW → ASSIGNED
Blocks: 66453
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
Moving out.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Moving out
Target Milestone: mozilla0.9.4 → mozilla1.0
r= for jst's part of the patch Happy Holloween
- 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
Attached patch New patch for nsDOMException.cpp (obsolete) — Splinter Review
With the issues jband commented about fixed, r=jst for dbradley's changes.
Attachment #55964 - Attachment is obsolete: true
Attachment #56054 - Attachment is obsolete: true
patch checked in
Forget to mark fixed
Target Milestone: mozilla1.0 → mozilla0.9.6
Ok lets try to mark this fixed one more time. Sorry for the spam
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: