+++ This bug was initially created as a clone of Bug #722872 +++
I have already done a minor port here to fix bustage:
We need to fix the rest of the instances in mailnews and mail
Should be reasonable simple to do, attachment 636714 [details] [diff] [review] has plenty of examples as well.
I do not understand what should be the argument to .init().
The argument to init() is the load context for the docshell to which the transferable belongs.
"Found 5 matching lines in 2 files"
Created attachment 666666 [details] [diff] [review]
Ok, so the best I can work out is that bug 722872 doesn't affect us in the release mode state, but it does affect us in debug.
Strictly speaking this probably therefore isn't required for 16, but I'd feel more comfortable having it in, as a) we won't get people building debug complaining about the assertions and b) if something did happen to change in a security release that really required the init, we'd be protected without having to do extra work.
Oh, and this is basically porting the work directly from bug 722872 to the cases where we use it.
Checked in: https://hg.mozilla.org/comm-central/rev/181d8e293518
Comment on attachment 666666 [details] [diff] [review]
Although this isn't super-necessary, I think we should take it anyway as it doesn't really affect us, but does protect us in case something weird gets added later.
Better late than never - I looked at the code, and yes, this looks like the right thing to do.