jimschubert / NewTab-Redirect

NewTab Redirect! is an extension for Google Chrome which allows the user to replace the page displayed when creating a new tab.
MIT License
479 stars 88 forks source link

Chrome Apps blocked unless opened in new tab #188

Closed fuhrmanator closed 3 years ago

fuhrmanator commented 3 years ago

I've configured the Redirect URL to the default, so I get a list of the Chrome Apps (in my case, G Suite Google Docs, Sheets, Forms, etc.).

If I try to open one by clicking the icon, I get an error:

aohghmighlieiainnegkcijnfilokake is blocked

Requests to the server have been blocked by an extension. Try disabling your extensions. ERR_BLOCKED_BY_CLIENT

I turned off all my extensions (save the apps and New Tab Redirect) and the problem persists. The workaround for me is to click the tab option:

image

Any ideas why this is happening?

jimschubert commented 3 years ago

This doesn't appear to be an issue with NTR, but an issue with the Docs app itself. Google phased out launching apps in the way this docs app does a long time ago (like 4 years ago).

You can compare the launcher used in the Google Docs app:

jq -r '.app.launch' aohghmighlieiainnegkcijnfilokake/0.10_0/manifest.json
{
  "local_path": "main.html"
}

with a Chrome App which is configured correctly:

jq -r '.app.launch' blpcfgokakmgnkcojhhkbfbldkacnbeo/4.2.8_0/manifest.json
{
  "container": "tab",
  "web_url": "http://www.youtube.com"
}

Really, Google should just fix the app. The old school main.html way of doing things is just doing a redirect, anyway. It should be this in the extension:

{
  "container": "tab",
  "web_url": "https://docs.google.com/document?usp=chrome_app&authuser=0"
}