reporting.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php
  2. $title = "Reporting Bugs";
  3. include("../header.inc");
  4. ?>
  5. <h2>Reporting Bugs</h2>
  6. <h3>You have found a bug? Here are 5 steps to getting it fixed!</h3>
  7. <ol>
  8. <li>
  9. <strong>Check your WebKit version</strong><br>
  10. <script type="text/javascript">
  11. /*
  12. Copyright (C) 2006 Joost de Valk, http://www.joostdevalk.nl/. All rights reserved.
  13. Copyright (C) 2006 Mark Rowe, http://bdash.net.nz/. All rights reserved.
  14. Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
  15. Redistribution and use in source and binary forms, with or without
  16. modification, are permitted provided that the following conditions
  17. are met:
  18. 1. Redistributions of source code must retain the above copyright
  19. notice, this list of conditions and the following disclaimer.
  20. 2. Redistributions in binary form must reproduce the above copyright
  21. notice, this list of conditions and the following disclaimer in the
  22. documentation and/or other materials provided with the distribution.
  23. THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
  24. EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  26. PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
  27. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  28. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  29. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  30. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  31. OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  32. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  33. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. Script used for recognizing Safari / Shiira / WebKit.
  35. A matrix of WebKit versions and OS X versions can be found at:
  36. http://developer.apple.com/internet/safari/uamatrix.html .
  37. */
  38. function parse_version(version)
  39. {
  40. var bits = version.split(".");
  41. var is_nightly = (version[version.length - 1] == "+");
  42. return {major: parseInt(bits[0]), minor: parseInt(bits[1]), is_nightly: is_nightly};
  43. }
  44. function display(id, display_style)
  45. {
  46. document.getElementById(id).style.display = display_style;
  47. }
  48. function get_version()
  49. {
  50. // Check for Safari
  51. var regex = new RegExp("Mozilla/5.0 \\(.*\\) AppleWebKit/(.*) \\(KHTML, like Gecko\\) Safari/(.*)");
  52. var matches = regex.exec(navigator.userAgent);
  53. var is_safari = false;
  54. var is_shiira = false;
  55. if (matches) {
  56. is_safari = true;
  57. display('safari_bug', 'block');
  58. } else {
  59. // Check for Shiira
  60. var regex = new RegExp("Mozilla/5.0 \\(.*\\) AppleWebKit/(.*) \\(KHTML, like Gecko\\) Shiira/(.*) Safari/(.*)");
  61. var matches = regex.exec(navigator.userAgent);
  62. if (matches) {
  63. is_shiira = true;
  64. display('shiira_bug', 'block');
  65. } else {
  66. return;
  67. }
  68. }
  69. // We have detected a valid WebKit version, hide the unknown version text
  70. display('unknown_version', 'none');
  71. var webkit_version = parse_version(matches[1]);
  72. if (webkit_version.major < 100) {
  73. // Mac OS X 10.2
  74. display('using_10point2', 'block');
  75. } else if (webkit_version.major >= 100 && webkit_version.major < 400) {
  76. // Mac OS X 10.3
  77. display('using_10point3', 'block');
  78. if (webkit_version.major < 312)
  79. // Mac OS X 10.3.8 or lower
  80. display('updateto10_3_9', 'block');
  81. else if (webkit_version.minor < 9)
  82. // Mac OS X 10.3.9 but not the latest Safari update
  83. display('update10_3_9_safari', 'block');
  84. else if (is_safari)
  85. // Mac OS X 10.3.9 with the latest Safari update
  86. display('best10_3_9_safari', 'block');
  87. else if (is_shiira)
  88. // Mac OS X 10.3.9 with Shiira
  89. display('best10_3_9_shiira', 'block');
  90. } else {
  91. // Mac OS X 10.4
  92. display('using_10point4', 'block');
  93. if (webkit_version.major == 412 && webkit_version.is_nightly)
  94. // Using an old nightly
  95. display('neednewnightly', 'block');
  96. else if (webkit_version.major == 420 && webkit_version.is_nightly)
  97. // Using a recent nightly, not sure which
  98. display('mightneednewnightly', 'block');
  99. else if (webkit_version.major < 418)
  100. // 10.4.6 or lower
  101. display('updateto10_4_7', 'block');
  102. else if (is_safari)
  103. // 10.4.7
  104. display('using_10_4_7_safari', 'block');
  105. else if (is_shiira)
  106. // 10.4.7
  107. display('using_10_4_7_shiira', 'block');
  108. }
  109. }
  110. </script>
  111. <div id="unknown_version">
  112. To make sure you're not wasting your (and our) time, you should be using the latest version of WebKit before you file your bug.
  113. First of all, you should <a href="http://nightly.webkit.org">download the latest nightly</a> build to be sure you
  114. have the latest version. If you've done this and you still experience the bug, go ahead to the next step.
  115. </div>
  116. <div id="using_10point2" style="display: none;">
  117. We're sorry, we no longer accept bug reports about Safari under Mac OS X 10.2. To many bugs have been fixed since then. We advise
  118. you to upgrade to Mac OS X 10.4.
  119. </div>
  120. <div id="using_10point3" style="display: none;">
  121. <div id="updateto10_3_9" style="display: none;">
  122. You are using Mac OS X 10.3.8 or lower, please before filing any bugs, upgrade to Mac OS X 10.3.9.
  123. </div>
  124. <div id="update10_3_9_safari" style="display: none;">
  125. You are using Mac OS X 10.3.9, but your WebKit isn't the latest version. Please, before filing any bugs, download the
  126. latest Webkit update.
  127. </div>
  128. <div id="best10_3_9_safari">
  129. You are using Mac OS X 10.3.9, and the latest version of Safari, go ahead and file your bug!
  130. </div>
  131. <div id="best10_3_9_shiira">
  132. You are using Shiira on Mac OS X 10.3.9, go ahead and file your bug!
  133. </div>
  134. </div>
  135. <div id="using_10point4" style="display: none;">
  136. <div id="neednewnightly" style="display: none;">
  137. You are already using a nightly build, which is very good! A large number of bugs has been fixed since you downloaded
  138. this nightly build though, so please <a href="http://nightly.webkit.org/">get the latest nightly</a>.
  139. </div>
  140. <div id="mightneednewnightly" style="display: none;">
  141. You are already using a nightly build, which is very good! Unfortunately, we can't detect when you downloaded it, but
  142. if that was more then a few days ago, please <a href="http://nightly.webkit.org/">get the latest nightly</a>.
  143. </div>
  144. <div id="updateto10_4_7" style="display: none;">
  145. You are using Mac OS X 10.4.6 or lower, please before filing any bugs, do either of the following:
  146. <ul>
  147. <li>Upgrade to Mac OS X 10.4.7, or:</li>
  148. <li><a href="http://nightly.webkit.org">Download the latest nightly</a>.</li>
  149. </ul>
  150. </div>
  151. <div id="using_10_4_7_safari" style="display: none;">
  152. You are using Safari on Mac OS X 10.4.7, go ahead and file your bug, or if you want to <a href="http://nightly.webkit.org">
  153. download the latest nightly</a> and see if your bug is already fixed.
  154. </div>
  155. <div id="using_10_4_7_shiira" style="display: none;">
  156. You are using Shiira on Mac OS X 10.4.7, go ahead and file your bug.
  157. </div>
  158. </div>
  159. </li>
  160. <li>
  161. <strong>Search Bugzilla</strong><br>
  162. Now that you have the latest WebKit version and still think you've found a WebKit bug,
  163. <a href="https://bugs.webkit.org/query.cgi?format=specific&amp;product=WebKit">search through Bugzilla</a> first
  164. to see if anyone else has already filed it. This step is very important! If you find that someone has filed your bug
  165. already, please go to the next step anyway, but instead of filing a new bug, comment on the one you've found. If you can't
  166. find your bug in Bugzilla, go to the next step.
  167. </li>
  168. <li>
  169. <strong>Create a Bugzilla account</strong><br>
  170. You will need to <a href="bugzilla.html">create a Bugzilla account</a> to be able
  171. to report bugs (and to comment on them). If you have registered, proceed to the next step.
  172. </li>
  173. <li>
  174. <strong>File the bug!</strong><br>
  175. Now you are ready to <a href="http://webkit.org/new-bug">file a bug on the WebKit product</a>. The <a href="bugwriting.html">
  176. Writing a Good Bug Report</a> document (also linked in the sidebar) gives some tips about the most useful information to include
  177. in bug reports. The better your bug report, the higher the chance that your bug will be addressed (and possibly fixed)
  178. quickly!
  179. </li>
  180. <li>
  181. <strong>What happens next?</strong><br>
  182. Once your bug is filed, you will receive email when it is updated at each stage in the <a href="lifecycle.html">bug life cycle</a>.
  183. After the bug is considered fixed, you may be asked to download the <a href="http://nightly.webkit.org">latest nightly</a>
  184. and confirm that the fix works for you.
  185. </li>
  186. </ol>
  187. <div id="safari_bug" style="display: none;">
  188. <strong>Note:</strong> <br>
  189. To report bugs in Safari, or WebKit bugs that may contain confidential information, please use
  190. <a href="http://bugreporter.apple.com">http://bugreporter.apple.com/</a>.
  191. Non ADC members can also use <a href="http://developer.apple.com/bugreporter/bugrptform.html">http://developer.apple.com/bugreporter/bugrptform.html</a> to report bugs.
  192. </div>
  193. <div id="shiira_bug" style="display: none;">
  194. <strong>Note:</strong> <br>
  195. To report bugs in Shiira, please go to <a href="http://hmdt-web.net/forum/">http://hmdt-web.net/forum/</a>.
  196. For WebKit bugs that contain confidential information, please use
  197. <a href="http://bugreporter.apple.com">http://bugreporter.apple.com/</a>.
  198. </div>
  199. <script type="text/javascript">get_version();</script>
  200. <?php include("../footer.inc"); ?>