Chrome浏览器 - 禁用Chrome Beta 8的文件访问文件禁用 [英] Google Chrome --allow-file-access-from-files disabled for Chrome Beta 8
问题描述
我需要访问html5画布函数toDataURL。
对于Google Chrome,同样的原始规则适用于此功能,这意味着本地运行的页面(URL中的文件:///
)无法满足相同的要求原始规则和异常被抛出。
使用Chrome 7,使用启动应用程序 - allow-file-access-from-files
选项,允许从本地文件调用 canvas.toDataURL()
。
然而,它似乎使用相同的选项( - allow-file-access-from-files
)启动Chrome Beta 8不允许调用画布。 toDataURL()
在本地文件。
Chrome放弃了 - allow-file-access-from-files
选项,或者它刚刚被禁用,因为它是Beta版本,而不是完整版?
谢谢!
查看这个问题显示整个 - allow-file-access-from-files
事情被赶了。
- Firefox做到了。
- 我们该怎么做?
- 这是补丁
- Passes!在树干上想知道下一个发行版本会发生什么
- 啊坏了 使用命令行选项ok
- 我们发货了!
- WTF的家伙,你打破了我所有的东西!你以前告诉我们吗?
- 沉默
关于你的问题
确实,这是测试版的特别之处,我使用 Chrome 8.0.552.5 dev
这里和 - allow-file-access-from-files
像预期一样工作,我也用 Chromium 9.0.592.0(66889) )
是否也按预期工作。
我怀疑开发分支有一些变化。不幸的是,在铬问题跟踪器上找到一些东西几乎是不可能的。
I have been developing an AJAX application using jQuery and Microsoft Seadragon technology.
I need to have access to the html5 canvas function toDataURL.
With Google Chrome, the same origin rule applies to this function which means that a page run locally (with the file:///
in the URL) failed to satisfy the same origin rule and an exception is thrown.
With Chrome 7, starting the application with --allow-file-access-from-files
option, allows to call canvas.toDataURL()
from local files.
However, it seems that starting the Chrome Beta 8 with the same option (--allow-file-access-from-files
) does not allow the call canvas.toDataURL()
on the local file.
Does Chrome gave up on the --allow-file-access-from-files
option or it has just been disabled since it is a Beta release and not a full release?
Thanks!
Looking at the issues for this shows that the whole --allow-file-access-from-files
thing was rushed.
- "Firefox does it.."
- "How can we do it?"
- some time passes
- "Here are the patches"
- "Passes! On trunk wonder what happens in the next dev release"
- "Ahhh it's broken" "Use the command line option" "ok"
- "We shipped!"
- "WTF guys? You broke all my stuff! Why didn't you tell us earlier?"
- silence
On to your Problem
Indeed it seems that this is something special to the beta, I'm using Chrome 8.0.552.5 dev
here and --allow-file-access-from-files
works like expected, I've also tested this with Chromium 9.0.592.0 (66889)
were it also works as expected.
I suspect there have been some changes on the dev branch. Unfortunately, finding something on chromium's issue tracker is nearly impossible.
这篇关于Chrome浏览器 - 禁用Chrome Beta 8的文件访问文件禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!