Closed
Bug 738314
Opened 14 years ago
Closed 14 years ago
test-content-proxy.js testSharedToStringProxies fails on bug-650353's branch
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
1.7
People
(Reporter: ochameau, Assigned: ochameau)
Details
Attachments
(1 file)
Bug 650353 introduce various platform changes around sandboxes, wrappers, ...
I gave a try today and it highlighted one bug in proxy code.
The following line is wrong:
https://github.com/mozilla/addon-sdk/blob/master/packages/api-utils/data/content-proxy.js#L720
And should be similar to:
https://github.com/mozilla/addon-sdk/blob/master/packages/api-utils/data/content-proxy.js#L714-717
This code is wrong, but there is something weird here. `toString` method doesn't have `wrappedJSObject` attribute. It may hide some deeper issue that doesn't provoke any failing test.
Assignee: nobody → poirot.alex
Priority: -- → P1
Target Milestone: --- → 1.7
| Assignee | ||
Comment 1•14 years ago
|
||
Here is a fix.
I verified `toString` behavior. So it's not an xraywrapper anymore, but it seems to create a new (another kind of) wrapper for each sandbox. The important point regarding safety is that this method can't be overrided. No attributes can be added to it and you can't access to its prototype. So it seems to be safe and we just have to fix the bug in proxy code.
| Assignee | ||
Updated•14 years ago
|
Attachment #608414 -
Flags: review?(rFobic)
Updated•14 years ago
|
Attachment #608414 -
Flags: review?(rFobic) → review+
Comment 2•14 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/53cba55b7053ba1f85cbc722261dced0abe9c0e5
Merge pull request #381 from ochameau/bug/738314-fix-non-xraywrapper-toString
Bug 738314: Fix `toString` in content scripts r=@gozala
| Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 3•14 years ago
|
||
Commits pushed to release at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/cb59376a1995fb27c84a519d362f7de1f1ce1574
Bug 738314: Fix `toString` in content scripts when this method isn't an xraywrapper. (New behavior in bug 650353)
https://github.com/mozilla/addon-sdk/commit/53cba55b7053ba1f85cbc722261dced0abe9c0e5
Merge pull request #381 from ochameau/bug/738314-fix-non-xraywrapper-toString
You need to log in
before you can comment on or make changes to this bug.
Description
•