gpt4 book ai didi

google-chrome - 在 Chrome 的 --single-process 模式下无法访问 localStorage

转载 作者:行者123 更新时间:2023-12-04 08:37:56 25 4
gpt4 key购买 nike

所以我正在尝试*使用 Chromium 的 --single-process旗帜(是的,我知道这是世界上最危险的东西,等等,不需要讲座,谢谢!)与 localStorage ,并且出于某种原因,看起来每当 Chromiums 以单进程模式启动时,localStorage不再有任何可从中访问的数据。

这背后的原因是什么?有没有办法绕过它?

(如果这意味着重新编译 Chromium,请告诉我需要在哪里修改。)

最佳答案

我试图搜索有关您的问题的一些结果,因此我进入了 irc(在 freenode,#chromium channel 上)并且因为 rsleevi 没有账号我只是复制了我们的对话:

我:

hey, does anyone knows about Chromium's "--single-process" and localstorage bug ?



斯莱维:

<+rsleevi> That's a bit of a broad question. But the easy answer is "--single-process" isn't a "supported" flag - it truly is intended for debugging purposes only by devs. If you're using/relying on it for general use, then theres your problem :) <+rsleevi> It's reasonably expected that a number of things won't work or won't work right in --single-process



我:

yes I understand that is for debugging pupposes, but I just want to know why localStorage doesn't work well while other stuff does :)



斯莱维:

<+rsleevi> Well, the answer is because --single-process isn't "supported" :-) [13:58:32] <+rsleevi> The design of new features always designs for the multi-process scenario. If it happens to work in --single-process, serendipity, if not, c'est le vie



我:

OK I understand. Just thought maybe there is some "offical why"



斯莱维:

<+rsleevi> Generally, no, there's not some decision "We don't want to support X in --single-process"... It's "X doesn't happen to work? Oh well"

<+rsleevi> If you're using --single-process, realize that (just like the info bar says) you're running without all the nice security features, and your configuration/features are expected to regularly break or be unusable. I really can't stress the "not-supported" aspect enough, in the hope that maybe I can sway you :-)



我:

I don't know if you are a memeber on stackoverflow, but I`m trying to help this mate here: localStorage Isn't Accessible in Chrome's --single-process Mode , maybe you can answer his question ( if you are a member ) Don't want to take your copyrights :)



斯莱维:

[14:09:57] <+rsleevi> Heh. I don't have an account, sounds like your mate doesn't want my lecture, but the answer is just like the info bar says "unsupported" :-) marsbear's second answer is right on track - it's just a development aide [14:10:08] <+rsleevi> that is, Chromium development, not general webdev



我知道这里没有完整的答案,但也许它会帮助你。

关于google-chrome - 在 Chrome 的 --single-process 模式下无法访问 localStorage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5925349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com