Closed Bug 516102 Opened 15 years ago Closed 15 years ago

Refactor XPCNativeWrapperCtor into C++ callable and JS callable versions

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

Attachments

(1 file, 1 obsolete file)

Right now, XPCNativeWrapperCtor can be called by both JS and C++, which is confusing (and looking at cx->fp if we weren't called from JS is simply wrong).
Attached patch Fix (obsolete) — Splinter Review
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #400212 - Flags: review?(jst)
Attached patch With a testSplinter Review
Attachment #400212 - Attachment is obsolete: true
Attachment #400689 - Flags: review?(jst)
Attachment #400212 - Flags: review?(jst)
Comment on attachment 400689 [details] [diff] [review]
With a test

+    try {
+        is(new XPCNativeWrapper(window, Window).closed, false,
+           "able to wrap a window in a window XPCNativeWrapper");
+        new XPCNativeWrapper(document, Window);

The first of those two tests should be outside of the try shouldn't it?

r+sr=jst with that.
Attachment #400689 - Flags: superreview+
Attachment #400689 - Flags: review?(jst)
Attachment #400689 - Flags: review+
http://hg.mozilla.org/mozilla-central/rev/7e8e1dd4e8e6
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Depends on: 517163
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: