Can't focus on the textbox for the password when installing a client certificate

NEW
Unassigned

Status

()

Firefox for Android
General
P4
enhancement
6 years ago
2 years ago

People

(Reporter: Ogawa Tatsuya, Unassigned)

Tracking

11 Branch
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

6 years ago
Created attachment 594913 [details]
ssl_cert_sample.txt

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7

Steps to reproduce:

1)Build an add-on which calls importPKCS12File" method of a instance of "@mozilla.org/security/x509certdb" for SSL certificate like attachment file ssl_cert_sample.txt

2)The password is required for the client certificate on "Security Device: Software Security Device" screen.

3)Touch any part of the screen at least once except the software keyboard.


Actual results:

Touch the text box field to get the focus on it, but failed...



Expected results:

Text box was focused and I can input password from keyboard.
(Reporter)

Updated

6 years ago
OS: Windows XP → Android
Hardware: x86 → ARM
Do you happen to have a sample add-on *.xpi you can attach to this as a testcase?
(Reporter)

Comment 2

6 years ago
Created attachment 595304 [details]
sample addon to install ssl certification.
(Reporter)

Updated

6 years ago
Attachment #595304 - Attachment is obsolete: true
(Reporter)

Comment 3

6 years ago
Created attachment 595305 [details]
key_install_sample.xpi
(Reporter)

Comment 4

6 years ago
(In reply to Aaron Train [:aaronmt] from comment #1)
> Do you happen to have a sample add-on *.xpi you can attach to this as a
> testcase?
I added a new attachment "key_install_sample.xpi".
This is sample addon to install dummy key file.

After installing this addon,you can see the new menu item "Key Install".
Touch that item, screen described "Security Device: Software Security Device" will be displayed.

Please check it.
I can reproduce this, there is this method called "importPKCS12File", that eventually calls this code:
http://mxr.mozilla.org/mozilla-central/source/security/manager/pki/src/nsNSSDialogs.cpp#437
which uses openDialog with url chrome://pippki/content/getp12password.xul

I don't think it's a good idea to open xul documents from C code (that file seems actually filled with it).

That said, the problem seems to be in the openDialog method, which seems to screw things up considerably in Fennec Native (and would probably also in XUL Fennec).
The not being able to focus the textbox manually, is just one of them.
That xul document seems to 'bleed' through every tab that is opened.

Mark, do you know what needs to be done here?
There seem to be several things going wrong here.
I just filed bug 725496, where a similar effect can be achieved with window.find().
Confirmed based on comment 5.

Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

6 years ago
Severity: normal → enhancement
Priority: -- → P4
You need to log in before you can comment on or make changes to this bug.