Rewrite release event only if press event was rewritten for a given device.

BUG=330567
TEST=TBD

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247912 0039d316-1c4b-4281-b951-d872f2087c98
Ignore generated background windows in GetWebViewIds for affected builds on M33

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247913 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 247913