我可以通过 Chrome 扩展程序访问 Gears 吗?

发布于 2024-08-08 17:44:06 字数 342 浏览 1 评论 0原文

为 Google Chrome 4.x 开发扩展。我想保留几个参数,并考虑使用 Google Gears 的数据库对象 - 因为它总是与 Chrome 一起安装。
但我找不到任何文档来告诉我是否可行。 我能找到的唯一相关句子

数据采用同源存储 安全策略,这意味着网络 应用程序无法访问外部数据 其域

是否与本地运行的扩展相关?还有什么可能阻止我使用数据库对象吗? 感谢您抽出时间。

Developing extensions for Google Chrome 4.x. I'd like to keep a couple of parameters persistent, and thought about using Google Gears' Database object - since it's always installed with Chrome.
But I couldn't find any documentation that will tell me if it's possible. The only relevant sentence I could find was

Data is stored using the same-origin
security policy, meaning that a web
application cannot access data outside
of its domain

Is that evenrelevant to an extension, that runs locally? Is there anything else that may prevent me from using the Database object?
Thanks for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜空下最亮的亮点 2024-08-15 17:44:06

根据这个关于人们在 Chrome 插件中使用齿轮不同功能的帖子:
http://groups.google.com/group/ gears-users/browse_thread/thread/396c542a7f6d44ce?pli=1
是的。

According to this thread about people using different features of gears in their chrome plugins:
http://groups.google.com/group/gears-users/browse_thread/thread/396c542a7f6d44ce?pli=1
yes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文