Closed Bug 916876 Opened 11 years ago Closed 10 years ago

find functionality hangs on pdf viewer pages

Categories

(Firefox :: Untriaged, defect)

23 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: karlden, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130905 Firefox/23.0 (Nightly/Aurora)
Build ID: 20130905203958

Steps to reproduce:

1) Using a fresh load of firefox 23.0.1, press <ctrl>-f to open the "find" functionality.
2) Enter "practitioner" in the find box (or some string that can be found in the pdf that will be used in the next step). 
3) Start the open of a large pdf document (one that will take some time to load so that there is time to press a button while it is loading). It doesn't matter which one but the house of representatives health care bill is big enough for almost any speed machine or network, it is at:
http://housedocs.house.gov/rules/health/111_ahcaa.pdf
4) While the pdf is loading  in the firefox pdf viewer, press the "next" button.
5) After the pdf completes loading, press the "next" button again.
6) Repeat step 5 as many times as desired.



Actual results:

No find functionality is exhibited from steps 4, 5, or 6, regardless of how many times or how long one waits.

Details:
The find functionality does not hang if the load completes before step 4 is done. 



Expected results:

The find functionality should work at least in steps 5 and 6; and the press at step 4 should also work eventually although it is arguably not as important as steps 5 and 6.
Confirmed
http://hg.mozilla.org/releases/mozilla-release/rev/7c3b0732e765
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 ID:20130910160258
Status: UNCONFIRMED → NEW
Ever confirmed: true
I entered this bug 916876, and have recently contributed to pdf.js project source code (for related but different issues than this bug). Both from my testing and from inspection of the source code I believe this bug is now fixed. This was first fixed in part, and then later additional code fixed it entirely, so it isn't clear which patch or patches actually 'fixed' it. However, for future reference if needed, the fix is primarily in the PDFFindController object of the file pdf_find_controller.js file. The fix centers around the creation and use of the (previously nonexistent) Promise named 'firstPagePromise'.
WFM per comment 2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.