mozilla/pdf.js — pull request #1499 by saebekassebil (2012-04-06 09:30:05+00:00)
Title: Simple heuristics for choosing document title

As the title states this is simple heuristics for choosing the document title. @aleth says that he's quite frequently seeing PDF documents with a "()" title. This is probably because of some "bad" PDF generator/encoder, but it would nonetheless be better to display the filename in such cases - which is what this pull request does.

"Fixes" #1476