[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
pfeldman at chromium.org
pfeldman at chromium.org
Wed Dec 22 12:02:00 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit aefc84e892bd81f98c6944941d718eccc300f9a1
Author: pfeldman at chromium.org <pfeldman at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Aug 12 23:06:38 2010 +0000
2010-08-12 Pavel Feldman <pfeldman at chromium.org>
Reviewed by Joseph Pecoraro.
Web Inspector: mimic FireBug's array detection.
https://bugs.webkit.org/show_bug.cgi?id=30974
* inspector/front-end/InjectedScript.js:
(injectedScriptConstructor):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index a1b841a..01d3647 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-08-12 Pavel Feldman <pfeldman at chromium.org>
+
+ Reviewed by Joseph Pecoraro.
+
+ Web Inspector: mimic FireBug's array detection.
+ https://bugs.webkit.org/show_bug.cgi?id=30974
+
+ * inspector/front-end/InjectedScript.js:
+ (injectedScriptConstructor):
+
2010-08-12 Zhenyao Mo <zmo at google.com>
Reviewed by Dimitri Glazkov.
diff --git a/WebCore/inspector/front-end/InjectedScript.js b/WebCore/inspector/front-end/InjectedScript.js
index f3e3ae9..b6ad173 100644
--- a/WebCore/inspector/front-end/InjectedScript.js
+++ b/WebCore/inspector/front-end/InjectedScript.js
@@ -519,12 +519,15 @@ InjectedScript._type = function(obj)
return "date";
if (obj instanceof inspectedWindow.RegExp)
return "regexp";
+ // FireBug's array detection.
+ if (isFinite(obj.length) && typeof obj.splice === "function")
+ return "array";
+ if (isFinite(obj.length) && typeof obj.callee === "function") // arguments.
+ return "array";
if (obj instanceof inspectedWindow.NodeList)
return "array";
if (obj instanceof inspectedWindow.HTMLCollection)
return "array";
- if (typeof inspectedWindow.jQuery === "function" && obj instanceof inspectedWindow.jQuery)
- return "array";
if (obj instanceof inspectedWindow.Error)
return "error";
return type;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list