diff options
author | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 12:29:23 +0000 |
---|---|---|
committer | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 12:29:23 +0000 |
commit | 60b5184a4bdb8f6d26a529a40ec7470bd1dfd994 (patch) | |
tree | 800d6d2af0544c10c5b3da4acb42958949623e13 /skia | |
parent | 3ee91378a16d383f62789e7b3f87e6b2830f8c9e (diff) | |
download | chromium_src-60b5184a4bdb8f6d26a529a40ec7470bd1dfd994.zip chromium_src-60b5184a4bdb8f6d26a529a40ec7470bd1dfd994.tar.gz chromium_src-60b5184a4bdb8f6d26a529a40ec7470bd1dfd994.tar.bz2 |
Added parameter checking to window.postMessage. Before this change passing anything else than a message port as the second parameter would crash. Acccording to the draft standard passing null as the second parameter should act as if only two parameters (parameter 1 and 3) where passed. WebKit treats anything else than a message port as the second parameter as if it was not passed (the draft standard is not explicit on that) so we do the same.
Added a layout test to test window.postMessage parameter checking.
Review URL: http://codereview.chromium.org/11405
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
0 files changed, 0 insertions, 0 deletions