Have cert error captive portal message exchanges happen over RPM
Categories
(Firefox :: Security, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: prathiksha, Assigned: prathiksha)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
We currently addMessageListeners in browser.js[0] to handle cert error events coming from the child/content process. This bug aims to replace this way of handling events by using the remote page manager to sandbox about:certerror events and improve code maintainability.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Have certerror captive portal message exchanges happen over RPM.
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D28539
| Assignee | ||
Comment 3•2 years ago
|
||
A patch for exposing nsITransportSecurityInfo to unprivileged content.
Comment 4•2 years ago
|
||
The error Prathiksha saw was "Permission denied for <about:certerror> to create wrapper for object of class UnnamedClass".
Comment 5•2 years ago
|
||
It seems that it's not possible to use xpcom interfaces for non-chrome code in WebIDL. I think that, the best solution is to expose a webidl dictionary with the data you care, taken from nsIransportSecurityInfo.
Comment 6•2 years ago
|
||
Just to give an example about how to use a WebIDL dictionary and expose it to content
Here we have the definition of AutocompleteInfo:
https://searchfox.org/mozilla-central/rev/b4e790d05f5a146d186c238bac5601a553581d23/dom/webidl/AutocompleteInfo.webidl
Which is exposed here:
https://searchfox.org/mozilla-central/rev/b4e790d05f5a146d186c238bac5601a553581d23/dom/webidl/HTMLSelectElement.webidl#72
and it's set here:
https://searchfox.org/mozilla-central/rev/b4e790d05f5a146d186c238bac5601a553581d23/dom/base/nsContentUtils.cpp#919-922
But there are many other examples. Important note: a dictionary cannot be exposed as attribute. Just make it as a return type of a method.
Updated•2 years ago
|
Pushed by prathikshaprasadsuman@gmail.com: https://hg.mozilla.org/integration/autoland/rev/df46098ba4b5 Part 1 - Have certerror captive portal message exchanges happen over RPM. r=johannh
| Assignee | ||
Comment 9•2 years ago
|
||
Changing this bug description to track captive portal message exchanges between content and parent processes over RPM. I will be filing more bugs to track replacing other certerror/neterror message exchanges (see comment 0 [0]) with RPM.
Comment 10•2 years ago
|
||
| bugherder | ||
Description
•