Treat a stopped AudioContext as closed.

An AudioContext that ends up being detached&stopped by its
execution context is now treated on equal terms to one that
has been explicitly close()d from script. AudioContext methods
and operations over a context in such a state will now throw.

This restriction applies to OfflineAudioContext as well as
AudioContext.

R=rtoy
BUG=435867

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

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