Closed Bug 723111 Opened 13 years ago Closed 13 years ago

Make it easier to completely unwrap an object

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
js::UnwrapObject currently has the following behavior: If you pass an outer window directly to it, it returns the inner window ("unwrapping" the outer). If you pass a security wrapper to it, it will unwrap up to the outer window, but won't unwrap it. This is useful for the case where we want to peak under the security wrappers, but don't actually need the native out of the JS object. It turns out that it'd be useful to have an API that lets us get the innermost object. This patch adds that API and uses it in the two existing places that it seems to be useful.
Attachment #593445 - Flags: review?(bzbarsky)
Attachment #593445 - Flags: review?(bzbarsky) → review+
Comment on attachment 593445 [details] [diff] [review] patch Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/d7c7ea755e54 - about 90 short of passing make check.
Attachment #593445 - Flags: checkin+ → checkin-
Attached patch Updated patchSplinter Review
Carrying forward review: I missed a use of UnwrapObject in js/src/shell/js.cpp. Everything else is the same and the fix is trivial.
Assignee: general → mrbkap
Attachment #593445 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #593555 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: