Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 859230 Details for
Bug 1061345
ibus-table shows entered text in password fields
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-Add-check-for-input-purpose-for-gnome-shell-password.patch
0001-Add-check-for-input-purpose-for-gnome-shell-password.patch (text/plain), 2.01 KB, created by
Mike FABIAN
on 2014-02-04 16:23:53 UTC
(
hide
)
Description:
0001-Add-check-for-input-purpose-for-gnome-shell-password.patch
Filename:
MIME Type:
Creator:
Mike FABIAN
Created:
2014-02-04 16:23:53 UTC
Size:
2.01 KB
patch
obsolete
>From fc5058e2bd09faf6f006159a43f08ab8a92c9d7f Mon Sep 17 00:00:00 2001 >From: Mike FABIAN <mfabian@redhat.com> >Date: Tue, 4 Feb 2014 16:20:11 +0100 >Subject: [PATCH] Add check for input purpose for gnome-shell password dialog > >Resolves: rhbz#1061345 - ibus-table shows entered text in password fields >(See: https://bugzilla.redhat.com/show_bug.cgi?id=1061345) >--- > engine/table.py | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/engine/table.py b/engine/table.py >index d49a1b1..0631d19 100644 >--- a/engine/table.py >+++ b/engine/table.py >@@ -1046,6 +1046,10 @@ class tabengine (IBus.Engine): > def __init__ (self, bus, obj_path, db ): > super(tabengine,self).__init__ (connection=bus.get_connection(), > object_path=obj_path) >+ self._input_purpose = 0 >+ self._has_input_purpose = False >+ if hasattr(IBus, 'InputPurpose'): >+ self._has_input_purpose = True > self._bus = bus > # this is the backend sql db we need for our IME > # we receive this db from IMEngineFactory >@@ -1522,6 +1526,9 @@ class tabengine (IBus.Engine): > Key Events include Key Press and Key Release, > modifier means Key Pressed > ''' >+ if self._has_input_purpose and self._input_purpose in [IBus.InputPurpose.PASSWORD, IBus.InputPurpose.PIN]: >+ return False >+ > key = KeyEvent(keyval, state & IBus.ModifierType.RELEASE_MASK == 0, state) > # ignore NumLock mask > key.mask &= ~IBus.ModifierType.MOD2_MASK >@@ -1882,11 +1889,17 @@ class tabengine (IBus.Engine): > self._update_ui () > > def do_focus_out (self): >+ if self._has_input_purpose: >+ self._input_purpose = 0 > try: > self._editor.clear() > except: > pass > >+ def do_set_content_type(self, purpose, hints): >+ if self._has_input_purpose: >+ self._input_purpose = purpose >+ > def do_enable (self): > self._on = True > self.do_focus_in() >-- >1.8.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1061345
: 859230