Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将 updateURL 动态更新到 install.rdf 文件中。我在一个存储在变量中的 javascript 文件中有我的更新 url,是否可以将此 url 用作 xpi 的 install.rdf 文件中的更新 url?
您可以更新您的附加组件清单,但您不能将您自己的 URL 作为更新 URL 传递。 这部分仅供参考:
如果您查看omni.ja\modules\XPIProvider.jsm, function loadManifest(line 4601) ,您可以看到它从您的插件清单中读取更新 URL。加载清单后,它将使用其 updateURL 发送请求并检查更新(UpdateChecker)。
omni.ja\modules\XPIProvider.jsm
loadManifest
UpdateChecker