Index: Source/core/page/Navigator.cpp |
diff --git a/Source/core/page/Navigator.cpp b/Source/core/page/Navigator.cpp |
index 4b08d4d93a24926963f799f3005d460327166a59..646468b0db38cf4ff26dfe815f47c1c360efed5d 100644 |
--- a/Source/core/page/Navigator.cpp |
+++ b/Source/core/page/Navigator.cpp |
@@ -35,6 +35,18 @@ |
#include "core/plugins/DOMMimeTypeArray.h" |
#include "core/plugins/DOMPluginArray.h" |
+#ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB |
+#define WEBCORE_NAVIGATOR_PRODUCT_SUB "20030107" |
+#endif // ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB |
+ |
+#ifndef WEBCORE_NAVIGATOR_VENDOR |
+#define WEBCORE_NAVIGATOR_VENDOR "Apple Computer, Inc." |
+#endif // ifndef WEBCORE_NAVIGATOR_VENDOR |
+ |
+#ifndef WEBCORE_NAVIGATOR_VENDOR_SUB |
+#define WEBCORE_NAVIGATOR_VENDOR_SUB "" |
+#endif // ifndef WEBCORE_NAVIGATOR_VENDOR_SUB |
+ |
namespace WebCore { |
Navigator::Navigator(Frame* frame) |
@@ -79,6 +91,21 @@ String Navigator::language() const |
return defaultLanguage(); |
} |
+String Navigator::productSub() const |
+{ |
+ return WEBCORE_NAVIGATOR_PRODUCT_SUB; |
+} |
+ |
+String Navigator::vendor() const |
+{ |
+ return WEBCORE_NAVIGATOR_VENDOR; |
+} |
+ |
+String Navigator::vendorSub() const |
+{ |
+ return WEBCORE_NAVIGATOR_VENDOR_SUB; |
+} |
+ |
String Navigator::userAgent() const |
{ |
if (!m_frame) |