Closed
Bug 1117864
Opened 10 years ago
Closed 10 years ago
Sync plugin instantiation should not pass a runnable to PluginProcessParent::Launch
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: bugzilla, Assigned: bugzilla)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
This isn't a big deal for correctness right now the way things are written, but currently the runnable is executed for both sync and async init, which isn't future proof (and isn't actually needed in the sync case, so it's a waste of time to execute it).
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8544272 -
Flags: review?(jmathies)
Comment 2•10 years ago
|
||
Comment on attachment 8544272 [details] [diff] [review]
Don't set launch runnable unless we're starting async
Review of attachment 8544272 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/ipc/PluginModuleParent.cpp
@@ +366,5 @@
> {
> PLUGIN_LOG_DEBUG_FUNCTION;
>
> nsAutoPtr<PluginModuleChromeParent> parent(new PluginModuleChromeParent(aFilePath, aPluginId));
> + UniquePtr<LaunchCompleteTask> onLaunchedRunnable;
can we name this something different, it really threw me at first since it looks like some sort of 'onXYZ' event method. Maybe just 'launchRunnable'?
Attachment #8544272 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Addressed comment. Carrying forward r+.
Attachment #8544272 -
Attachment is obsolete: true
Attachment #8545399 -
Flags: review+
Assignee | ||
Comment 4•10 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/8fa274cce616 for various test failures:
https://treeherder.mozilla.org/logviewer.html#?job_id=5181302&repo=mozilla-inbound
https://treeherder.mozilla.org/logviewer.html#?job_id=5182176&repo=mozilla-inbound
https://treeherder.mozilla.org/logviewer.html#?job_id=5181308&repo=mozilla-inbound
Flags: needinfo?(aklotz)
Assignee | ||
Comment 6•10 years ago
|
||
On further inspection of this code, I think that it should be left as-is. My bad.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(aklotz)
Resolution: --- → INVALID
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•