Skip to content

@secure decorator. #6549

@derekriemer

Description

@derekriemer

Background:

if globalVars.appArgs.secure:
       return

This copy-paste code is all over the place. I propose an @secure decorator in NVDA that can help ensure NVDA never runs on secure screens in a decorated method.

@secure
def save(self:
   blahBlahBlah
)

Advantages: @secure could be updated in the future if new security related things are added. This would prevent shot gun surgery from needing to be performed with said feature being added. Addons could use this by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    audience/nvda-devPR or issue is relevant to NVDA / Add-on developersp4https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions