Port bug 936236.  r=shu on the original patch, port pretty much trivial modulo a rename or two, a=dveditz
Bug 982974 - Be paranoid about neutering ArrayBuffer objects.  r=sfink, r=jorendorff, a=dveditz