Browse Source

Only use the integrated find if we aren't in an frame.

Brendan Dahl 13 years ago
parent
commit
848917b1bf
  1. 5
      extensions/firefox/components/PdfStreamConverter.js

5
extensions/firefox/components/PdfStreamConverter.js

@ -343,7 +343,10 @@ ChromeActions.prototype = { @@ -343,7 +343,10 @@ ChromeActions.prototype = {
return getBoolPref(PREF_PREFIX + '.pdfBugEnabled', false);
},
supportsIntegratedFind: function() {
return 'updateControlState' in getChromeWindow(this.domWindow).gFindBar;
// 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 &&
'updateControlState' in getChromeWindow(this.domWindow).gFindBar;
},
fallback: function(url, sendResponse) {
var self = this;

Loading…
Cancel
Save