[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
hyatt
hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:50:52 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 9d09560a4ca362c32f0c0bde05a745774de51408
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Oct 17 19:06:52 2002 +0000
Make navigator.product dynamic based off user agent (i.e.,
make it participate in spoofing too).
* khtml/ecma/kjs_navigator.cpp:
(Navigator::getValueProperty):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 12a48df..bded03c 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,3 +1,11 @@
+2002-10-17 David Hyatt <hyatt at apple.com>
+
+ Make navigator.product dynamic based off user agent (i.e.,
+ make it participate in spoofing too).
+
+ * khtml/ecma/kjs_navigator.cpp:
+ (Navigator::getValueProperty):
+
=== Alexander-28 ===
2002-10-17 Darin Adler <darin at apple.com>
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 12a48df..bded03c 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,11 @@
+2002-10-17 David Hyatt <hyatt at apple.com>
+
+ Make navigator.product dynamic based off user agent (i.e.,
+ make it participate in spoofing too).
+
+ * khtml/ecma/kjs_navigator.cpp:
+ (Navigator::getValueProperty):
+
=== Alexander-28 ===
2002-10-17 Darin Adler <darin at apple.com>
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 12a48df..bded03c 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,11 @@
+2002-10-17 David Hyatt <hyatt at apple.com>
+
+ Make navigator.product dynamic based off user agent (i.e.,
+ make it participate in spoofing too).
+
+ * khtml/ecma/kjs_navigator.cpp:
+ (Navigator::getValueProperty):
+
=== Alexander-28 ===
2002-10-17 Darin Adler <darin at apple.com>
diff --git a/WebCore/khtml/ecma/kjs_navigator.cpp b/WebCore/khtml/ecma/kjs_navigator.cpp
index 057c5d9..af158c5 100644
--- a/WebCore/khtml/ecma/kjs_navigator.cpp
+++ b/WebCore/khtml/ecma/kjs_navigator.cpp
@@ -205,6 +205,12 @@ Value Navigator::getValueProperty(ExecState *exec, int token) const
// We assume the string is something like Mozilla/version (properties)
return String(userAgent.mid(userAgent.find('/') + 1));
case Product:
+ if (userAgent.find(QString::fromLatin1("Mozilla")) >= 0 &&
+ userAgent.find(QString::fromLatin1("compatible")) == -1)
+ {
+ //kdDebug() << "appName -> Mozilla" << endl;
+ return String("Gecko");
+ }
#ifdef APPLE_CHANGES
return Undefined();
#else
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list