mozilla/pdf.js — pull request #2298 by zalun (2012-10-23 10:35:18+00:00)
Title: Display an error on Invalid PDF

* InvalidPDFException added
* Act on throwing an Exception and InvalidPDFException by rejecting the worker
instead of throwing
* changed message for all builds
* alerting and closing window only for B2G builds
* invalid_file_error added to l10n (en and pl)
* UnknownErrorException added and used for every error()

code review: https://github.com/mozilla/pdf.js/pull/2264
bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=796694