Closed
Bug 832834
Opened 13 years ago
Closed 8 years ago
nsSecureBrowserUIImpl makes babies and kittens cry
Categories
(Core :: Security: PSM, defect, P1)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: Dolske, Assigned: keeler)
References
Details
(Whiteboard: [psm-assigned])
Attachments
(1 external file)
One of insights from bug 822371 is that nsSecureBrowserUIImpl is a giant frickin' pain in the keister. In the modern world, it's trying to do too much, crosses layers it doesn't need to, doesn't integrate well with the rest of the stack, and generally makes young children and kittens cry. Please, think of the kittens. And the kids too. Whatever.
Alternatively: security (SSL) is an integral piece of the modern web, the crypto export restrictions of yore are generally long-gone, and we should strive for a cleaner implementation that integrates SSL state/UI more closely.
This is a tracking bug for the various pieces.
So far, I see 3 major pieces to this work:
1) Simplify docshell.securityUI creation and ownership. It's currently a bizarre 3-way dance between the frontend, PSM, and docshell.
2) Spin off the "insecure form submission" stuff to a separate toolkit module. There's little reason for it to live deep down in PSM code.
3) Simplify security state tracking between docshell and PSM code. When tanvi/bsmith/I talked about this, we agreed we want to keep most of this centralized (since it's a bit complex). But there's a _lot_ of code here for managing a few bits of a bitmask, and it seems likely there's a lot of room for improvement. See also, the throttling issues mentioned in bug 822371.
Comment 1•13 years ago
|
||
I am started to dig into this stuff and it's indeed a very big mess. For example nsSecureBrowserUIImpl listens for progress changes in the docShell, waiting for StateChange, only to check the security state of the channel and then sending a OnSecurityChange itself.
We need to remove all the touchpoints with docShell for e10s, so I will look into simplifying this.
Updated•11 years ago
|
Assignee: nobody → mgoodwin
Updated•10 years ago
|
Assignee: mgoodwin → nobody
| Assignee | ||
Updated•10 years ago
|
Component: Security: UI → Security: PSM
Priority: -- → P3
Whiteboard: [psm-backlog]
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dkeeler
Priority: P3 → P1
Whiteboard: [psm-backlog] → [psm-assigned]
| Assignee | ||
Comment 2•8 years ago
|
||
It turns out nsSecureBrowserUIImpl is considerably more complicated than it
needs to be. This patch reimplements it in terms of OnLocationChange only, which
is all it needs to produce the same behavior as before.
Comment 3•8 years ago
|
||
Comment on attachment 9001761 [details]
bug 832834 - reimplement nsSecureBrowserUIImpl r?franziskus,jaws
Franziskus Kiefer [:fkiefer or :franziskus] has approved the revision.
Attachment #9001761 -
Flags: review+
Comment 4•8 years ago
|
||
Comment on attachment 9001761 [details]
bug 832834 - reimplement nsSecureBrowserUIImpl r?franziskus,jaws
:Felipe Gomes (needinfo me!) has approved the revision.
Attachment #9001761 -
Flags: review+
| Assignee | ||
Comment 5•8 years ago
|
||
Thanks for the reviews! Here's try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fdfcf6b911e65537a2ed065c9e11cd836931186d
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4ad33c6fbfca
reimplement nsSecureBrowserUIImpl r=franziskus,Felipe
Backout by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8a4e8a30cd2f
Backed out changeset 4ad33c6fbfca for merge conflict. CLOSED TREE
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2f4adf14e623
reimplement nsSecureBrowserUIImpl r=franziskus,Felipe
Comment 9•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•