Merge pull request #4128 from Snuffleupagus/fix-open-button-on-fallback-bar

Fix regression that disabled the "Open With Different Viewer" button on the fallback bar
This commit is contained in:
Yury Delendik 2014-01-16 05:26:30 -08:00
commit 6c3bdd144a
2 changed files with 11 additions and 6 deletions

View File

@ -377,7 +377,10 @@ ChromeActions.prototype = {
break;
}
},
fallback: function(featureId, url, sendResponse) {
fallback: function(args, sendResponse) {
var featureId = args.featureId;
var url = args.url;
var self = this;
var domWindow = this.domWindow;
var strings = getLocalizedStrings('chrome.properties');

View File

@ -615,11 +615,13 @@ var PDFView = {
// return;
// this.fellback = true;
// var url = this.url.split('#')[0];
// FirefoxCom.request('fallback', featureId, url, function response(download) {
// if (!download)
// return;
// PDFView.download();
// });
// FirefoxCom.request('fallback', { featureId: featureId, url: url },
// function response(download) {
// if (!download) {
// return;
// }
// PDFView.download();
// });
//#endif
},