Closed Bug 810987 Opened 12 years ago Closed 12 years ago

When reuseGlobal is true, stick imported properties on the function's this object, not the global

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: khuey, Assigned: khuey)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
The ContentPrefInstance change is to make the browser startup with the pref flipped for testing purposes.
Attachment #680673 - Flags: review?(mrbkap)
Comment on attachment 680673 [details] [diff] [review] Patch Review of attachment 680673 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/xpconnect/loader/mozJSComponentLoader.cpp @@ +598,5 @@ > + // caller is not a component/JSM (it could be a DOM scope, for > + // instance). > + if (!targetObject) { > + // Our targetObject is the caller's global object. Find it by > + // walking the calling object's parent chain. This comment happens to be true because JSObject::global() happens to do this, but that's a bug to be fixed. Please update the comment.
Attachment #680673 - Flags: review?(mrbkap) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: