commit d4c63ddb9b2daa61161eb5357845c5660c26538e
Author: Jonathan Harker <jonathan@catalyst.net.nz>
Date:   Tue Aug 24 15:29:42 2010 +1200

    lib: allow WebKit > 528.16 browsers to use HTMLArea editor.

diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php
index 6cdcb80..0db9c21 100644
--- a/lib/editor/htmlarea/htmlarea.php
+++ b/lib/editor/htmlarea/htmlarea.php
@@ -2371,6 +2371,7 @@ HTMLArea.is_mac_ie = (HTMLArea.is_ie && HTMLArea.is_mac);
 HTMLArea.is_win_ie = (HTMLArea.is_ie && !HTMLArea.is_mac);
 HTMLArea.is_gecko  = (navigator.product == "Gecko");
 HTMLArea.is_safari = (HTMLArea.agt.indexOf("safari") != -1);
+HTMLArea.is_webkit = (HTMLArea.agt.indexOf("applewebkit") != -1);
 
 // variable used to pass the object to the popup editor window.
 HTMLArea._object = null;
@@ -2398,6 +2399,9 @@ HTMLArea.cloneObject = function(obj) {
 
 // FIXME!!! this should return false for IE < 5.5
 HTMLArea.checkSupportedBrowser = function() {
+    if(HTMLArea.is_webkit) {
+        return true;
+    }
     if (HTMLArea.is_gecko) {
         if (navigator.productSub < 20021201) {
             alert("You need at least Mozilla-1.3 Alpha.\n" +
diff --git a/lib/moodlelib.php b/lib/moodlelib.php
index 0bc4754..d730efc 100644
--- a/lib/moodlelib.php
+++ b/lib/moodlelib.php
@@ -6413,6 +6413,7 @@ function check_php_version($version='4.1.0') {
           }
           break;
 
+      case 'AppleWebKit':  /// Safari, Chromium, Konqueror, Symbian, Palm, etc.
       case 'Safari':  /// Safari
           // Look for AppleWebKit, excluding strings with OmniWeb, Shiira and SimbianOS
           if (strpos($agent, 'OmniWeb')) { // Reject OmniWeb
@@ -6516,6 +6517,8 @@ function can_use_html_editor() {
             return 'MSIE';
         } else if (check_browser_version('Gecko', 20030516)) {
             return 'Gecko';
+        } else if (check_browser_version('AppleWebKit', 528.16)) {
+            return 'AppleWebKit';
         }
     }
     return false;
