https://bugs.documentfoundation.org/show_bug.cgi?id=165443

            Bug ID: 165443
           Summary: Options - View - Use hardware acceleration options
                    lockdown does not always works
           Product: LibreOffice
           Version: 7.2.0.4 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, regression
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 157698

Created attachment 199443
  --> https://bugs.documentfoundation.org/attachment.cgi?id=199443&action=edit
Example lockdown extension from user

Since 

https://git.libreoffice.org/core/commit/bf7b0febbf3081a3693bf09bc4e779f7c6c30dc0

tdf#157837 - UI: Part 3 - Unify lockdown behavior of Options dialog

It is possible to lock down all entries of the Options - View tab AND display
lock icons next to the items, plus disable the locked items.

However, the attached config extension locks the "Use hardware acceleration"
down in a slightly wrong way:
the lock icon is displayed, but the checkbox is still usable. Clicking the box
and the OK button leads to a crash.

1. Download the attached config extension
2. Copy it into the instdir/share/registry folder
3. Start LO, go to Tools - Options - View
-> The "Use hardware acceleration" option shows the lock icon, also the two
Skia options. But unlike the latter two, the checkbox is not disabled.
4. Click on the "Use hardware acceleration" checkbox, then OK
-> crash

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 41ab24cecd6ad74312843f113d2faa13259cdb7d
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: default; VCL:
win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Interestingly the checkbox is properly disabled if the example attachment from
bug 157837  attachment 190328 is installed with the Extension Manager.

Main difference is that the attachment 190328 has this line:

<prop oor:name="ForceSafeServiceImpl" oor:type="xs:boolean" oor:op="replace"
oor:finalized="true">>

while the ZZZ.xcd attached here has:

<prop oor:name="ForceSafeServiceImpl" oor:finalized="true" oor:op="fuse"
oor:type="xs:boolean"

The issue seems to have started in 7.2, before that the checkbox was properly
disabled even with the ZZZ.xcd installed:

https://git.libreoffice.org/core/+/feafba7cc94247f45a82ee4f82f1b0a5f2f61656%5E%21

author  Luboš Luňák <[email protected]>     Tue Nov 24 12:41:08 2020 +0100
committer       Luboš Luňák <[email protected]>     Wed Nov 25 14:21:03
2020 +0100
tree    0c5c5993bca7d0ba7bec0fbbedeb81ebbca88eee
parent  e41ca15fd67581dbf69322e6a18595d00ab7a151 [diff]

clean up enabling/disabling GUI options related to Skia


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=157698
[Bug 157698] [META] Unify lockdown UX in the Options dialog
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to