【问题标题】:chrome extension inline installation broken on chrome 58chrome 58 上的 chrome 扩展内联安装损坏
【发布时间】:2017-04-21 10:58:11
【问题描述】:

我们正在使用内联安装来安装我们的 chrome 扩展程序。它适用于 chrome 57 及更低版本(并且仍在工作)。但是,在新的 chrome 版本 58 上,内联安装停止工作。

我可以:

  • 从网上商店手动安装扩展程序
  • 在 chrome 57 及更低版本上安装内联扩展

这是我们的设置:

<!DOCTYPE html>
<html>
  <head>
    <link   href="https://chrome.google.com/webstore/detail/<id>" rel="chrome-webstore-item">
</head>
<body>
    <input type="button" value="Start" onclick="installExtension()">
<script>
    var chromeExtensionUrl  = "https://chrome.google.com/webstore/detail/<id>";
    function installExtension() {
        chrome.webstore.install(chromeExtensionUrl,
            function() {
                startCountdown();
                sessionLog("extensionInstallAccepted");
            },
            function(aErr) {
                console.log(aErr);
            });
    }
</script>
</body>
</html>

当我点击按钮时,我收到错误:

Could not fetch data from the Chrome Web Store

知道如何解决这个问题吗?

编辑:

通过https://bugs.chromium.org/p/chromium/issues/detail?id=705283# 了解更多信息

  • 如果我退出我的谷歌帐户,我可以在 v58 上安装内嵌扩展

【问题讨论】:

  • 这是你的情况crbug.com/705283 吗?
  • 看起来很可能,谢谢你的链接。

标签: javascript google-chrome google-chrome-extension


【解决方案1】:

在这里回答自己,因为我很确定没有什么可以做的。

这很可能是 chrome 本身的错误。您唯一可以做的就是不使用内联安装或要求您的用户在安装前退出其 Google 帐户。

https://bugs.chromium.org/p/chromium/issues/detail?id=714176# https://bugs.chromium.org/p/chromium/issues/detail?id=705283#

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-05-25
    • 2019-05-06
    • 2012-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多