diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-05-10 13:16:52 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-05-13 14:56:04 +0200 |
commit | 63418bcf047dfae2c4362f576d505320c80962e2 (patch) | |
tree | b54538044aaf39557962047d8f3d4620b77e811f | |
parent | ofz#46905 Null-dereference (diff) | |
download | core-63418bcf047dfae2c4362f576d505320c80962e2.tar.gz core-63418bcf047dfae2c4362f576d505320c80962e2.zip |
sfx2: add config warning in UndoManager complex test
... and remove obsolete comment, that problem was fixed a decade ago.
Change-Id: I06e122128ff009778da87891739016ecc8975895
(cherry picked from commit 53bd4676cf89904c962fa755521c243229db9c1c)
-rw-r--r-- | sfx2/qa/complex/sfx2/UndoManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/qa/complex/sfx2/UndoManager.java b/sfx2/qa/complex/sfx2/UndoManager.java index 838958fc1ebf..658829ac658f 100644 --- a/sfx2/qa/complex/sfx2/UndoManager.java +++ b/sfx2/qa/complex/sfx2/UndoManager.java @@ -224,7 +224,9 @@ public class UndoManager }; events.replaceByName( "OnViewCreated", scriptDescriptor ); - // The below doesn't work: event notification is broken in m96, see https://bz.apache.org/ooo/show_bug.cgi?id=116313 + // note: this may be prevented from working by setting + // Office::Common::Security::Scripting::AllowedDocumentEventURLs + // (checked in SfxEvents_Impl::isScriptURLAllowed()) m_callbackCalled = false; m_currentDocument.getCurrentView().dispatch( ".uno:NewWindow" ); assertTrue( "triggering an event did not work as expected - basic script not called", m_callbackCalled ); |