Closed Bug 384207 Opened 17 years ago Closed 17 years ago

Crash Reporter client should include a URL field

Categories

(Toolkit :: Crash Reporting, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9beta2

People

(Reporter: moco, Assigned: ted)

References

Details

(Keywords: privacy)

Attachments

(3 files, 3 obsolete files)

add "url" and "comment" area to breakpad ui. originally mentioned as a comment of bug #358082, but that bug is now fixed and also bug #366971 (marked a dup of bug #358082) currently the breakpad ui asks for email address, per beltzner's mockup, but there is no text area enter my comments and the URL. See also bug #375083 about " Send URL of active tab to the crash report as metadata".
There's already bug 382538 on a comment field, I guess we don't have a bug on entering the URL.
morphing bug, per Ted's comment.
Summary: add "url" and "comment" area to breakpad ui → Crash Reporter client should include a URL field
I don't think we want a field for entering the URL... we should just record the latest URL if possible, and let any other information come in through the comments field.
We ought to at least display what we collected from the app, with a checkbox to let the user not send it.
I think we should display it in the details view. Why display it in the standard view, and why do we need a checkbox? If it's for privacy, I think that's a false sense of privacy, because the URL can end up in the minidump data quite easily.
I've come across another issue where the wrong url is sent. Some crashes which happen during page load crash before |this._updateCrashReportURL(aWindow)| is called. This results in a crash report with the previous url from the tab in place of the url causing the crash. Example: bp-d49092eb-442b-11dc-8d02-001a4bd43ef6 The crashing url for this report is http://www.unl.edu/rhames/bonobo/bonobo.htm I don't really understand what happened in bug 375083 but I gather that sessionStore isn't being triggered early enough during page load to update the current tab. I also see this sometimes with session store not saving a crashing tab (couldn't find a bug for that) but as that would lead to a cycle of crashes when restoring it doesn't seem desirable;e to fix. I would like to have an editable URL field so I can submit the correct url for crash reports related to this kind of crash.
beltzner, what are your thoughts on this? The URL is displayed when you choose "View Data", but not everyone is going to look there. It seems rather sneaky to me to send the URL without telling the user.
Keywords: uiwanted
(In reply to comment #5) > I think we should display it in the details view. Why display it in the > standard view, and why do we need a checkbox? If it's for privacy, I think > that's a false sense of privacy, because the URL can end up in the minidump > data quite easily. There's a difference between "can end up in the minidump" and "is always sent intentionally in it's own field [and displayed in the web interface for anyone to see]". The raw minidump data isn't available to the public and extracting the URL from it is presumably nontrivial. Not giving the users a choice to opt-out of sending the URL sounds like the wrong thing to do, and could result in fewer submitted reports from people who are privacy conscious.
Keywords: privacy
OS: Windows XP → All
Hardware: PC → All
Flags: blocking1.9?
Assignee: nobody → ted.mielczarek
Ok, my plan for this is: If the .extra data from the crashing app includes a "URL" field, display a textbox containing the URL (labelled URL), to allow the user to edit or delete it. This should make things work ok for Thunderbird et. al.
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Target Milestone: --- → mozilla1.9 M10
Moving this to P1. Make it happen, Ted. :)
Priority: P2 → P1
Ted is this rollin?
It's in progress. Just a little slow cause I have to do it x 3 platforms.
Attached patch mac support + added string (obsolete) — Splinter Review
Just gonna do each platform separately, since they're all different anyway. This patch does include the extra string in locales/ though. My cocoa skills are mostly copypasta, so let me know if I'm doing anything stupid here. This patch adds a URL field with a checkbox above it for "Include this URL in the crash report". The box is checked by default, and the URL field is pre-filled with the URL from the extra data. If no URL was provided with the extra data, the checkbox and text field are hidden completely. Screenshot: http://people.mozilla.com/~tmielczarek/crashreporter-url.png FYI: - int oldRestartWidth = restartFrame.size.width; + float oldRestartWidth = restartFrame.size.width; That kills a compiler warning, apparently I was supposed to be using float there.
Attachment #289528 - Flags: review?(dcamp)
Blocks: 404855
Attached patch WIP windows patch (obsolete) — Splinter Review
Comment on attachment 289528 [details] [diff] [review] mac support + added string Changing the email field updates the checkbox and details field appropriately (see controlTextDidChange). The URL button should probably do the same thing.
This is gonna change a little as per bug 404855: we're going to have a checkbox (default on) which allows the user to exclude their URL, and they'll be able to see the URL itself if they choose to view the report data. That way we don't have to include a textbox, which makes the dialog a little larger. (removing uiwanted)
Keywords: uiwanted
Attachment #289528 - Attachment is obsolete: true
Attachment #289528 - Flags: review?(dcamp)
Attached image screenshot on OS X
So here's what I've got currently.
A few thoughts: re: comment 6: I'll file a different bug about trying to get the URL more accurately. We shouldn't make anyone type in a URL just because we aren't getting it right. We should be able to watch a different event for when navigation happens and grab the URL at the start. re: comment 7: I'm still not 100% happy with the fact that the URL still isn't visible with my latest changes, but the crash reporter UI is getting way overloaded. We need to keep it sane so it doesn't scare people. I think having the checkbox there is hopefully warning enough to people that we're including a URL.
Attached patch revised os x patch (obsolete) — Splinter Review
Ok, this has the string changes + the OS X gui changes.
Attachment #290563 - Flags: review?(dcamp)
Ok, combined osx+win patch.
Attachment #290225 - Attachment is obsolete: true
Attachment #290563 - Attachment is obsolete: true
Attachment #290593 - Flags: review?(dcamp)
Attachment #290563 - Flags: review?(dcamp)
Comment on attachment 290593 [details] [diff] [review] osx + win patch [checked in] > [viewReportScrollView retain]; > [viewReportScrollView removeFromSuperview]; > >+ if (gQueryParameters.find("URL") != gQueryParameters.end()) { >+ // save the URL value in case the need to finish that thought :)
Attachment #290593 - Flags: review?(dcamp) → review+
Comment on attachment 290593 [details] [diff] [review] osx + win patch [checked in] Checked this in, will get Linux as soon as I get back to a Linux build env.
Attachment #290593 - Attachment description: osx + win patch → osx + win patch [checked in]
Attached patch linux patchSplinter Review
Turns out this was pretty easy for Linux!
Attachment #290631 - Flags: review?(dcamp)
Attachment #290631 - Flags: review?(dcamp) → review+
Checked the Linux bits in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
verified fixed with Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9b2) Gecko/2007121016 Firefox/3.0b2 and XP Version - > Changing to verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: