Work around http://crbug.com/279472 for devtools views
This commit is contained in:
parent
c0e744db78
commit
8ae459e9fa
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ content::WebContents* InspectableWebContentsImpl::GetWebContents() const {
|
||||||
void InspectableWebContentsImpl::ShowDevTools() {
|
void InspectableWebContentsImpl::ShowDevTools() {
|
||||||
if (!devtools_web_contents_) {
|
if (!devtools_web_contents_) {
|
||||||
devtools_web_contents_.reset(content::WebContents::Create(content::WebContents::CreateParams(web_contents_->GetBrowserContext())));
|
devtools_web_contents_.reset(content::WebContents::Create(content::WebContents::CreateParams(web_contents_->GetBrowserContext())));
|
||||||
|
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
|
// Work around http://crbug.com/279472.
|
||||||
|
devtools_web_contents_->GetView()->SetAllowOverlappingViews(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
Observe(devtools_web_contents_.get());
|
Observe(devtools_web_contents_.get());
|
||||||
devtools_web_contents_->SetDelegate(this);
|
devtools_web_contents_->SetDelegate(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue