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)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla20

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

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+
The strings use refcounted copy-on-write, so there shouldn't be any noticeable penalty.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
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?
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.
And other than that, I don't know what we want yet.
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.)
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: