Closed Bug 366973 Opened 19 years ago Closed 18 years ago

crash reporter should send list of installed extensions

Categories

(Toolkit :: Crash Reporting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: ted, Assigned: mossop)

References

Details

Attachments

(2 files)

bug 325943 talks about submitting the list of installed extensions and plugins with Talkback reports. We should do that for airbag crash reports. I don't know if we'd want to just submit extensions.rdf, since we'd have to parse it on the server. We might need to write some code somewhere to spit out a text file listing extensions installed and plugins installed.
Blocks: 358197
Depends on: 372831
I think that for the time being we should focus on extensions. We can get the plugin data we need from the DLL list in the minidump.
Attached patch patch (WIP)Splinter Review
Thanks to Dave for pointing me to some code in NTT that does this. This patch is basically a copy and paste of that code. The other option is to add this to the extension manager code. Comments appreciated.
Hey, rob, what do you think of this approach?
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
This is probably a bad way to do this, it will cause a perf hit for initialising the extensions datasource when we don't currently. The better solution is probably to put this code into the EM where we should be able to annotate with the currently active add-on id's, but not further information without any hit.
Yeah, we definitely don't want to make this a perf hit. If we could have the EM maintain a simple comma-delimited list of extensions when it figures that out, (Even just extension IDs would be fine with me) then we could easily grab it and stuff it into the report.
I'll see if I can knock something up this afternoon, should be pretty simple I think.
Mossop is working on extensions. Plugins are actually not quite as important in my mind, since they're already listed in the modules list. We may want to add that later, but we can do that elsewhere.
Summary: crash reporter should send list of installed extensions, plugins → crash reporter should send list of installed extensions
(In reply to comment #7) > Mossop is working on extensions. Plugins are actually not quite as important > in my mind, since they're already listed in the modules list. We may want to > add that later, but we can do that elsewhere. Err... not really. Plug-ins don't have versions right now, which I thought was part of this bug. That's actually really important ("Flash 9 r772 *always* crashes Firefox", etc).
A quick dtrace tests shows the previous patch taking around 150ms. It is only in delayedStartup so that isn't the end of the world however by basing the code in the EM we can improve on this somewhat and it'll work for all toolkit apps. In this approach we simply the list of enabled items (id and version) in a pref then on every startup add an annotation for the enabled addons and the chrome name of the theme in use. As this stands this does still cause a little under a 1ms hit on every startup on my machine, I'm not sure how that translates to the tinderboxes. However we could also move that code directly into delayedStartup (albeit only for Firefox) and it would still work since we are just pulling values from preferences at that point. I kind of prefer keeping this contained in the EM though.
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #297356 - Flags: review?(robert.bugzilla)
Whiteboard: [has patch]
(In reply to comment #8) > Err... not really. Plug-ins don't have versions right now, which I thought was > part of this bug. That's actually really important ("Flash 9 r772 *always* > crashes Firefox", etc). Ok, can you spin that off into a separate bug then? Mossop is making progress on the extensions portion here.
(In reply to comment #10) > Ok, can you spin that off into a separate bug then? Mossop is making progress > on the extensions portion here. Yeah, filed bug 412633.
Comment on attachment 297356 [details] [diff] [review] EM based approach r=me. Though I really hate to use prefs for this it is reasonable under the circumstances. I think a better long term solution would be to push the extensions.rdf and parse it on the server.
Attachment #297356 - Flags: review?(robert.bugzilla) → review+
Attachment #297356 - Flags: approval1.9?
Comment on attachment 297356 [details] [diff] [review] EM based approach a=beltzner for 1.9, this will be super awesome, I bet
Whiteboard: [has patch]
Checked in, will nudge beltzner into actually marking the flag on the patch. Checking in toolkit/mozapps/extensions/src/nsExtensionManager.js.in; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v <-- nsExtensionManager.js.in new revision: 1.271; previous revision: 1.270 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
Initial numbers from the tinderboxes aren't showing any noticeable perf impact from this.
Comment on attachment 297356 [details] [diff] [review] EM based approach oops, a=beltzner for realz
Attachment #297356 - Flags: approval1.9? → approval1.9+
Comment on attachment 297356 [details] [diff] [review] EM based approach > unnofficial :( can't people use Firefox's wonderful spell checker?
OS: Windows XP → All
Hardware: PC → All
How can we use this data? Bug 434752 could sure use it, for example.
It's not being collected by Socorro currently, despite being submitted by the client. That's filed as bug 412605.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: