philc/vimium — pull request #1184 by 1995eaton (2014-10-25 05:44:27+00:00)
Title: Prevent Chrome URLs from being injected with CSS

`chrome://*` and `chrome-extension://*` URLs in addition to URLs on the Chrome Webstore cannot be injected with CSS via the `chrome.tabs.insertCSS` function due to Chrome's security policies. When tabs with these URLs are opened, Vimium's background scripts throw exceptions. This PR checks if a tab's URL matches these locations and avoids the function call if necessary.