loleaflet/js/global.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c9be6b4a30871c569a7d6a1a5ba6b18dc670111e
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Mon May 18 23:26:35 2020 -0400
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Wed May 20 16:45:30 2020 +0200

    leaflet: restore reuse_cookies to the url
    
    Reuse cookies are captured on file-serving the
    loleaflet.html, whereupon they are injected
    into it before serving as part of the document
    load url. They show up as &reuse_cookies=
    in the url embedded in loleaflet.html.
    When loading the document, and creating
    the session, the cookies received via
    reuse_cookies is stored and set in each
    WOPI http invocation.
    
    This restores creating reuse_cookies in the
    URL. It was inadvertently dropped after some cleanup.
    
    Change-Id: I6de8ddb58e7f43566a08c22327dbc4b7a1207388
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94472
    Tested-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index c867d28ff..6cc75b7b5 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -519,6 +519,9 @@
                else if (global.accessHeader !== '') {
                        wopiParams = { 'access_header': global.accessHeader };
                }
+               else if (global.reuseCookies !== '') {
+                       wopiParams = { 'reuse_cookies': global.reuseCookies };
+               }
                if (wopiParams) {
                        docParams = Object.keys(wopiParams).map(function(key) {
                                return encodeURIComponent(key) + '=' + 
encodeURIComponent(wopiParams[key]);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to