Closed Bug 637238 Opened 13 years ago Closed 8 years ago

Crash comment allows formatted text

Categories

(Toolkit :: Crash Reporting, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: GPHemsley, Assigned: tranj23, Mentored)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

I was under the impression that crash comments were just plain text. But I accidentally pasted formatted text into the box, and it changed in font weight and size, and did not revert when I typed further. The crash-stats server appears to have stripped the formatting, though.

To reproduce, just copy and paste some formatted text, e.g. from the browser. (In this instance, I was pasting some text from a Gmail e-mail header.)
The edit box is a subclass of NSTextView, and I just realized that in Interface Builder there's a checkbox on its attributes pane: "Allows: [x] Rich Text". This is probably as simple as just unchecking that box.
Whiteboard: [mentor=ted]
Whiteboard: [mentor=ted] → [mentor=ted][good first bug]
Mentor: ted
Whiteboard: [mentor=ted][good first bug] → [good first bug]
Hi, I would like to work on this bug.I am newbie and this is my first bug.Can you tell please me how should I proceed? 
Thanks
Hi, Mukul - 

First thing you'll need to do is to get your development environment set up so that you can build your own version of Firefox. These two pages:

https://developer.mozilla.org/en-US/docs/Introduction

https://developer.mozilla.org/en-US/docs/Simple_Firefox_build

... should help you get started. 

After that, you'll need to figure out where to make the change and push up a patch. As soon as you have a first try at a patch attached to the bug, we'll assign the bug to you.
Thanks for the reply.
I have built firefox nightly succesfully but I don't know how to proceed after this.Do i have to change this toolkit/crashreporter/client/crashreporter_osx.h?
Looks like it - Ted, can you confirm?
Flags: needinfo?(ted)
I believe what you actually want to do is open the MainMenu.nib file under toolkit/crashreporter/client/macbuild/Contents/Resources/English.lproj in Interface Builder, and edit it as I mentioned in comment 1.

The files are here:
http://dxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/client/macbuild/Contents/Resources/English.lproj
Flags: needinfo?(ted)
sorry for late reply..I can't solve this bug as I don't have mac OS..sorry
Patch is generated by unchecking the Rich Text option in MainMenu.nib
Attachment #8708757 - Flags: review?(ted)
Doesn't look like anyone is working on this bug so I went ahead and uploaded a patch. Thanks
Comment on attachment 8708757 [details] [diff] [review]
rev1 - Removes formatting from crash comments

Review of attachment 8708757 [details] [diff] [review]:
-----------------------------------------------------------------

I am tentatively r+ing this, but this needs a run past the try server to make sure it builds and the resulting binary comes out OK! Do you have access to the Try server or do you need someone to push it for you?
Attachment #8708757 - Flags: review?(ted) → review+
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #10)
> Comment on attachment 8708757 [details] [diff] [review]
> rev1 - Removes formatting from crash comments
> 
> Review of attachment 8708757 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I am tentatively r+ing this, but this needs a run past the try server to
> make sure it builds and the resulting binary comes out OK! Do you have
> access to the Try server or do you need someone to push it for you?

I will push it to the try server myself. Thanks
Assignee: nobody → tranj23
Do the results from the try push look ok?
Flags: needinfo?(ted)
Sorry, that took me a long time to get to. Yes, that looks good, thanks!
Flags: needinfo?(ted)
Thanks for the patch!
https://hg.mozilla.org/mozilla-central/rev/27070ffbbac7
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: