Bug 846037 - Get the input size during runtime

https://bugzilla.mozilla.org/show_bug.cgi?id=846037