Chrome浏览器 - 禁用Chrome Beta 8的文件访问文件禁用 [英] Google Chrome --allow-file-access-from-files disabled for Chrome Beta 8

查看:134
本文介绍了Chrome浏览器 - 禁用Chrome Beta 8的文件访问文件禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用jQuery和Microsoft Seadragon技术来开发一个AJAX应用程序。

我需要访问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 事情被赶了。


  1. Firefox做到了。

  2. 我们该怎么做?


  3. 这是补丁

  4. Passes!在树干上想知道下一个发行版本会发生什么

  5. 啊坏了 使用命令行选项ok

  6. 我们发货了!

  7. WTF的家伙,你打破了我所有的东西!你以前告诉我们吗?

  8. 沉默

关于你的问题

确实,这是测试版的特别之处,我使用 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.

  1. "Firefox does it.."
  2. "How can we do it?"
  3. some time passes
  4. "Here are the patches"
  5. "Passes! On trunk wonder what happens in the next dev release"
  6. "Ahhh it's broken" "Use the command line option" "ok"
  7. "We shipped!"
  8. "WTF guys? You broke all my stuff! Why didn't you tell us earlier?"
  9. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆