Browse Source

Bug 815475 - Fix pfjs when there is no integrated findbar (pdfjs 0.6.39 broke Firefox metro)

Brian R. Bondy 13 years ago committed by Yury Delendik
parent
commit
e2baa902c6
  1. 1
      extensions/firefox/components/PdfStreamConverter.js

1
extensions/firefox/components/PdfStreamConverter.js

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

Loading…
Cancel
Save