loleaflet/src/map/handler/Map.WOPI.js | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit faf381d0516e188a7ea86d71be9c11fa585656ad Author: Henry Castro <hcas...@collabora.com> AuthorDate: Wed Apr 29 12:09:26 2020 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Fri May 1 14:42:36 2020 +0200 loleaflet: fix the location origin from parent window Firefox and IE browser fails to get access to execute actions from parent windows when insert image from cloud storage. Change-Id: I3abfc6ecdf28f4c44bbc154af4a77f4c013c1001 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93169 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js index b3a4a2fc6..a65a6030b 100644 --- a/loleaflet/src/map/handler/Map.WOPI.js +++ b/loleaflet/src/map/handler/Map.WOPI.js @@ -189,6 +189,12 @@ L.Map.WOPI = L.Handler.extend({ return true; } + var origin = window.location.protocol + '//' + window.location.hostname; + if (origin === e.origin) { + this._cachedGoodOrigin = e.origin; + return true; + } + return false; }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits