Bug 958269 - Don't call toSource on content-provided objects, for performance reasons [r=TimAbraldes]