Generalize do_QueryActor APIs with support for JSProcessActor
Categories
(Core :: DOM: Content Processes, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(3 files)
Assignee | ||
Comment 1•5 years ago
|
||
This changes the set of types which can be passed as the second argument to
do_QueryActor to ones which can be unambiguously converted to a JSActorManager,
and combines nsCOMPtr_helper implementations.
Assignee | ||
Comment 2•5 years ago
|
||
Before this change, nsIDOMProcess{Parent,Child} could not directly be used in
do_QueryActor, as they don't directly inherit from JSActorManager.
The std::enable_if_t trickery is required in order to avoid overload issues when
passing types like ContentChild which inherit from both JSActorManager and
nsIDOMProcess{Parent,Child}.
Assignee | ||
Comment 3•5 years ago
|
||
This should make it easier to get an XPCOM interface from a JSProcessActorChild
in the current process, when combined with the do_QueryActor overloads from p2.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9db5db7c2b0e
https://hg.mozilla.org/mozilla-central/rev/6169f483a5ca
https://hg.mozilla.org/mozilla-central/rev/ef6b1b08c555
Description
•