Closed
Bug 818664
Opened 13 years ago
Closed 13 years ago
Report plugin version in plugin crash reports
Categories
(Core Graveyard :: Plug-ins, defect, P1)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla20
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(1 file)
2.39 KB,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
We stubbed this out and never implemented it: http://hg.mozilla.org/mozilla-central/annotate/277998cf11cd/dom/plugins/ipc/PluginModuleParent.cpp#l170
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #690954 -
Flags: review?(joshmoz)
Comment on attachment 690954 [details] [diff] [review]
Report the version and name, rev. 1
Review of attachment 690954 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/ipc/PluginModuleParent.cpp
@@ +174,5 @@
> + if (ph) {
> + nsPluginTag* tag = ph->TagForPlugin(mPlugin);
> + if (tag) {
> + pluginName = tag->mName;
> + pluginVersion = tag->mVersion;
Isn't this copying the strings? If so, why not just use them without copying?
@@ +177,5 @@
> + pluginName = tag->mName;
> + pluginVersion = tag->mVersion;
> + }
> + }
> +
Extra whitespace here.
Attachment #690954 -
Flags: review?(joshmoz) → review+
Assignee | ||
Comment 3•13 years ago
|
||
The strings use refcounted copy-on-write, so there shouldn't be any noticeable penalty.
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
![]() |
||
Comment 5•13 years ago
|
||
We should file a bug on the Socorro side to do something useful with that data. What do you want to get out of it there?
Assignee | ||
Comment 6•13 years ago
|
||
Socorro already reports the plugin version on the individual report pages. Once we validate the data I think we should replace the "flash version" detection system with this system.
Assignee | ||
Comment 7•13 years ago
|
||
And other than that, I don't know what we want yet.
Comment 8•12 years ago
|
||
Comment on attachment 690954 [details] [diff] [review]
Report the version and name, rev. 1
>+ nsRefPtr<nsPluginHost> ph = already_AddRefed<nsPluginHost>(nsPluginHost::GetInst());
(I can't tell from the patch in bug 781310 whether you just copied this mistake [it should use dont_AddRef] from somewhere else but fortunately that bug cleans things up anyway.)
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
•