question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to pass any challenge in Firefox 50 due to CSP-problems

See original GitHub issue

Challenge Name

Any challenge, both beta and production

Issue Description

The exact same code works in Chrome but not in Firefox. In Firefox, the output just above the tests says that the tests were completed, but tests that had to be run in the iframed phone-view never passes.

According to this message from the console, there’s some problem with CSP which prevents some tests from running properly. Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead.

According to This Stack Overflow-thread, the spec for CSP in iframes is confusing at the moment.

I guess we either should use the, according to the SO-thread above, now deprecated child-src temporarily until Firefox implements the new spec with frame-src again.

Alternatively, we drop firefox support temporarily and hope they fix this soon.

@freeCodeCamp/moderators Any ideas on how to solve this?

Browser Information

  • Browser Name, Version: Firefox 50.1.0
  • Operating System: Ubuntu 16.04
  • Mobile, Desktop, or Tablet: Desktop

Your Code

 <style>
  h2 {
    color: blue;
  }
</style>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Screenshot

Notice the error message in the console at the bottom of the screen. firefox-csp-bug

The exact same code works just fine in the latest version of Chrome for Ubuntu 16.04. chrome-firefox-csp-bug

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
dhcodescommented, Feb 1, 2017

As an update to this, I wouldn’t recommend updating CSP yet because it looks like the frame-src deprecation error currently happening will be fixed when frame-src becomes undeprecated (link to source) very soon.

Fwiw, I also updated the CSP to childSrc to see if it fixes the .css issues with Firefox and while it did remove the CSP error in the console, it does not fix the .css issues. The hunt continues.

1reaction
systimoticcommented, Feb 27, 2017

@dhcodes That was suggested in #10749. To me, ideally we fix the jQuery CSS tests in Firefox rather than replace them. I’ll close this, we can discuss the solution further in #10749 👍 Thanks a bunch for the triaging work on this @dhcodes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems connecting to websites after updating Firefox
This article describes how to troubleshoot problems connecting to websites that start immediately after updating Firefox to a new version.
Read more >
Safari Clipper and Content Security Policy (CSP) issue
In Safari this may cause the Web Clipper to not being able to execute any code and thus not being able to start....
Read more >
A-Team Bootcamp Documentation - Read the Docs
To be able to commit to the mozilla-central repository directly, you will need to ... DXR is a project dedicated to indexing all...
Read more >
Client-side security risks
Browser bugs may allow more than just Denial of Service. Worst of all: execute arbitrary code. • Exploiting the kind of bugs discussed...
Read more >
Before Starting the CoC Application - Rackcdn.com
have access to CoC and ESG financial assistance for rent and utilities to move into any housing, based on individual choice and safety ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found