CINXE.COM
Bug writing guidelines - MDC
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://developer.mozilla.org:80/en/docs/Bug_writing_guidelines","20071213035709","https://web.archive.org/","web","/_static/", "1197518229"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Language" content="en"/> <meta name="keywords" content="Bug writing guidelines,QA"/> <link title="RDF Metadata" type="application/rdf+xml" href="/en/docs/index.php?title=Special:Rdf&target=Bug_writing_guidelines" rel="meta"/> <link rel="shortcut icon" href="/web/20071213035709im_/http://developer.mozilla.org/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/web/20071213035709/http://developer.mozilla.org/en/docs/opensearch_desc.php" title="MDC (English)"/> <link rel="copyright" href="/web/20071213035709/http://developer.mozilla.org/en/docs/MDC:Copyrights"/> <title>Bug writing guidelines - MDC</title> <link rel="alternate" type="application/rss+xml" title="MDC Webwatch" href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/webwatch/?feed=rss"/> <link rel="alternate" type="application/rss+xml" title="MDC DevNews" href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/devnews/?feed=rss"/> <link rel="alternate" type="application/rss+xml" title="Recent Changes (en)" href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Special:Recentchanges&feed=rss"/> <link rel="alternate" type="application/rss+xml" title="New Pages (en)" href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Special:Newpages&feed=rss"/> <link rel="stylesheet" type="text/css" media="all" href="/web/20071213035709cs_/http://developer.mozilla.org/css/base.css"/> <link rel="stylesheet" type="text/css" media="all" href="/web/20071213035709cs_/http://developer.mozilla.org/css/wiki.css"/> <link rel="stylesheet" type="text/css" media="print" href="/web/20071213035709cs_/http://developer.mozilla.org/css/wikiprint.css"/> <!--[if gte IE 6]><style type="text/css">@import "/en/docs/skins/devmo/IE60Fixes.css";</style><![endif]--> <!--[if IE]><script type="text/javascript" src="/en/docs/skins/common/IEFixes.js"></script> <meta http-equiv="imagetoolbar" content="no" /><!{endif]--> <script type="text/javascript">/*<![CDATA[*/ var skin = "devmo"; var stylepath = "/en/docs/skins"; var wgArticlePath = "/en/docs/$1"; var wgScriptPath = "/en/docs"; var wgServer = "https://web.archive.org/web/20071213035709/http://developer.mozilla.org"; var wgCanonicalNamespace = ""; var wgCanonicalSpecialPageName = false; var wgNamespaceNumber = 0; var wgPageName = "Bug_writing_guidelines"; var wgTitle = "Bug writing guidelines"; var wgArticleId = "2324"; var wgIsArticle = true; var wgUserName = null; var wgUserLanguage = "en"; var wgContentLanguage = "en"; var wgBreakFrames = false; var wgCurRevisionId = "61885"; /*]]>*/</script> <script type="text/javascript" src="/web/20071213035709js_/http://developer.mozilla.org/en/docs/index.php?title=-&action=raw&gen=js"></script> <script type="text/javascript" src="/web/20071213035709js_/http://developer.mozilla.org/en/docs/skins/common/wikibits.js"></script> <script type="text/javascript" src="/web/20071213035709js_/http://developer.mozilla.org/en/docs/skins/devmo/devmo.js"></script> <script type="text/javascript" src="/web/20071213035709js_/http://developer.mozilla.org/en/docs/skins/devmo/prototype.js"></script> <script type="text/javascript" src="/web/20071213035709js_/http://developer.mozilla.org/en/docs/skins/devmo/scriptaculous.js"></script> <style type="text/css">/*<![CDATA[*/ @import "/web/20071213035709cs_/http://developer.mozilla.org/en/docs/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000"; @import "/web/20071213035709cs_/http://developer.mozilla.org/en/docs/index.php?title=MediaWiki:Devmo.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000"; @import "/web/20071213035709cs_/http://developer.mozilla.org/en/docs/index.php?title=-&action=raw&gen=css&maxage=18000"; /*]]>*/</style> </head> <body class="ns-0" id="developer-mozilla-org"> <div id="container"> <p class="skipLink"><a href="#content" accesskey="2">Skip to main content</a></p> <div id="mozilla-org"><a href="https://web.archive.org/web/20071213035709/http://www.mozilla.org/">Visit Mozilla.org</a></div> <div id="header"> <h1><a href="/web/20071213035709/http://developer.mozilla.org/" title="Return to home page" accesskey="1">Mozilla Developer Network</a></h1> <!-- search box --> <form name="searchform" action="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Nutch" id="searchform"> <input type="hidden" name="language" value="en"/> <input type="hidden" name="start" value="0"/> <input type="hidden" name="hitsPerPage" value="10"/> <input id="searchInput" name="query" type="text" accesskey="s"/> <input type="submit" name="fulltext" class="searchButton" value="Search"/> </form> <!-- end searchbox --> </div> <div id="navigation"> <div id="bar"> <div> <ul id="personal"> <li id="pt-anonuserpage"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/User:64.208.172.172" class="new">64.208.172.172</a></li><li id="pt-anontalk"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/User_talk:64.208.172.172" class="new">Talk for this IP</a></li><li id="pt-anonlogin"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Special:Userlogin&returnto=Bug_writing_guidelines">Create an account or log in</a></li> </ul> <ul id="contenttypes"> <li class="selected"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Main_Page">Documentation</a></li> <li><a href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/devnews/">DevNews</a></li> <li><a href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/webwatch/">Webwatch</a></li> </ul> </div> </div> </div> <div id="page"> <div id="sidebar"> <div id="sidebarslideup" class="sidebarslidecontrol" onclick="new Effect.SlideUp('sidebarslidebox'); sidebarUp();"> Hide Sidebar </div> <div id="sidebarslidedown" class="sidebarslidecontrol" onclick="new Effect.SlideDown('sidebarslidebox'); sidebarDown();" style="display: none;"> Show Sidebar </div> <div id="sidebarslidebox"> <div> <div id="related"> <div> <h3>Related</h3> <p class="catlinks"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Categories" title="Special:Categories">Category</a>: <span dir="ltr"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Category:QA" title="Category:QA">QA</a></span></p> </div> </div> <!-- WIKI NAVIGATION --> <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script> <div class="pagetools"> <div> <h3>Navigation</h3> <ul> <li id="n-mainpage"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Main_Page">Main Page</a></li> <li id="n-portal"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/MDC:Community_Portal">Community portal</a></li> <li id="n-currentevents"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Current_events">Current events</a></li> <li id="n-recentchanges"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Recentchanges">Recent changes</a></li> <li id="n-randompage"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Random">Random page</a></li> <li id="n-help"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Help:Contents">Help</a></li> <li id="n-sitesupport"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/MDC:Site_support">Donations</a></li> </ul> </div> </div> <!-- VIEWS --> <div class="pagetools"> <div> <h3>Views</h3> <ul> <li id="ca-nstab-main" class="selected"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Bug_writing_guidelines">Article</a></li><li id="ca-talk" class="new"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Talk:Bug_writing_guidelines&action=edit">Discussion</a></li><li id="ca-edit"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=edit">Edit</a></li><li id="ca-history"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=history">History</a></li> </ul> </div> </div> <!-- TOOLBOX --> <div class="pagetools"> <div> <h3>Toolbox</h3> <ul> <li id="t-whatlinkshere"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Whatlinkshere/Bug_writing_guidelines">What links here</a></li> <li id="t-recentchangeslinked"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Recentchangeslinked/Bug_writing_guidelines">Related changes</a></li> <li id="t-upload"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Upload">Upload file</a></li> <li id="t-specialpages"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Specialpages">Special pages</a></li> <li id="t-print"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&printable=yes">Printable version</a></li> </ul> </div> </div> <!-- LANGUAGE LINKS --> <div class="pagetools"> <div> <h3>In other languages</h3> <ul> <li> <a href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/ja/docs/Bug_writing_guidelines">日本語</a> </li> </ul> </div> </div> </div> </div> </div><!-- END SIDEBAR --> <div id="content"> <div class="article"> <a name="top" id="contentTop"></a> <h1 class="firstHeading">Bug writing guidelines</h1> <h3 id="siteSub">From MDC</h3> <div id="contentSub"></div> <div class="breadcrumbs"><a class="breadcrumbs" href="/web/20071213035709/http://developer.mozilla.org/en/docs/Main_Page">Main Page</a> > <span class="breadcrumbs">Bug writing guidelines</span></div> <div class="note"> <p><b>If you need help with Mozilla software (for example with Firefox or Thunderbird), use one of the available <a href="https://web.archive.org/web/20071213035709/http://www.mozilla.org/support/" class="external text" title="http://www.mozilla.org/support/" rel="nofollow">support options</a>. Do not edit this page.</b> </p><p>If you're new to Mozilla QA, you may want to try getting help from the more experienced contributors. See the Community section on the <a href="/web/20071213035709/http://developer.mozilla.org/en/docs/QA" title="QA">QA</a> page for pointers. If you're going to report a Firefox bug, you can also get assistance in the <tt><a href="https://web.archive.org/web/20071213035709/irc://irc.mozilla.org/firefox" class="external text" title="irc://irc.mozilla.org/firefox" rel="nofollow">#firefox</a></tt> channel on irc.mozilla.org. There's also an article specifically about <a href="https://web.archive.org/web/20071213035709/http://www.mozilla.org/support/firefox/bugs" class="external text" title="http://www.mozilla.org/support/firefox/bugs" rel="nofollow">filing Firefox bugs</a>. </p> </div> <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div> <ul> <li class="toclevel-1"><a href="#Principles"><span class="tocnumber">1</span> <span class="toctext">Principles</span></a></li> <li class="toclevel-1"><a href="#Preliminaries"><span class="tocnumber">2</span> <span class="toctext">Preliminaries</span></a></li> <li class="toclevel-1"><a href="#Reporting_a_New_Bug"><span class="tocnumber">3</span> <span class="toctext">Reporting a New Bug</span></a></li> <li class="toclevel-1"><a href="#Original_document_information"><span class="tocnumber">4</span> <span class="toctext">Original document information</span></a></li> </ul> </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script> <a name="Principles"></a><h1><span class="editsection">[<a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=edit&section=1" title="Edit section: Principles">edit</a>]</span> <span class="mw-headline">Principles</span></h1> <p>Effective bug reports are the most likely to be fixed. These guidelines explain how to write such reports. </p> <ul><li> Be precise </li><li> Be clear - explain it so others can reproduce the bug </li><li> One bug per report </li><li> No bug is too trivial to report - small bugs may hide big bugs </li><li> Clearly separate fact from speculation </li></ul> <a name="Preliminaries"></a><h1><span class="editsection">[<a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=edit&section=2" title="Edit section: Preliminaries">edit</a>]</span> <span class="mw-headline">Preliminaries</span></h1> <ol><li> Reproduce your bug using a <a href="https://web.archive.org/web/20071213035709/http://www.mozilla.org/developer/#builds" class="external text" title="http://www.mozilla.org/developer/#builds" rel="nofollow">recent build</a> of the software, to see whether it has already been fixed. </li><li> Search Bugzilla, to see whether your bug has already been reported (<a href="https://web.archive.org/web/20071213035709/http://www.mozilla.org/quality/help/screening-duplicates.html" class="external text" title="http://www.mozilla.org/quality/help/screening-duplicates.html" rel="nofollow">tutorial</a>). </li></ol> <a name="Reporting_a_New_Bug"></a><h1><span class="editsection">[<a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=edit&section=3" title="Edit section: Reporting a New Bug">edit</a>]</span> <span class="mw-headline">Reporting a New Bug</span></h1> <p>If you have reproduced the bug in a recent build and no-one else appears to have reported it, then: </p> <ol><li> Choose "<a href="https://web.archive.org/web/20071213035709/https://bugzilla.mozilla.org/enter_bug.cgi?format=guided" class="external text" title="https://bugzilla.mozilla.org/enter_bug.cgi?format=guided" rel="nofollow">Enter a new bug</a>" (that form incorporates parts of these guidelines) </li><li> Select the product in which you've found the bug </li><li> Fill out the form. Here is some help understanding it: </li></ol> <p><b>Component:</b> In which sub-part of the software does it exist? </p><p>This field is required. Click the word "Component" to see a description of each component. If none seems appropriate, look for a "General" component. </p><p><b>OS:</b> On which operating system (OS) did you find it? (e.g. Linux, Windows XP, Mac OS X.) </p><p>If you know the bug happens on more than one type of operating system, choose "All". If your OS isn't listed, choose Other. </p><p><b>Summary:</b> How would you describe the bug, in approximately 60 or fewer characters? </p><p>A good summary should quickly and uniquely identify a bug report. It should explain the problem, not your suggested solution. </p> <ul><li> Good: "Cancelling a File Copy dialog crashes File Manager" </li><li> Bad: "Software crashes" </li><li> Bad: "Browser should work with my web site" </li></ul> <p><b>Description:</b> The details of your problem report, including: </p> <div class="highlight"> <p><b>Overview:</b> More detailed restatement of summary. </p> <pre>Drag-selecting any page crashes Mac builds in the NSGetFactory function. </pre> <p><b>Steps to Reproduce:</b> Minimized, easy-to-follow steps that will trigger the bug. Include any special setup steps. </p> <pre>1) View any web page. (I used the default sample page, resource:/res/samples/test0.html) 2) Drag-select the page. (Specifically, while holding down the mouse button, drag the mouse pointer downwards from any point in the browser's content region to the bottom of the browser's content region.) </pre> <p><b>Actual Results:</b> What the application did after performing the above steps. </p> <pre>The application crashed. </pre> <p><b>Expected Results:</b> What the application should have done, were the bug not present. </p> <pre>The window should scroll downwards. Scrolled content should be selected. (Or, at least, the application should not crash.) </pre> <p><b>Build Date & Platform:</b> Date and platform of the build in which you first encountered the bug. </p> <pre>Build 2006-08-10 on Mac OS 10.4.3 </pre> <p><b>Additional Builds and Platforms:</b> Whether or not the bug takes place on other platforms (or browsers, if applicable). </p> <pre>Doesn't Occur On Build 2006-08-10 on Windows XP Home (Service Pack 2) </pre> <p><b>Additional Information:</b> Any other useful information. </p><p>For crashing bugs: </p> <ul><li> Win32: If you receive a Dr. Watson error, please note the type of the crash, and the module that the application crashed in. (e.g. access violation in mozilla.exe) </li><li> Mac OS X: When the application crashes, click the "Report" button in the notification window that appears, then copy all the text from the text box under the message "Problem and system information" and include it with your bug report. There's no need to send the bug to Apple, so just click the red close box at the top of the window. </li><li> Unix: Please provide a minimized stack trace, which can be generated by typing <tt>gdb mozilla core</tt> into a shell prompt. </li></ul> <pre>Date/Time: 2006-12-26 12:15:20.089 -0500 OS Version: 10.4.8 (Build 8L2127) Report Version: 4 Command: firefox-bin Path: /Applications/Firefox.app/Contents/MacOS/firefox-bin Parent: WindowServer [71] Version: 2.0.0.1 (2.0.0.1) PID: 114 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000ca Thread 0 Crashed: 0 libxpcom_core.dylib 0x0186329b AppendUTF8toUTF16(char const*, nsAString_internal&) + 31 1 libxpcom_core.dylib 0x01822916 nsTextFormatter::smprintf_free(unsigned short*) + 3248 ... (many many more lines like this) ...</pre> </div> <p><b>Add an attachment:</b> You can attach relevant files to a bug report. Debugging information more than 20 lines long should be supplied this way. Also, if you have an HTML file that demonstrates the bug, you should attach that. You can only attach one file during initial submission so if your demonstration needs more, revisit the newly filed bug to do this part. Attach any subsidiary files (such as images) first and then edit the HTML file to point to the new URLs of the attached files before uploading, so the demo is self-contained. Ask before attaching more than five files. </p><p>Double-check your report for errors and omissions, then press "Commit". Your bug report will now be in the Bugzilla database. </p> <div class="originaldocinfo"> <a name="Original_document_information"></a><h1><span class="editsection">[<a href="/web/20071213035709/http://developer.mozilla.org/en/docs/index.php?title=Bug_writing_guidelines&action=edit&section=4" title="Edit section: Original document information">edit</a>]</span> <span class="mw-headline"> Original document information </span></h1> <ul><li> Author(s): Gervase Markham, based on an original by Eli Goldberg </li><li> Other Contributors: Claudius Gayle, Jan Leger, Felix Miata, Peter Mock, Chris Pratt, Chris Yeh, and others. </li></ul> </div> <!-- Saved in parser cache with key wiki_mdc-mediawiki:pcache:idhash:2324-0!1!0!!en!2 and timestamp 20071212152714 --> <div class="printfooter"> Retrieved from "<a href="https://web.archive.org/web/20071213035709/http://developer.mozilla.org/en/docs/Bug_writing_guidelines">http://developer.mozilla.org/en/docs/Bug_writing_guidelines</a>"</div> <div id="catlinks"><p class="catlinks"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Special:Categories" title="Special:Categories">Category</a>: <span dir="ltr"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/Category:QA" title="Category:QA">QA</a></span></p></div> </div> </div> <!-- end id content --> <div id="footer"> <ul> <li id="f-lastmod"> This page was last modified 02:55, 8 December 2007.</li> <li id="f-viewcount">This page has been accessed 85,076 times.</li> </ul> <ul> <li id="f-copyright">Content is available under <a href="/web/20071213035709/http://developer.mozilla.org/en/docs/MDC:Copyrights" title="MDC:Copyrights">these licenses</a>.</li> <li id="f-about"><a href="/web/20071213035709/http://developer.mozilla.org/en/docs/MDC:About" title="MDC:About">About MDC</a></li> </ul> </div> </div> <!-- end id page --> </div> <!-- end id container --> <!-- Served by mrapp53 in 0.138 secs. --> </body> </html> <!-- FILE ARCHIVED ON 03:57:09 Dec 13, 2007 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 00:06:10 Dec 01, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.576 exclusion.robots: 0.027 exclusion.robots.policy: 0.016 esindex: 0.01 cdx.remote: 7.395 LoadShardBlock: 109.523 (3) PetaboxLoader3.datanode: 111.547 (4) load_resource: 111.435 PetaboxLoader3.resolve: 43.206 -->