mozilla/pdf.js — pull request #5325 by fzembow (2014-09-21 20:54:37+00:00)
Title: Update findbar to wrap on initial search

Fix for https://github.com/mozilla/pdf.js/issues/5324

Updated pdf_find_controller to keep track of the original page index
on which the search begins. This allows us to wrap a search without looping
infinitely through the document: if we've wrapped and advanced beyond
the original page index, we know there are no more results to be found.