From c79a7b734edf120794ca3bb249ec0ba7251c5dd4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 23 May 2013 15:43:58 +0200 Subject: [PATCH] Fix browser warnings on PDF plugin detection (#1489118) --- CHANGELOG | 1 + program/js/app.js | 9 --------- program/resources/blank.pdf | Bin 921 -> 0 bytes 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 program/resources/blank.pdf diff --git a/CHANGELOG b/CHANGELOG index 7f465d825..44879784a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix browser warnings on PDF plugin detection (#1489118) - Fix fatal error when parsing UUencoded messages (#1489119) RELEASE 0.9.1 diff --git a/program/js/app.js b/program/js/app.js index 4017fa356..b6ffb5e51 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6809,15 +6809,6 @@ function rcube_webmail() 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; }; diff --git a/program/resources/blank.pdf b/program/resources/blank.pdf deleted file mode 100644 index 7bf83e3900de9fd5aa3ac3c47f2659819c5aefb9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 921 zcmZWo&ubGw6s`&q2Ie5>eL&MzB<}3bBvJyVX=oB_!zO5<5u7H|xU!uovlES;J$RM= zDT2Lt@ajovZ{j8GpCIVfH=C}e$-r(h-@fn7_r3Qf->%gQ_I(fM&(6P{Vq_CaPj`|GH4bhi_NDPVfG!hR*5@o>ULyeF{ z$-obJB1ftZMxmN%dh=@&qY{c>Y?}v)p*Wm;R+jj|5FlUb|iDb#je! z$8OVO?@6vPIr-kreLYinqN+#7^wXDu+!;PKFo!cLGuDowL;jOExdFuY^g{|HP_%)WqBh jGw=