From 0d9ff95526695d7b1284366b0cea0b0fa4df422a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 20 Dec 2017 15:18:26 +0900 Subject: [PATCH] Revert "dont change window background after devtools is closed" This reverts commit fdcac8552f2417a06fbd5f2753cca8045ab2b6b3. We are looking for a better fix. --- brightray/browser/inspectable_web_contents_impl.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 76ae267e7c65..ad18f69bce50 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -31,7 +31,6 @@ #include "content/public/browser/navigation_handle.h" #include "content/public/browser/render_frame_host.h" #include "content/public/browser/render_view_host.h" -#include "content/public/browser/render_widget_host_view.h" #include "content/public/common/user_agent.h" #include "ipc/ipc_channel.h" #include "net/http/http_response_headers.h" @@ -338,14 +337,6 @@ void InspectableWebContentsImpl::CloseDevTools() { } embedder_message_dispatcher_.reset(); web_contents_->Focus(); - - // Restore background color of the page since closing devtools changes the - // color to the default white. TODO(brenca): remove this once this fix is - // not necessary - const auto view = web_contents_->GetRenderWidgetHostView(); - if (view) { - view->SetBackgroundColor(view->background_color()); - } } }