loleaflet/js/jquery.mCustomScrollbar.js |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 7946e46257f89f04e4fe108bb8b8a9c163be05d3
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Fri Jul 17 10:10:28 2020 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Fri Jul 17 17:57:29 2020 +0200

    mCustomScrollbar: IFrame access is not allowed
    
    Due to security reasons, the access object from IFrame
    is restricted and throw exceptions. So always return false
    by default when using this component.
    
    Change-Id: Ib297ee49c563c2d4c6eb63a794284d3d3cfe79e8
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98978
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git a/loleaflet/js/jquery.mCustomScrollbar.js 
b/loleaflet/js/jquery.mCustomScrollbar.js
index eba3ccefe..14ed699d2 100644
--- a/loleaflet/js/jquery.mCustomScrollbar.js
+++ b/loleaflet/js/jquery.mCustomScrollbar.js
@@ -1564,10 +1564,6 @@ and dependencies (minified).
                                return _canAccessIFrameCache[cacheKey];
                        }
                        if(!iframe){
-                               try{
-                                       var doc=top.document;
-                                       html=doc.body.innerHTML;
-                               }catch(err){/* do nothing */}
                                result=(html!==null);
                        }else{
                                try{
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to