Closed
Bug 804404
Opened 13 years ago
Closed 13 years ago
(xpcshell?) myFunction.toString() (as in Function.toString) returns "[sourceless code]" as the function body when loading scripts via Cu.utils.import/subscriptloader
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: jlal, Assigned: Benjamin)
Details
Attachments
(2 files)
|
1.60 KB,
application/zip
|
Details | |
|
11.61 KB,
patch
|
bzbarsky
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This is a regression from sometime between Aug 7th mozilla central xpcshell and now. The rational behind the use of Function.toString is to send javascript function bodies over marionette for gaia integration tests. Web content appears to work as expected.
| Assignee | ||
Comment 1•13 years ago
|
||
This simply moves the source hook code to XPConnect (no behavior change), so it gets used by xpcshell.
Assignee: general → benjamin
Attachment #674294 -
Flags: review?(bzbarsky)
Comment 2•13 years ago
|
||
Comment on attachment 674294 [details] [diff] [review]
set source hook in xpc
r=me
Attachment #674294 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
| Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 674294 [details] [diff] [review]
set source hook in xpc
[Approval Request Comment]
Low risk patch, which just moves code around. Wanted for b2g.
Attachment #674294 -
Flags: approval-mozilla-aurora?
Comment 5•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/986b4cb7678e
Should this have a test?
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 6•13 years ago
|
||
Comment on attachment 674294 [details] [diff] [review]
set source hook in xpc
Approving as it is a low risk patch , needed for b2g
Attachment #674294 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 7•13 years ago
|
||
Updated•13 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
•