WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
59850
CSP script-src should block eval
https://bugs.webkit.org/show_bug.cgi?id=59850
Summary
CSP script-src should block eval
Adam Barth
Reported
2011-04-29 17:37:10 PDT
CSP script-src should block eval
Attachments
Patch
(13.55 KB, patch)
2011-04-29 17:41 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(15.68 KB, patch)
2011-04-29 17:48 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(15.59 KB, patch)
2011-04-29 18:13 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2011-04-29 17:41:18 PDT
Created
attachment 91773
[details]
Patch
Adam Barth
Comment 2
2011-04-29 17:43:00 PDT
Here's the related V8 bug:
http://code.google.com/p/v8/issues/detail?id=1258
Eric Seidel (no email)
Comment 3
2011-04-29 17:44:13 PDT
Comment on
attachment 91773
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=91773&action=review
> LayoutTests/http/tests/security/contentSecurityPolicy/eval-blocked.html:11 > +This test passes if it doesn't alert fail.
This is confusing.
> Source/JavaScriptCore/runtime/Executable.cpp:106 > + return throwError(exec, createEvalError(exec, "Eval is disabled"));
Is this the right text?
> Source/JavaScriptCore/runtime/JSGlobalObject.h:115 > + bool m_isEvalEnabled : 1;
Do we worry about the size of this object?
WebKit Review Bot
Comment 4
2011-04-29 17:45:31 PDT
Attachment 91773
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/8517974
Adam Barth
Comment 5
2011-04-29 17:45:47 PDT
> > LayoutTests/http/tests/security/contentSecurityPolicy/eval-blocked.html:11 > > +This test passes if it doesn't alert fail. > > This is confusing.
Maybe: This test passes if it doesn't alert "fail." ?
> > Source/JavaScriptCore/runtime/Executable.cpp:106 > > + return throwError(exec, createEvalError(exec, "Eval is disabled")); > > Is this the right text?
There's no spec for JavaScript errors.
> > Source/JavaScriptCore/runtime/JSGlobalObject.h:115 > > + bool m_isEvalEnabled : 1; > > Do we worry about the size of this object?
Dunno. The object is very large. I could remove the ": 1".
Adam Barth
Comment 6
2011-04-29 17:48:26 PDT
Created
attachment 91775
[details]
Patch
Adam Barth
Comment 7
2011-04-29 18:13:56 PDT
Created
attachment 91783
[details]
Patch
WebKit Commit Bot
Comment 8
2011-04-29 21:16:11 PDT
The commit-queue encountered the following flaky tests while processing
attachment 91783
[details]
: http/tests/xmlhttprequest/failed-auth.html
bug 51835
(author:
ap@webkit.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 9
2011-04-29 21:30:16 PDT
Comment on
attachment 91783
[details]
Patch Clearing flags on attachment: 91783 Committed
r85388
: <
http://trac.webkit.org/changeset/85388
>
WebKit Commit Bot
Comment 10
2011-04-29 21:30:22 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 11
2011-04-29 23:15:53 PDT
The commit-queue encountered the following flaky tests while processing
attachment 91783
[details]
: http/tests/xmlhttprequest/cross-origin-authorization.html
bug 52398
(author:
ap@webkit.org
) The commit-queue is continuing to process your patch.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug