New issue
Advanced search Search tips

Issue 824803 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Logged-in Google Docs pages are causing chrome.tabs.executeScript runtime errors

Reported by peter.m....@gmail.com, Mar 22 2018

Issue description

Chrome Version       : 65.0.3325.162
OS Version: OS X 10.13.2
URLs (if applicable) : https://docs.google.com/document/u/0/

What steps will reproduce the problem?

1. Clone this repo https://github.com/mrcoles/test-chrome-extension-executesript-googledocs
2. Add as unpacked extension
3. Log into Google Docs: https://docs.google.com/document/u/0/
4. Activate the extension

What is the expected result?

It should show:

> Did it work?
>
> YES!

What happens instead of that?

It shows:

> Did it work?
>
> chrome.runtime.lastError
> 
> Cannot access contents of the page. Extension manifest must request permission to access the respective host.


Please provide any additional information below. Attach a screenshot if
possible.

Try this on another page like https://google.com/ and it works fine.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36



 
Screen Shot 2018-03-22 at 12.25.00 PM.png
393 KB View Download
Status: WontFix (was: Unconfirmed)
Thanks for your report.

As the error message says, your extension needs to request permission for the page's origin in order to use executeScript() - see <https://developer.chrome.com/apps/match_patterns>. I do not think this is a Chrome bug.
Hi:

1. I am concerned that in your response you’re just repeating the error message and not looking into this. This worked for me for weeks then suddenly didn’t work the day I reported it, and only in the way I outlined.

2. Inexplicably this is suddenly working again, so I suppose it’s OK to close it.

If I see this again, I will report it again.

Sign in to add a comment