You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look at the image shown below; the anvil has a white fill.
Click on the image. GitHub will send the raw SVG. The anvil now has a black fill. (Make sure that NoScript is on for the page.)
Save the image to a local file, open it in a new tab. Do a blink comparison, notice that the outline of the anvil is gone, or white-on-white, despite the <path> being declared as a black stroke.
Go to the tab with the SVG file from GitHub (from step 3). Open web developer tools. Reload the content.
Observe: The console shows two messages of Content-Security-Policy: Couldn’t process unknown directive ‘noscript-marker’. This is clearly a NoScript problem, unless something else can generate a noscript-marker directive that is not visible in Show Source. The message goes away when switching off NoScript for the GitHub host and reloading.
Observe: The console shows multiple messages of Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)., usually associated with Source: fill:#ffffff;fill-opacity:1;stroke:#ffff… 350663525-cb0b0a82-a11f-42e9-968f-c20a82ddec92.svg but not always. This is likely unrelated to NoScript as it will persist with NoScript switched on or off.
Note that the actual display problem (filled anvil) happens with or without NoScript activated.
This is merely a heads-up that NoScript may be interfering with SVG processing in an unintented way, which may or may not be harmful in contexts other than when displaying this specific SVG.
No warnings appear in the console if the SVG is displayed as part of the issue, which is somewhat puzzling to me.
Here's some SVG weirdness to observe:
<path>
being declared as a black stroke.Content-Security-Policy: Couldn’t process unknown directive ‘noscript-marker’
. This is clearly a NoScript problem, unless something else can generate anoscript-marker
directive that is not visible in Show Source. The message goes away when switching off NoScript for the GitHub host and reloading.Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“default-src”).
, usually associated withSource: fill:#ffffff;fill-opacity:1;stroke:#ffff… 350663525-cb0b0a82-a11f-42e9-968f-c20a82ddec92.svg
but not always. This is likely unrelated to NoScript as it will persist with NoScript switched on or off.Originally reported as RealFaviconGenerator/realfavicongenerator#499 but closed there.
The text was updated successfully, but these errors were encountered: