diff options
author | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-04 11:20:21 +0000 |
---|---|---|
committer | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-04 11:20:21 +0000 |
commit | 2115dd3283dbb02f8f7b78fad021297f8e4ebae5 (patch) | |
tree | d356b7cc527fc25885180a740fb13d8bc16bedc8 /.gitignore | |
parent | 8bf3b101dbadf9679db6a2466b25eec1832c0651 (diff) | |
download | chromium_src-2115dd3283dbb02f8f7b78fad021297f8e4ebae5.zip chromium_src-2115dd3283dbb02f8f7b78fad021297f8e4ebae5.tar.gz chromium_src-2115dd3283dbb02f8f7b78fad021297f8e4ebae5.tar.bz2 |
Fix a crash when chooseDesktopMedia is called with no target tab
DesktopMediaPicker was getting created with web_contents returned by
web_contents(), which is part of WebContentsObserver interface,
and which does not get set when the target tab is not specified.
Also, fix handling of a case when the method is called when there are
no web contents to attach the picker dialog to.
BUG=375576,364050
TEST=from a extension with desktopCapture permission:
chrome.desktopCapture.chooseDesktopMedia(['screen'], undefined, function())
does not crash
Review URL: https://codereview.chromium.org/307453010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions