asking_questions.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. $title = "Asking questions on webkit-help";
  3. $extra_head_content = <<<END
  4. <style type="text/css">
  5. pre .code {
  6. background-color: #F2F2F2;
  7. }
  8. .right {
  9. color: #080 !important;
  10. }
  11. .wrong {
  12. color: #f00 !important;
  13. }
  14. </style>
  15. END;
  16. include("header.inc");
  17. ?>
  18. <h1> How to ask questions about WebKit </h1>
  19. The following tips are for new members of any WebKit mailing list who want to get help on learning WebKit.
  20. These include advice on other ways to find answers and help that go beyond the WebKit's mailing lists.
  21. <h2> Search the archives </h2>
  22. <p>Your question may have already been answered. Make sure you search at least webkit-help and webkit-dev archives.
  23. There are two ways to query the archives: doing a web search or the <a href="http://dir.gmane.org/search.php?match=webkit">gmane archives</a>.</p>
  24. <p>You can limit a web search to the mailing lists' archives by using "site:lists.webkit.org".
  25. <p>Here is a small example on how to query information about 'RenderLayer' on the previous mailing lists archives:</p>
  26. <ul>
  27. <li><a href="http://www.google.com/search?q=site:lists.webkit.org/pipermail/webkit-dev+RenderLayer">webkit-dev entries for RenderLayer</a></li>
  28. <li><a href="http://www.google.com/search?q=site:lists.webkit.org/pipermail/webkit-help+RenderLayer">webkit-help entries for RenderLayer</a></li>
  29. </ul>
  30. <h2> Be precise </h2>
  31. <p>Give as many details as possible. Generic questions will likely not get a valuable answer.</p>
  32. <p>Make sure you include at least:</p>
  33. <ul>
  34. <li> which port are you using: Mac, Windows, Chromium, Qt, Gtk, Wx, ...</li>
  35. <li> which operating system are you using? For Linux, paste the result of <code>uname -a</code></li>
  36. </ul>
  37. <p>Depending on your issue, make also sure to include:</p>
  38. <ul>
  39. <li> the revision or branch used</li>
  40. <li> which compiler are you using? (including the version)</li>
  41. <li> the CPU used</li>
  42. <li> the command invoked</li>
  43. <li> the <strong>complete output</strong> of the command. Do not paste only what you think is relevant.</li>
  44. <li> the expected result</li>
  45. </ul>
  46. <p>If one of these item is very long (hundreds of lines), do not paste it in the email. Instead use http://pastebin.com/
  47. (or other similar services) and include the link in the email.</p>
  48. <p>Since we cannot read your mind, the more you give us, the easier it will be for us to help you.</p>
  49. <h2> An example of question </h2>
  50. <p>
  51. <h4 class="wrong">Wrong:</h4>
  52. <p>WebKit does not compile!</p>
  53. <h4 class="right">Right:</h4>
  54. <p>When building Apple's port revision 34567 using <code>"Tools/Scripts/build-webkit --debug --no-svg"</code>, I get the following error:</p>
  55. <code>
  56. Cannot find class Foobar.
  57. </code>
  58. <p>(You can find the complete output here: <a href="http://pastebin.com/foobar">http://pastebin.com/foobar</a>).
  59. I have looked at the archives and the commits but did not find any solution. Does anyone know what could be the issue and whether this has been fixed?
  60. </p>
  61. <h2> Usual questions and answers </h2>
  62. <p>There are some questions that appear regularly on the mailing list. We have included the answers here for your convenience.</p>
  63. <h3> Does WebKit support Foo? </h3>
  64. <p>The most reliable way to answer it is by looking at the source code. WebKit development is fast
  65. paced. Often the requested feature is already implemented although it has
  66. not been widely used yet. Bear in mind that sometimes the level of
  67. supports between different ports is not the same.</p>
  68. <p>The following links are also useful:</p>
  69. <ul>
  70. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML)">Wikipedia comparison of the layout engines: HTML support</a><br></li>
  71. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(XML)">Wikipedia comparison of the layout engines: XML support</a><br></li>
  72. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Cascading_Style_Sheets)">Wikipedia comparison of the layout engines: CSS support</a><br></li>
  73. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Document_Object_Model)">Wikipedia comparison of the layout engines: DOM support</a><br></li>
  74. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)">Wikipedia comparison of the layout engines: HTML5 support</a><br></li>
  75. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(ECMAScript)">Wikipedia comparison of the layout engines: ECMAScript support</a><br></li>
  76. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Scalable_Vector_Graphics)">Wikipedia comparison of the layout engines: SVG support</a><br></li>
  77. <li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Non-standard_HTML)">Wikipedia comparison of the layout engines: non standard HTML support</a><br></li>
  78. </ul>
  79. <h3> I want to port WebKit to a new platform </h3>
  80. <p>As a starting point, first check <a href="http://trac.webkit.org/wiki/SuccessfulPortHowTo">the successful port how to page</a>.</p>
  81. <p>Granted, it's not complete, so feel free to contribute. Try to find a port similar to what you are targeting and use it
  82. as a basis, instead of writing everything from scratch. While working on your port, you may find that you wished the page had
  83. mentioned something. If so, please modify the page and add it.</p>
  84. <h3> How does bar work? </h3>
  85. <p>The best way to answer this is to use your debugger. Set a break point where you want to investigate and get a stack
  86. trace. Then, you will see which functions call your code.</p>
  87. <h2> Things to remember when you ask a question </h2>
  88. <ul>
  89. <li> We offer our help on a voluntary basis so you can't expect us to be
  90. 100% at your disposal. Be patient. No need to insist on the urgency. Asking urgently
  91. for an answer usually does not get you the answer faster.</li>
  92. <li> We love to grow our community, and thus we like to help beginners. After all,
  93. every expert was a beginner at some point in his/her lifetime. However, nobody likes
  94. <strong>lazy</strong> beginners. Thus, if you face a problem, try to analyze and
  95. solve it yourself first <strong>before</strong> asking for help.</li>
  96. <li> WebKit is a big project with a huge code base, so you must be willing
  97. to spend your time and effort on learning the source code. Remember,
  98. you can not become a Grand Master just by skimming some chess learning
  99. books.</li>
  100. <li>Last but not least, there are often complaints that WebKit code
  101. is not easy to understand. Well, this is your chance to contribute! We
  102. have started some helping pages on this, just check out:
  103. <a href="http://trac.webkit.org/wiki/WikiStart#GettingAroundtheWebKitSourceCode">our wiki's page on how to get around the code</a></li>
  104. </ul>
  105. <p>Do not hesitate to fill the wiki page with new information which will help
  106. others to learn!</p>
  107. <?php
  108. include("footer.inc");
  109. ?>