我创建了一个打包应用。我已正确设置update_url
(我第一次更新时确认了这一点),但如果我更新了应用(通过点击“立即更新扩展程序”按钮或通过chrome.runtime.requestUpdateCheck(..)
),请两次进入一排,它不会第二次更新!当我通过chrome.runtime.requestUpdateCheck(..)
执行此操作并检查状态时,它会显示为"throttled"
!之后,即使我单击手动按钮,它也不会继续更新。
这使得开发变得非常麻烦。有谁知道如何解决这个问题?
要对此进行测试,请执行以下操作:
update_url
,并指向包含更新信息的XML文件第二次更新无效。
编辑当我点击“立即更新扩展程序”按钮时,我已经从chrome的日志中添加了日志信息:
chrome_debug.log
[VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83246577
[VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83246577
[VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83279377
[VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83279377
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:sandbox_linux.cc(148)] Lacking support for seccomp-bpf sandbox.
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:database_manager.cc(991)] SafeBrowsingCheckDone
[VERBOSE1:speech_input_extension_manager.cc(152)] Extension unloaded. Requesting to enforce stop...
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83312150
[VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83312150
[VERBOSE1:resource_loader.cc(336)] OnResponseStarted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html
[VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html" bytes_read = 55
[VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html" bytes_read = 0
[VERBOSE1:resource_loader.cc(627)] ResponseCompleted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html
[VERBOSE1:chrome_v8_context.cc(43)] Created context:
extension id: dnpkphihgmicdfligbpcleigpmcbclbp
frame: 0x7f151d5f7600
context type: BLESSED_EXTENSION
[VERBOSE1:dispatcher.cc(839)] Num tracked contexts: 1
[VERBOSE1:resource_loader.cc(336)] OnResponseStarted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js
[VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js" bytes_read = 3153
[VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js" bytes_read = 0
[VERBOSE1:resource_loader.cc(627)] ResponseCompleted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js
[VERBOSE1:dispatcher.cc(873)] Num tracked contexts: 0
[VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
[VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 84475990
[VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 84475990