https://bugs.documentfoundation.org/show_bug.cgi?id=164885
Bug ID: 164885
Summary: XDispatchProviderInterceptor doesn't intercept
.uno:Open since 24.2
Product: LibreOffice
Version: 24.2.0.0 alpha0+
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: bisected, regression
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 198795
--> https://bugs.documentfoundation.org/attachment.cgi?id=198795&action=edit
A hyperlink and an interceptor
Enable document macros (macro security level medium or lower).
Open the attached document, allowing macros. It contains a single hyperlink to
libreoffice.org, and an implementation of XDispatchProviderInterceptor, that
only intercepts .uno:Open, and instead of opening the target, shows a message.
The interceptor is registered in "View created" document event, and is
deregistered in "View is going to be closed" document event.
Opening the document shows "Interceptor registered successfully" message;
closing it shows "Interceptor deregistered successfully" message, showing that
respective code has run successfully.
In v.7.6 and older, clicking the hyperlink would emit two messages:
"queryDispatch: .uno:Open", then "dispatch: .uno:Open". This is the expected
behavior.
In v.24.2 and later, clicking the hyperlink bypasses the interceptor, and opens
the webpage. This is wrong.
Regression after commit 502f7958d99e3aa27f4c1c1f33f4827055459da8.
--
You are receiving this mail because:
You are the assignee for the bug.