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

This commit is contained in:
Brian R. Bondy 2012-11-27 15:32:04 -05:00
Родитель 0323e2e4df
Коммит 06234aa6b7
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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) {