Closed Bug 1098246 Opened 11 years ago Closed 11 years ago

Enhance browser_pdfjs_navigation.js to navigate using arrows keys

Categories

(Firefox :: PDF Viewer, defect)

35 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: cosmin-malutan, Assigned: cosmin-malutan)

References

Details

(Whiteboard: [pdfjs-c-testing])

Attachments

(1 file)

https://moztrap.mozilla.org/manage/case/8120/ In order to have full coverage for the moztrap above: Step 3, we have to navigate trough document using arrow keys, "Page Down", "Page Up", "End" and "Home" from keyboard. https://github.com/mozilla/gecko-dev/blob/master/browser/extensions/pdfjs/test/browser_pdfjs_navigation.js
I think we can have in same bug step 8: > Click on "Presentation Mode" button to enter in full screen mode, allow to enter in full screen, scroll through pages and use context menu. But this needs to be investigated.
Attached patch patch v1.0 — — Splinter Review
For this enhancement I had to first set the scale size to "page-fit" otherwise scrolling using keys won't change a full page. When I try to click the presentation mode button I get the following warning in console: >Request for full-screen was denied because Element.mozRequestFullScreen() was not called from inside a short running user-generated event handler On the first search I found-out that we can't enter in fullscreen mode trough an automated script: http://stackoverflow.com/questions/9454125/javascript-request-fullscreen-is-unreliable#answer-9747340 Now even if we can enter in the full-screen, we should test the navigation in fullscreen mode in a diffrent test becassue in fullscreen we can navigate only by using keys and whithout the naviagation elements(buttons/outline/page number). So it makes sense for me to take care of requirements from comment 0.
Assignee: nobody → cosmin.malutan
Status: NEW → ASSIGNED
Attachment #8533715 - Flags: review?(dtownsend+bugmail)
Attachment #8533715 - Flags: review?(dtownsend+bugmail) → review+
Thanks Dave.
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [pdfjs-c-testing] → [pdfjs-c-testing][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 1112947
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: