Make Geolocation internal test methods more resilient.

Have the window.internals Geolocation test methods typecheck its arguments,
throwing TypeError if passed invalid Document arguments.

Additionally, have the methods gracefully handle detached documents.

R=tkent
BUG=460550

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190642 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed
tree: 73d38c371b412c731e04b4957be94a45e96bf7ee
  1. third_party/