New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 789317 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Node Dev Tools auto focuses the window every time the app restarts

Reported by uhupa...@gmail.com, Nov 28 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Run a Node app with the --inspect flag 
2. Monitor for any changes and automatically restart the server
3. *Chrome's dedicated dev tools for Node are getting focused*

What is the expected behavior?
The window shouldn't be focused when the app reloads.

What went wrong?
The problem is I am also using PM2 Node process manager to watch my files and auto-restart my Node process whenever there are changes, as I normally do in development, and every time I save a file the Node Dev Tools window takes focus.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

I am using Meteor (which is based on Node.js)
Original question on SO: https://stackoverflow.com/questions/47185727/how-to-stop-chromes-node-dev-tools-from-focusing-the-window-every-time-the-app
 
Labels: Needs-Triage-M62
Owner: eostroukhov@chromium.org
Status: Assigned (was: Unconfirmed)
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c07c27e2fe2788eb465f47d71148dca7fec299fc

commit c07c27e2fe2788eb465f47d71148dca7fec299fc
Author: Eugene Ostroukhov <eostroukhov@chromium.org>
Date: Thu Feb 01 02:13:20 2018

DevTools: do not activate DevTools on Node restart

Bug:  789317 
Change-Id: I4ef5f83dc37261b053bf698919aa93ad77375fad
Reviewed-on: https://chromium-review.googlesource.com/861199
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Eugene Ostroukhov <eostroukhov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533527}
[modify] https://crrev.com/c07c27e2fe2788eb465f47d71148dca7fec299fc/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js

Status: Fixed (was: Assigned)

Comment 5 by uhupa...@gmail.com, Feb 1 2018

Nice. Thanks!

Sign in to add a comment