Remove insecure password field detection code for the address bar
Categories
(Toolkit :: Password Manager, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: MattN, Assigned: MattN)
References
Details
(Keywords: perf, perf:pageload, Whiteboard: [fxperf:p3])
Attachments
(2 files)
_detectInsecureFormLikes[1] runs on every pageshow and from the DOMFormHasPassword event and shows up in this profile from smaug: http://bit.ly/2DI53jz
It's also not going to work properly with Fission IIUC since it traverses window.frames.
IMO this logic which is mostly independent of password manager should be rewritten in C++ and work more like the mixed content address bar indicator. That should provide page load speed improvements.
Test pages:
- http://http-login.badssl.com/
- http://http-password.badssl.com/
- http://http-dynamic-login.badssl.com/
You should see a broken lock icon in the address bar AND the identity panel should say "Logins entered on this page could be compromised" inside.
I don't have a test-page with subframes handy but you can probably embed those test pages in an <iframe> on an http: server.
Assignee | ||
Comment 1•6 years ago
|
||
On a related note, the insecure login field console warnings from InsecurePasswordUtils.jsm could also be consolidated with the address bar indicator logic and we could avoid loading that JSM on page load too. There is also telemetry being accumulated on every page load in InsecurePasswordUtils which could have a perf impact.
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
In bug 1555317 comment 27 we are discussing whether we can now remove this code altogether… doing so could help pageload performance and then we wouldn't have to fix it for Fission.
Assignee | ||
Comment 3•5 years ago
|
||
We got the go-ahead to remove this code now (bug 1555317 comment 28) so we don't have to fix it for Fission and we can reduce the work we do on page loads and tab switches.
Comment 4•5 years ago
|
||
So is this a dupe of bug 1567827 now? :)
Assignee | ||
Comment 5•5 years ago
|
||
Maybe, this bug has the context for performance and focused on the passwordmgr/ content process portion whereas bug 1567827 is more about the doorhanger parent process portion. They can be done in one bug or separate depending on the dev. who takes it.
Assignee | ||
Comment 6•5 years ago
|
||
Deleting this code allows us to delete 3 failing tests in Fission so moving to M4.
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Test page that frames an insecure form at http://http-login.badssl.com/
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•3 years ago
|
Description
•