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)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: khuey, Assigned: khuey)
References
Details
Attachments
(1 file)
10.33 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
The ContentPrefInstance change is to make the browser startup with the pref flipped for testing purposes.
Attachment #680673 -
Flags: review?(mrbkap)
Comment 1•12 years ago
|
||
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+
Assignee | ||
Comment 2•12 years ago
|
||
Assignee: nobody → khuey
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Assignee | ||
Comment 4•12 years ago
|
||
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•