Closed Bug 724780 Opened 12 years ago Closed 3 years ago

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

Categories

(Firefox for Android Graveyard :: General, enhancement, P4)

11 Branch
ARM
Android
enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: tatsuya_ogawa, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

Attached file 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.
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?
Attachment #595304 - Attachment is obsolete: true
Attached file key_install_sample.xpi
(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
Severity: normal → enhancement
Priority: -- → P4
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: