谷歌Chrome浏览器--allow-文件访问 - 从 - 文件浏览器测试版8禁用 [英] Google Chrome --allow-file-access-from-files disabled for Chrome Beta 8
问题描述
我一直在开发使用jQuery和微软海龙技术AJAX应用程序。
我需要访问HTML5的Canvas功能toDataURL。
I have been developing an AJAX application using jQuery and Microsoft Seadragon technology.
I need to have access to the html5 canvas function toDataURL.
使用谷歌浏览器,同样的原产地规则适用于这一功能,这意味着一个网页在本地运行(与文件:///
中的URL)无法满足同一产地来源规则,并抛出一个异常。
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.
使用浏览器7,从应用程序 - 让文件存取的档案
选项,允许打电话 canvas.toDataURL( )
从本地文件。
With Chrome 7, starting the application with --allow-file-access-from-files
option, allows to call canvas.toDataURL()
from local files.
然而,似乎在启动浏览器测试版8使用相同的选项( - 让文件存取的档案
)不允许调用 canvas.toDataURL()
在本地文件。
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.
Chrome浏览器是否放弃对 - 让文件存取的档案
选项,或者刚刚因为它禁用是一个Beta版本,而不是一个完整的发布?
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?
谢谢!
推荐答案
<一个href="http://$c$c.google.com/p/chromium/issues/detail?id=4197&can=1&q=allow-file-access-from-files&colspec=ID%20Stars%20Pri%20Area%20Feature%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS">Looking在此中的问题显示,全 - 让文件存取的档案
的事情被送往
Looking at the issues for this shows that the whole --allow-file-access-from-files
thing was rushed.
- 在火狐做它。
- 在我们怎样才能做到这一点?
- 的一些时间的流逝的
- 在这里有补丁
- 在传递!主干不知道在未来的开发版本会发生什么
- 在啊这是破使用命令行选项OK
- 在我们发货!
- 在跆拳道的家伙?你伤了我所有的东西!你为什么不告诉我们前面?
- 的沉默的
- "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
在您的问题
事实上,它似乎这是,我使用铬8.0.552.5 dev的
这里有些特别的beta和 - 允许文件 - 访问 - 从档案
作品像预期的,我还测试了这款与铬9.0.592.0(66889)
是它也可以作为预期。
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.
我怀疑有过的Dev分支的一些变化。不幸的是,找到的东西铬的问题跟踪器几乎是不可能的。
I suspect there have been some changes on the dev branch. Unfortunately, finding something on chromium's issue tracker is nearly impossible.
这篇关于谷歌Chrome浏览器--allow-文件访问 - 从 - 文件浏览器测试版8禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!