Why does Brackets (code editor) open a new instance of Chrome when using Live Editor?

寵の児 提交于 2019-12-11 09:07:30

问题


In this new instance of Chrome, all of my accounts are signed out and I have to relog in. In the task bar I can see the original Chrome and I can open them side by side.

The old instance of Chrome:

  • All my apps
  • Accounts signed in

The new Live Preview instance of Chrome:

  • I dont have any of my apps
  • No accounts signed in
  • Essentially it is as if I am using Chrome for the first time

What I am asking is, is it safe to sign into my accounts on this new instance of Chrome?


回答1:


The Chrome profile that Brackets launches for Live Preview has the Chrome Remote Debugging API enabled. There are two reasons Brackets uses a separate profile for this:

  • Remote Debugging is off by default, and enabling it requires re-launching Chrome. Using a separate profile means your existing browsing session doesn't have to be restarted, which would be disruptive if you have lots of tabs open.
  • It reduces security slightly -- other processes on your local machine could use the Remote Debugging API to monitor / interfere with other browsing you do in this Chrome window. (The API is not exposed to the network, so if you trust your computer to be malware-free, this is less of a concern).

If you don't like having to open a separate Chrome window, you can check File > Enable Experimental Live Preview to try out a new Live Preview implementation that doesn't require the Remote Debugging API, and thus doesn't launch a new copy of Chrome. You can't use this option if your project has a custom server URL set, though.



来源:https://stackoverflow.com/questions/29089422/why-does-brackets-code-editor-open-a-new-instance-of-chrome-when-using-live-ed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!