Aleksander Machniak
2013-04-28 de6e22573ee3128b3a04deda70ef4181b8f4c721
Fix PDF support detection for Firefox PDF.js (#1488972)
1 files added
2 files modified
10 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 9 ●●●●● patch | view | raw | blame | history
program/resources/blank.pdf patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix PDF support detection for Firefox PDF.js (#1488972)
- Fix messages list focus issue in Internet Explorer (#1489058)
- Add db_prefix configuration option in place of db_table_*/db_sequence_* options
- Make possible to use db_prefix for schema initialization in Installer (#1489067)
program/js/app.js
@@ -6721,6 +6721,15 @@
        return 1;
    }
    // this will detect any pdf plugin including PDF.js in Firefox
    var obj = document.createElement('OBJECT');
    obj.onload = function() { rcmail.env.browser_capabilities.pdf = 1; };
    obj.onerror = function() { rcmail.env.browser_capabilities.pdf = 0; };
    obj.style.display = 'none';
    obj.type = 'application/pdf';
    obj.data = 'program/resources/blank.pdf';
    document.body.appendChild(obj);
    return 0;
  };
program/resources/blank.pdf
Binary files differ