document.open(): gracefully handle exception thrown on window.open access.

Check if the "open" property lookup on the global object returned anything
before attempting to use it.

R=haraken@chromium.org
BUG=365659
TEST=fast/js/document-open-getter-throw-no-crash.html

Review URL: https://codereview.chromium.org/249653002

git-svn-id: svn://svn.chromium.org/blink/trunk@172407 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 91bc85e87f45851304d65853fbaebd6508bea321
  1. third_party/