desktop/source/lib/init.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d514097753a5971f2d5616319238a1a9eb6d8f9a
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Tue Jan 24 15:43:15 2023 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Jan 24 15:17:30 2023 +0000

    Surround recently added code that breaks on COWASM with ifdef
    
    After 7a6324ea0d81bbe2bba09f8a7f5230342a4f4e85 I started getting UNO
    exceptions with the message "component context fails to supply service
    com.sun.star.xml.crypto.SEInitializer of type
    com.sun.star.xml.crypto.XSEInitializer".
    
    It is likely that it breaks in the iOS and Android apps, too, so
    bypass for those, too.
    
    Change-Id: Id08afbf6bea071c8b0b6564342716e0b064cb712
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146071
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 8e98e675bb79..97d74bc4682d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3404,6 +3404,7 @@ static void doc_iniUnoCommands ()
         return;
     }
 
+#if !defined IOS && !defined ANDROID && !defined __EMSCRIPTEN__
     uno::Reference<xml::crypto::XSEInitializer> xSEInitializer = 
xml::crypto::SEInitializer::create(xContext);
     if (!xSEInitializer.is())
     {
@@ -3417,6 +3418,7 @@ static void doc_iniUnoCommands ()
     {
         SAL_WARN("lok", "iniUnoCommands: failed to create security context");
     }
+#endif
 
     SfxSlotPool& rSlotPool = SfxSlotPool::GetSlotPool(pViewFrame);
     uno::Reference<util::XURLTransformer> 
xParser(util::URLTransformer::create(xContext));

Reply via email to