Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getFindBar for Fx extension #4753

Merged
merged 1 commit into from
May 8, 2014

Conversation

hobophobe
Copy link
Contributor

BMO: 1006714: 'Find' fails to search whole PDF with pdf.js when opened in a new tab was caused by BMO: 537013: The find bar should exist on a per-tab basis which made gFindBar point to the active tab's findbar.

This pull request addresses the defect by adding a function to get the correct findbar based on the domWindow. It also adds a test that checks if the findbar has been initialized (I verified that the test fails pre-patch and passes post-patch, in addition to testing that the behavior described in the bug is fixed).

@yurydelendik
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 8, 2014

From: Bot.io (Linux)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/7a5a594e03e650a/output.txt

@@ -47,6 +47,11 @@ function runTests(document, window, callback) {
ok('PDFJS' in window.wrappedJSObject, "window content has PDFJS object");

//
// Browser Find
//
ok(gBrowser.isFindBarInitialized(tab), "Browser FindBar initialized!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chrome-browser test timeout due to this line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Console message: [JavaScript Error: "tab is not defined" {file: "chrome://mochitests/content/browser/browser/extensions/pdfjs/test/browser_pdfjs_main.js" line: 52}]

@yurydelendik yurydelendik merged commit bc66c81 into mozilla:master May 8, 2014
@yurydelendik
Copy link
Contributor

@hobophobe thank you for the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants