New issue
Advanced search Search tips

Issue 818274 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Content script not loading in page

Project Member Reported by andyb...@chromium.org, Mar 2 2018

Issue description

When loading a content script on https://go-review.googlesource.com, the js in content.js is not injected.

+ Chrome version 64.0.3282.186 and 66.0.3359.0 on macOS
+ I loaded the extension using "load unpacked extension"
+ It shows up in the extensions list without trouble and displays the appropriate permissions ("Read and change your data on all googlesource.com sites")
+ When reloading go-review.googlesource.com, it does not show in the Content Scripts tab of the Sources section of DevTools (screenshot attached)
+ I tried this on both my corp and personal profiles. Neither worked.

manifest:

{
  "manifest_version": 2,
  "name": "Content script",
  "description": "Description",
  "version": "0.0.1",
  "content_scripts": [
    {
      "matches": ["*://*.googlesource.com/*"],
      "js": ["content.js"]
    }
  ]
}

content.js:

console.info('This should appear in the console');

 
build_ext.zip
661 bytes Download
Screen Shot 2018-03-02 at 3.01.20 PM.png
15.8 KB View Download
Cc: nrpeter@chromium.org
I can't repro it on mac 66.0.3359.0 (Official Build) canary (64-bit).

/cc nrperter for content scripts in case it is related to his work.
If you haven't seen it, please check out go/extension-identification. We're working on UX changes to better surface this to users & developers. 
Status: WontFix (was: Untriaged)
Great. That solved my issue. Thank you very much :)

Sign in to add a comment