0

I've written an add-on which highlights insecure links, but its content_scripts is not applied to "view-source: pages.

There's no information in the add-on debugging console, and none of the permissions look relevant, so I'm not sure how to proceed.

This seems similar to another question except I'm not trying to open view-source: pages and I don't get any error messages.

Obviously if there's some way to apply the script to "view-source:" pages using a different mechanism than content_scripts that would also be great.

l0b0
  • 55,365
  • 30
  • 138
  • 223

1 Answers1

0

The permission

"<all_urls>"

in your manifest.json includes only HTTP and HTTPS. It does not include internal pages and protocols like view-source. As a result of this, content scripts can only be added to HTTP and HTTPS pages.

Smile4ever
  • 3,491
  • 2
  • 26
  • 34