[webkit-reviews] review granted: [Bug 93392] CSP doesn't turn off eval, etc. in Web Workers : [Attachment 159495] Patch (fix changelog)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 20 13:03:05 PDT 2012


Adam Barth <abarth at webkit.org> has granted Thomas Sepez <tsepez at chromium.org>'s
request for review:
Bug 93392: CSP doesn't turn off eval, etc. in Web Workers
https://bugs.webkit.org/show_bug.cgi?id=93392

Attachment 159495: Patch (fix changelog)
https://bugs.webkit.org/attachment.cgi?id=159495&action=review

------- Additional Comments from Adam Barth <abarth at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=159495&action=review


> Source/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp:249
> +    m_disableEvalPending = !enable;

What if m_context already exists?  Should we call
AllowCodeGenerationFromStrings on it?

> Source/WebCore/bindings/v8/WorkerContextExecutionProxy.h:72
> +	   void allowEval(bool enable);

setEvalAllowed ?

> Source/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp:69
> +	   if (ContentSecurityPolicy *policy =
workerContext->contentSecurityPolicy()) {

ContentSecurityPolicy * -> ContentSecurityPolicy*


More information about the webkit-reviews mailing list