No stylesheets in devtools with local css files

Ask for help about NoScript, no registration needed to post
Aybee
Posts: 8
Joined: Wed Mar 22, 2017 7:54 pm
Location: Germany Mönchengladbach

No stylesheets in devtools with local css files

Post by Aybee »

v5.0.2 and v5.0.3rc2 on FF 52.0.1 (64-Bit)

I have some HTML-files on my local drive. They include some css files.

The devtools show a red error bar with this text
DE
Stildokument konnte nicht geladen werden. file:///C:/path-to/style.css

EN (translated by me)
Shylesheet could not be loaded. file:///C:/path-to/style.css
Allow links to local files is enabled.
resource: and file:// is in whitelist.

There are no errors in devtools console.

Curiously the style rules take effect within that page but the files are not visible in style editor and a marked element in inspector shows no rule in the styles pane.

Firebug and devtools on Chrome 57.0.2987.110 are ok.

When I completely disable NoScript then all is fine with FF devtools.

How can this be fixed?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: No stylesheets in devtools with local css files

Post by barbaz »

Works for me. Can you please provide more information about your local HTML file and CSS file?
*Always* check the changelogs BEFORE updating that important software!
-
Aybee
Posts: 8
Joined: Wed Mar 22, 2017 7:54 pm
Location: Germany Mönchengladbach

Re: No stylesheets in devtools with local css files

Post by Aybee »

Just a simple HTML file

Code: Select all

<!DOCTYPE html>
<html>
  <head>
    <title>test.html</title>
    <meta charset='utf-8'>
    <link rel="stylesheet" href="test.css">
  </head>
  <body>
    <h1>Content</h1>
  </body>
</html>
And the CSS file

Code: Select all

/* test.css */
body {
  background-color: cornflowerblue;
}
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: No stylesheets in devtools with local css files

Post by barbaz »

Still works for me. You're probably hitting something similar to this - viewtopic.php?f=10&t=22372

Does disabling all extensions other than NoScript get it working? (Tools > Add-ons Manager)
*Always* check the changelogs BEFORE updating that important software!
-
Aybee
Posts: 8
Joined: Wed Mar 22, 2017 7:54 pm
Location: Germany Mönchengladbach

Re: No stylesheets in devtools with local css files

Post by Aybee »

Now I disabled all other addons (32) and it's still the same.

Image
Image
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Post Reply