[Libreoffice-commits] online.git: loleaflet/js
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 17 15:57:48 UTC 2020
loleaflet/js/jquery.mCustomScrollbar.js | 4 ----
1 file changed, 4 deletions(-)
New commits:
commit 7946e46257f89f04e4fe108bb8b8a9c163be05d3
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Fri Jul 17 10:10:28 2020 -0400
Commit: Henry Castro <hcastro at 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 <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Henry Castro <hcastro at 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{
More information about the Libreoffice-commits
mailing list