Closed Bug 749993 Opened 14 years ago Closed 14 years ago

SpecialPowers.wrap()'ing a message manager doesn't work

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: justin.lebar+bug, Unassigned)

References

Details

I added the following to specialpowersAPI.js: getBrowserFrameMessageManager: function(aFrameElement) { return this.wrap(aFrameElement.QueryInterface(Ci.nsIFrameLoaderOwner) .frameLoader .messageManager); } (With my work in bug 749018, aFrameElement is an <iframe mozbrowser>.) When I call e.g. loadFrameScript on the object getBrowserFrameMessageManager() returns, nothing happens. If I instead don't wrap the message manager and call loadFrameScript from within specialpowersAPI.js, everything works as I expect. Maybe I'm doing something wrong here, or maybe this isn't supposed to work. But it would certainly be nice if it worked... I'll post a testcase.
Blocks: 749018
Hm, and now that I'm recreating the code for the purposes of this testcase, it seems to work fine. That was easy, I guess.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.