mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1212248 - Align the creation of cpow in ContentBridgeParent to ContentParent. r=khuey
This commit is contained in:
parent
b212501277
commit
679bbc2939
@ -183,7 +183,7 @@ ContentBridgeParent::GetCPOWManager()
|
||||
if (ManagedPJavaScriptParent().Length()) {
|
||||
return CPOWManagerFor(ManagedPJavaScriptParent()[0]);
|
||||
}
|
||||
return CPOWManagerFor(SendPJavaScriptConstructor());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -41,6 +41,8 @@ parent:
|
||||
sync SyncMessage(nsString aMessage, ClonedMessageData aData,
|
||||
CpowEntry[] aCpows, Principal aPrincipal)
|
||||
returns (StructuredCloneData[] retval);
|
||||
|
||||
async PJavaScript();
|
||||
both:
|
||||
// Both the parent and the child can construct the PBrowser.
|
||||
// See the comment in PContent::PBrowser().
|
||||
@ -49,8 +51,6 @@ both:
|
||||
|
||||
async PBlob(BlobConstructorParams params);
|
||||
|
||||
async PJavaScript();
|
||||
|
||||
AsyncMessage(nsString aMessage, ClonedMessageData aData,
|
||||
CpowEntry[] aCpows, Principal aPrincipal);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user