Closed Bug 1344942 Opened 7 years ago Closed 7 years ago

Allow JS plugins to load a Pepper library in a separate process and provide IPC to it

Categories

(Core Graveyard :: Plug-ins, defect, P2)

Tracking

(firefox54 affected)

RESOLVED WONTFIX
Tracking Status
firefox54 --- affected

People

(Reporter: peterv, Assigned: peterv)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
      No description provided.
Comment on attachment 8844228 [details] [diff] [review]
v1

Review of attachment 8844228 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/plugins/ipc/PPAPIJSProcessChild.cpp
@@ +212,5 @@
> +      }
> +    }
> +  }
> +
> +  if (!mRPCLibrary || !mPluginLibrary) {

It's hard to debug from the logs when process is killed because of missing libraries. It will be very helpful if we can add a debug message here to make it more obvious.
Blocks: 1347419
Blocks: 1264551, 1264552
ipc::EndPoint can't be copied, only moved (and we probably want to keep it that way). Async IPDL methods returning a value use MozPromise. Some of the generated C++ copies where it could just move. We also generate a MozPromise with IsExclusive set to false, which means the MozPromise code uses copy and not move. The patch makes the generated code move the value, and sets IsExclusive to true if any of the return values are ipc::EndPoint. We could set IsExclusive to true for all async methods with a return value, but I'm not sure that we want to restrict all callers that way.
Attachment #8844228 - Attachment is obsolete: true
Attachment #8869510 - Flags: review?(wmccloskey)
Let me know if you're too busy and I should look for a different reviewer.
Attachment #8869511 - Flags: review?(wmccloskey)
Severity: normal → major
Priority: -- → P2
Hi Peter. I'm sorry it's taken me so long to realize that I don't have time to do this. Kan-Ru might be able to review.
Attachment #8869510 - Flags: review?(wmccloskey) → review?(kchen)
Attachment #8869511 - Flags: review?(wmccloskey) → review?(kchen)
Comment on attachment 8869510 [details] [diff] [review]
Support async IPDL methods returning values that can only be moved, not copied (like ipc::EndPoint)

Review of attachment 8869510 [details] [diff] [review]:
-----------------------------------------------------------------

In bug 1255894 :kmag fixed this.
Attachment #8869510 - Flags: review?(kchen)
Peter, I'm sorry it took me so long to this. Do you still want the patch reviewed? Maybe we can keep the jsplugin part. I'm not sure if we still want to ship that feature though.
Flags: needinfo?(peterv)
Ugh, I didn't know this was still in review (didn't show up in my list).
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(peterv)
Resolution: --- → WONTFIX
Attachment #8869511 - Flags: review?(kchen)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: