Fix a crash in runOpenPanel where an array size wasn't being checked.  To repro: compose a new message in gmail and click attach file.
Fix a crash in runOpenPanel where an array size wasn't being checked.  To repro: compose a new message in gmail and click attach file.

Review URL: http://codereview.chromium.org/10887

git-svn-id: http://src.chromium.org/svn/trunk/src@5368 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 4b9c6d43b63b1a7029a94f1a245bc4f0bdca851b
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser