Bug 59293

Summary: style-src should block @style
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, dglazkov, eric, gustavo.noronha, gustavo, webkit-ews, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 53572    
Attachments:
Description Flags
Patch
none
Patch none

Adam Barth
Reported 2011-04-23 22:24:54 PDT
style-src should block @style
Attachments
Patch (5.61 KB, patch)
2011-04-23 22:27 PDT, Adam Barth
no flags
Patch (7.43 KB, patch)
2011-04-29 18:41 PDT, Adam Barth
no flags
Adam Barth
Comment 1 2011-04-23 22:27:11 PDT
WebKit Review Bot
Comment 2 2011-04-23 22:29:36 PDT
Early Warning System Bot
Comment 3 2011-04-23 22:35:19 PDT
WebKit Review Bot
Comment 4 2011-04-23 22:43:19 PDT
WebKit Review Bot
Comment 5 2011-04-23 22:45:16 PDT
Build Bot
Comment 6 2011-04-23 23:03:27 PDT
Collabora GTK+ EWS bot
Comment 7 2011-04-23 23:09:38 PDT
Eric Seidel (no email)
Comment 8 2011-04-24 06:26:32 PDT
Comment on attachment 90870 [details] Patch No r+ for you, build-breaker! :p
Eric Seidel (no email)
Comment 9 2011-04-24 06:27:34 PDT
Comment on attachment 90870 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=90870&action=review > Source/WebCore/dom/StyledElement.cpp:244 > + else if (document()->contentSecurityPolicy()->allowInlineStyle()) Should it early return instead? Should it be going down the destoryInlineStleDecl case instead? Why should it be re-calcing after?
Adam Barth
Comment 10 2011-04-24 11:13:21 PDT
> No r+ for you, build-breaker! :p It's just dependent on earlier patches. I should have mentioned that. > (From update of attachment 90870 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=90870&action=review > > > Source/WebCore/dom/StyledElement.cpp:244 > > + else if (document()->contentSecurityPolicy()->allowInlineStyle()) > > Should it early return instead? Should it be going down the destoryInlineStleDecl case instead? Why should it be re-calcing after? This seemed like a less disruptive way of blocking the attribute. We could destroy the attribute if you like, but that could have some odd behavior if there was some way of dynamically changing the CSP policy (which there isn't really today).
Adam Barth
Comment 11 2011-04-29 18:41:11 PDT
Eric Seidel (no email)
Comment 12 2011-04-29 18:47:00 PDT
Comment on attachment 91789 [details] Patch OK.
Early Warning System Bot
Comment 13 2011-04-29 18:49:43 PDT
WebKit Review Bot
Comment 14 2011-04-29 18:50:58 PDT
WebKit Commit Bot
Comment 15 2011-04-29 19:25:30 PDT
Comment on attachment 91789 [details] Patch Rejecting attachment 91789 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-3', 'build'..." exit_code: 2 Last 500 characters of output: VERSION_MINOR 0320 setenv YACC /Developer/usr/bin/yacc /bin/sh -c /mnt/git/webkit-commit-queue/WebKitBuild/WebCore.build/Debug/WebCore.build/Script-5DF50887116F3077005202AB.sh ** BUILD FAILED ** The following build commands failed: WebCore: CompileC /mnt/git/webkit-commit-queue/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/StyledElement.o /mnt/git/webkit-commit-queue/Source/WebCore/dom/StyledElement.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2 (1 failure) Full output: http://queues.webkit.org/results/8460022
WebKit Commit Bot
Comment 16 2011-04-29 19:56:34 PDT
Comment on attachment 91789 [details] Patch Clearing flags on attachment: 91789 Committed r85384: <http://trac.webkit.org/changeset/85384>
WebKit Commit Bot
Comment 17 2011-04-29 19:56:41 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.