Page 1 of 1

No stylesheets in devtools with local css files

Posted: Wed Mar 22, 2017 8:54 pm
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?

Re: No stylesheets in devtools with local css files

Posted: Wed Mar 22, 2017 10:24 pm
by barbaz
Works for me. Can you please provide more information about your local HTML file and CSS file?

Re: No stylesheets in devtools with local css files

Posted: Wed Mar 22, 2017 11:32 pm
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;
}

Re: No stylesheets in devtools with local css files

Posted: Thu Mar 23, 2017 1:19 am
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)

Re: No stylesheets in devtools with local css files

Posted: Mon Mar 27, 2017 11:16 am
by Aybee
Now I disabled all other addons (32) and it's still the same.

Image
Image