fix: only focus a webContents if the window was not initially hidden (#25292)
This commit is contained in:
parent
d305fe7d30
commit
a6b9f9d8e5
4 changed files with 17 additions and 6 deletions
|
@ -393,6 +393,7 @@ class WebContents : public gin::Wrappable<WebContents>,
|
|||
content::WebContents* HostWebContents() const;
|
||||
v8::Local<v8::Value> DevToolsWebContents(v8::Isolate* isolate);
|
||||
v8::Local<v8::Value> Debugger(v8::Isolate* isolate);
|
||||
bool WasInitiallyShown();
|
||||
|
||||
WebContentsZoomController* GetZoomController() { return zoom_controller_; }
|
||||
|
||||
|
@ -683,6 +684,8 @@ class WebContents : public gin::Wrappable<WebContents>,
|
|||
// Observers of this WebContents.
|
||||
base::ObserverList<ExtendedWebContentsObserver> observers_;
|
||||
|
||||
bool initially_shown_ = true;
|
||||
|
||||
// The ID of the process of the currently committed RenderViewHost.
|
||||
// -1 means no speculative RVH has been committed yet.
|
||||
int currently_committed_process_id_ = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue