[gnome-shell/wip/rstrode/rhel-7.9: 21/86] shellEntry: Determine if password entry from content purpose not menu item
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 21/86] shellEntry: Determine if password entry from content purpose not menu item
- Date: Fri, 12 Feb 2021 19:04:06 +0000 (UTC)
commit 42e0f5263b42d31d8ffd6cfafd40fe5d5f1a76f5
Author: Ray Strode <rstrode redhat com>
Date: Wed Aug 21 15:01:34 2019 -0400
shellEntry: Determine if password entry from content purpose not menu item
Right now shellEntry decides whether or not it's a password entry based
on whether or not it has a "Show Text" context menu.
That's a little roundabout, and gets in the way off providing lockdown
that disables the menu.
This commit changes shellEntry to base whether or not it's a password
entry from it's input content purpose instead of from the presence
or absence of a context menu.
js/ui/shellEntry.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 9db5136e68..159357eb39 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -46,7 +46,7 @@ var EntryMenu = new Lang.Class({
},
get isPassword() {
- return this._passwordItem != null;
+ return this._entry.input_purpose == Clutter.InputContentPurpose.PASSWORD;
},
set isPassword(v) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]