Johannes Merz
Johannes Merz

Reputation: 3342

chrome extension inline installation broken on chrome 58

We are using the inline installation to install our chrome extension. It worked (and is still working) for chrome 57 and lower. However, on the new chrome version 58 the inline installation stopped working.

I can:

This is our setup:

<!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>

when i click the button i recieve the error:

Could not fetch data from the Chrome Web Store

Any idea how this can be fixed?

Edit:

after going through https://bugs.chromium.org/p/chromium/issues/detail?id=705283# some more info

Upvotes: 1

Views: 463

Answers (1)

Johannes Merz
Johannes Merz

Reputation: 3342

Answering myself here as i'm pretty sure there is not much that can be done.

It is very likely a bug in chrome itself. The only thing you can do is not using the inline installation or require your user to log out of their google accounts before installing.

See

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

Upvotes: 1

Related Questions