[Libreoffice-commits] online.git: loleaflet/src
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 1 12:42:54 UTC 2020
loleaflet/src/map/handler/Map.WOPI.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit faf381d0516e188a7ea86d71be9c11fa585656ad
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Apr 29 12:09:26 2020 -0400
Commit: Henry Castro <hcastro at 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 <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Henry Castro <hcastro at 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;
},
More information about the Libreoffice-commits
mailing list