本文介绍了为什么Brackets(代码编辑器)在使用Live Editor时打开Chrome的新实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个Chrome的新实例中,我的所有帐户都已注销,我必须重新登录。在任务栏中,我可以看到原始Chrome和我可以并排打开它们。



旧的Chrome实例:


  • 所有我的应用

  • 帐户已登录



Chrome的新实时预览实例:


  • 我没有任何应用程序

  • 没有帐户登录

  • 本质上,就好像我使用Chrome浏览器第一次


我问的是,在Chrome的这个新实例上登录我的帐户安全吗?

解决方案

Brackets为实时预览启动的Chrome个人资料包含启用。 Brackets使用单独的配置文件有两个原因:


  • 默认情况下,远程调试处于关闭状态,启用它需要重新启动Chrome。使用单独的配置文件意味着您现有的浏览会话不必重新启动,如果您打开了许多选项卡,这将会造成干扰。

  • 它稍微降低了安全性 - 其他进程本地计算机上的可以使用远程调试API来监视/干扰您在此Chrome窗口中执行的其他浏览。 (这个API并不是暴露给网络的,所以如果你相信你的电脑没有恶意软件,那么这个问题就不那么重要了)。



如果您不想打开单独的Chrome窗口,可以选中文件>启用实验性实时预览以尝试新的实时预览实施,不需要远程调试API,因此不会启动Chrome的新副本。不过,如果您的项目设置了自定义服务器网址,则无法使用此选项。


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?

解决方案

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.

这篇关于为什么Brackets(代码编辑器)在使用Live Editor时打开Chrome的新实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 06:19