Skip to content

Disallow eval in CSP policy #11925

Closed
Closed

Description

@LukasReschke

Currently eval is allowed with our CSP policy. We should evaluate whether disabling it causes any problems.

Activity

  1. LukasReschke commented on Nov 3, 2014

    @LukasReschke
    ContributorAuthor

    Notes:

    Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
     l10n.js?v=7c2085d9b0883fc1b34b2525f35eecdd:87
    
  2. LukasReschke commented on Nov 3, 2014

    @LukasReschke
    ContributorAuthor

    @PVince81 Any chance to generate the plural function without using an eval-like construct?

  3. PVince81 commented on Nov 4, 2014

    @PVince81
    Contributor

    I looked into this before but didn't find any good solution... another idea would be to generate that function directly in the locale's translation JS file.

  4. added this to the milestone on Jan 26, 2015
  5. LukasReschke commented on Jan 26, 2015

    @LukasReschke
    ContributorAuthor

    Would love to get rid of that. – We really need this considering some recent hiccups in some JS code components.

    @DeepDiver1975

  6. modified the milestones: , on Apr 4, 2015
  7. 6 remaining items

  8. PVince81 commented on Feb 18, 2016

    @PVince81
    Contributor

    @LukasReschke also the handlebars situation was not solved.

    Move to 9.1 ?

  9. modified the milestones: , on Feb 18, 2016
  10. LukasReschke commented on Feb 18, 2016

    @LukasReschke
    ContributorAuthor

    Yes.

  11. PVince81 commented on Jun 1, 2016

    @PVince81
    Contributor

    Still can't get rid of eval due to client-side compiling of handlebars templates: #12848

  12. modified the milestones: , on Jun 1, 2016
  13. PVince81 commented on Jan 27, 2017

    @PVince81
    Contributor

    Not possible until we have precompiled handlebars templates everywhere -> backlog

  14. modified the milestones: backlog, 10.0 on Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions