Merge pull request #2413 from yurydelendik/bug-815475

Bug 815475 - Fix pdfjs when there is no integrated findbar (pdfjs 0.6.39 ...
This commit is contained in:
Yury Delendik 2012-11-27 08:33:00 -08:00
commit 9bf318019e

View File

@ -348,6 +348,7 @@ ChromeActions.prototype = {
// Integrated find is only supported when we're not in a frame and when the
// new find events code exists.
return this.domWindow.frameElement === null &&
getChromeWindow(this.domWindow).gFindBar &&
'updateControlState' in getChromeWindow(this.domWindow).gFindBar;
},
fallback: function(url, sendResponse) {